| 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 |
|---|
| 6 | Version: 3.16.1 |
|---|
| 7 | Release: 1%{?_dist_release} |
|---|
| 8 | License: GPLv2 |
|---|
| 9 | Group: Applications/Development |
|---|
| 10 | URL: https://wiki.gnome.org/Apps/Gitg/ |
|---|
| 11 | |
|---|
| 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.16/%{name}-%{version}.tar.xz |
|---|
| 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 | sed -i 's|<include name="WebKit2" version="3.0"/>|<include name="WebKit2" version="4.0"/>|' Gitg-1.0.gir |
|---|
| 71 | |
|---|
| 72 | %build |
|---|
| 73 | %configure \ |
|---|
| 74 | --disable-static \ |
|---|
| 75 | --disable-glade-catalog |
|---|
| 76 | |
|---|
| 77 | make %{?_smp_mflags} |
|---|
| 78 | |
|---|
| 79 | %install |
|---|
| 80 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 81 | make install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 82 | |
|---|
| 83 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
|---|
| 84 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
|---|
| 85 | |
|---|
| 86 | %find_lang %{name} |
|---|
| 87 | |
|---|
| 88 | %clean |
|---|
| 89 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 90 | |
|---|
| 91 | %post |
|---|
| 92 | /sbin/ldconfig |
|---|
| 93 | touch --no-create %{_datadir}/icons/hicolor > /dev/null || : |
|---|
| 94 | |
|---|
| 95 | %postun |
|---|
| 96 | /sbin/ldconfig |
|---|
| 97 | if [ $1 -eq 0 ] ; then |
|---|
| 98 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 99 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> > /dev/null || : |
|---|
| 100 | update-desktop-database -q > /dev/null || : |
|---|
| 101 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
|---|
| 102 | fi |
|---|
| 103 | |
|---|
| 104 | %posttrans |
|---|
| 105 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 106 | update-desktop-database -q &> /dev/null || : |
|---|
| 107 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
|---|
| 108 | |
|---|
| 109 | |
|---|
| 110 | %files -f %{name}.lang |
|---|
| 111 | %defattr(-,root,root,-) |
|---|
| 112 | %doc COPYING ChangeLog README NEWS |
|---|
| 113 | %{_bindir}/%{name} |
|---|
| 114 | %{_libdir}/libgitg-1.0.so.* |
|---|
| 115 | %{_libdir}/libgitg-ext-1.0.so.* |
|---|
| 116 | %{_libdir}/girepository-1.0/Gitg-1.0.typelib |
|---|
| 117 | %{_libdir}/girepository-1.0/GitgExt-1.0.typelib |
|---|
| 118 | %{_libdir}/%{name} |
|---|
| 119 | %{python3_sitearch}/gi/overrides/GitgExt.py |
|---|
| 120 | %{python3_sitearch}/gi/overrides/__pycache__/GitgExt* |
|---|
| 121 | %{_datadir}/appdata/%{name}.appdata.xml |
|---|
| 122 | %{_datadir}/applications/%{name}.desktop |
|---|
| 123 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml |
|---|
| 124 | %{_datadir}/%{name}/icons/hicolor/scalable/actions/diff-symbolic.svg |
|---|
| 125 | %{_datadir}/icons/hicolor/*/*/* |
|---|
| 126 | %{_mandir}/man1/%{name}.1.gz |
|---|
| 127 | |
|---|
| 128 | %files devel |
|---|
| 129 | %defattr(-,root,root,-) |
|---|
| 130 | %{_includedir}/libgitg-1.0/ |
|---|
| 131 | %{_includedir}/libgitg-ext-1.0/ |
|---|
| 132 | %{_libdir}/libgitg-1.0.so |
|---|
| 133 | %{_libdir}/libgitg-ext-1.0.so |
|---|
| 134 | %{_libdir}/pkgconfig/libgitg-1.0.pc |
|---|
| 135 | %{_libdir}/pkgconfig/libgitg-ext-1.0.pc |
|---|
| 136 | %{_datadir}/gir-1.0/Gitg-1.0.gir |
|---|
| 137 | %{_datadir}/gir-1.0/GitgExt-1.0.gir |
|---|
| 138 | |
|---|
| 139 | %files vala |
|---|
| 140 | %defattr(-,root,root,-) |
|---|
| 141 | %{_datadir}/vala/vapi/libgitg-1.0.vapi |
|---|
| 142 | %{_datadir}/vala/vapi/libgitg-ext-1.0.vapi |
|---|
| 143 | |
|---|
| 144 | %changelog |
|---|
| 145 | * Sun May 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1 |
|---|
| 146 | - new upstream release |
|---|
| 147 | |
|---|
| 148 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1 |
|---|
| 149 | - initial build |
|---|
| 150 | |
|---|