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