gitg-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. Summary: Git repository viewer for GTK+/GNOME
  3. Summary(ja): Git リポジトリビューアー
  4. Name: gitg
  5. Version: 3.18.0
  6. Release: 1%{?_dist_release}
  7. License: GPLv2
  8. Group: Applications/Development
  9. URL: https://wiki.gnome.org/Apps/Gitg/
  10. Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.18/%{name}-%{version}.tar.xz
  11. BuildRequires: gtk3-devel
  12. BuildRequires: gobject-introspection-devel
  13. BuildRequires: libgit2-glib-devel
  14. BuildRequires: gsettings-desktop-schemas-devel
  15. BuildRequires: webkitgtk4-devel
  16. BuildRequires: libgee-devel
  17. BuildRequires: json-glib-devel
  18. BuildRequires: libsecret-devel
  19. BuildRequires: gtksourceview3-devel
  20. BuildRequires: gtkspell3-devel
  21. BuildRequires: libpeas-devel
  22. BuildRequires: pygobject3-devel
  23. BuildRequires: python3-pygobject
  24. BuildRequires: vala-tools
  25. Requires(postun,posttrans): glib2
  26. Requires(postun,posttrans): desktop-file-utils
  27. Requires(postun,posttrans): gtk2
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. Packager: Takemikaduchi
  32. %description
  33. Gitg is the GNOME GUI client to view git repositories.
  34. %description -l ja
  35. Gitg は git リポジトリを閲覧するための GNOME GUI クライアントです。
  36. %package devel
  37. Summary: Development tools for %{name}
  38. Summary(ja): %{name} の開発環境
  39. Group: Development/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. Requires: pkgconfig
  42. %description devel
  43. Header files and libraries for building a extension library for the %{name}.
  44. %package vala
  45. Summary: Vala bindings for %{name}
  46. Summary(ja): %{name} の Vala バインディング
  47. Group: Development/Libraries
  48. Requires: %{name} = %{version}-%{release}
  49. Requires: vala
  50. %description vala
  51. Vala bindings for %{name}.
  52. %prep
  53. %setup -q
  54. %build
  55. %configure \
  56. --disable-static \
  57. --disable-glade-catalog
  58. make %{?_smp_mflags}
  59. %install
  60. rm -rf ${RPM_BUILD_ROOT}
  61. make install DESTDIR=${RPM_BUILD_ROOT}
  62. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  63. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  64. %find_lang %{name}
  65. %clean
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. %post
  68. /sbin/ldconfig
  69. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  70. %postun
  71. /sbin/ldconfig
  72. if [ $1 -eq 0 ] ; then
  73. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  74. gtk-update-icon-cache %{_datadir}/icons/hicolor &> > /dev/null || :
  75. update-desktop-database -q > /dev/null || :
  76. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  77. fi
  78. %posttrans
  79. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  80. update-desktop-database -q &> /dev/null || :
  81. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  82. %files -f %{name}.lang
  83. %defattr(-,root,root,-)
  84. %doc COPYING ChangeLog README NEWS
  85. %{_bindir}/%{name}
  86. %{_libdir}/libgitg-1.0.so.*
  87. %{_libdir}/libgitg-ext-1.0.so.*
  88. %{_libdir}/girepository-1.0/Gitg-1.0.typelib
  89. %{_libdir}/girepository-1.0/GitgExt-1.0.typelib
  90. %{_libdir}/%{name}
  91. %{python3_sitearch}/gi/overrides/GitgExt.py
  92. %{python3_sitearch}/gi/overrides/__pycache__/GitgExt*
  93. %{_datadir}/appdata/%{name}.appdata.xml
  94. %{_datadir}/applications/%{name}.desktop
  95. %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml
  96. %{_datadir}/%{name}/icons/hicolor/scalable/actions/diff-symbolic.svg
  97. %{_datadir}/icons/hicolor/*/*/*
  98. %{_mandir}/man1/%{name}.1.gz
  99. %files devel
  100. %defattr(-,root,root,-)
  101. %{_includedir}/libgitg-1.0/
  102. %{_includedir}/libgitg-ext-1.0/
  103. %{_libdir}/libgitg-1.0.so
  104. %{_libdir}/libgitg-ext-1.0.so
  105. %{_libdir}/pkgconfig/libgitg-1.0.pc
  106. %{_libdir}/pkgconfig/libgitg-ext-1.0.pc
  107. %{_datadir}/gir-1.0/Gitg-1.0.gir
  108. %{_datadir}/gir-1.0/GitgExt-1.0.gir
  109. %files vala
  110. %defattr(-,root,root,-)
  111. %{_datadir}/vala/vapi/libgitg-1.0.vapi
  112. %{_datadir}/vala/vapi/libgitg-ext-1.0.vapi
  113. %changelog
  114. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.0-1
  115. - new upstream release
  116. * Sun May 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1
  117. - new upstream release
  118. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1
  119. - initial build