]>
Commit | Line | Data |
---|---|---|
e96d6515 AF |
1 | %bcond_with gtk3 # build gtk3 version |
2 | # | |
3 | Summary: Gtk+ git repository viewer | |
4 | Name: gitg | |
5 | Version: 0.1.0 | |
5666e859 | 6 | Release: 0.2 |
e96d6515 AF |
7 | License: GPL v2 |
8 | Group: Development/Tools | |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gitg/0.1/%{name}-%{version}.tar.bz2 | |
10 | # Source0-md5: 052fbb7ad4c62c546e8f3206510ebb0f | |
11 | URL: http://trac.novowork.com/gitg/ | |
12 | BuildRequires: GConf2-devel >= 2.24.0 | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake >= 1:1.8 | |
15 | BuildRequires: gettext-devel >= 0.17 | |
16 | BuildRequires: glib2-devel >= 1:2.26.0 | |
5666e859 | 17 | BuildRequires: gsettings-desktop-schemas-devel |
e96d6515 AF |
18 | BuildRequires: intltool >= 0.40.0 |
19 | BuildRequires: libtool | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: rpm-pythonprov | |
22 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
23 | BuildRequires: rpmbuild(macros) >= 1.596 | |
24 | %if %{with gtk3} | |
25 | BuildRequires: gtk+3-devel >= 2.91.7 | |
26 | BuildRequires: gtksourceview3-devel >= 2.90.0 | |
27 | %else | |
28 | BuildRequires: gtk+2-devel >= 2:2.21.0 | |
29 | BuildRequires: gtksourceview2-devel >= 2.8.0 | |
30 | %endif | |
31 | Requires(post,postun): desktop-file-utils | |
89cb9555 | 32 | Requires(post,postun): gtk-update-icon-cache |
e96d6515 AF |
33 | Requires(post,preun): GConf2 |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %if %{with gtk3} | |
37 | %define gtk_ver 3.0 | |
38 | %else | |
39 | %define gtk_ver 2.0 | |
40 | %endif | |
41 | ||
42 | %description | |
43 | gitg is a git repository viewer targeting gtk+/GNOME. One of its main | |
44 | objectives is to provide a more unified user experience for git | |
45 | frontends across multiple desktops. | |
46 | ||
47 | %package devel | |
48 | Summary: libgitg header files | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe libgitg | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | libgitg header files. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe libgitg. | |
58 | ||
59 | %package static | |
60 | Summary: libgitg static libraries | |
61 | Summary(pl.UTF-8): Biblioteki statyczne libgitg | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | libgitg static libraries. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Biblioteki statyczne libgitg | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %{__libtoolize} | |
76 | %{__intltoolize} | |
77 | %{__aclocal} -I m4 | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %configure \ | |
82 | --with-gtk=%{gtk_ver} \ | |
83 | --disable-silent-rules | |
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgitg-1.0.la | |
93 | ||
94 | %find_lang gitg | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post | |
100 | /sbin/ldconfig | |
101 | %glib_compile_schemas | |
102 | %update_icon_cache hicolor | |
103 | ||
104 | %postun | |
105 | if [ "$1" = "0" ]; then | |
106 | /sbin/ldconfig | |
107 | %glib_compile_schemas | |
108 | %update_icon_cache hicolor | |
109 | fi | |
110 | ||
111 | %files -f gitg.lang | |
112 | %defattr(644,root,root,755) | |
113 | %doc README ChangeLog AUTHORS NEWS | |
114 | %attr(755,root,root) %{_bindir}/gitg | |
115 | %attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0 | |
116 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.* | |
117 | %{_datadir}/gitg | |
118 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml | |
119 | %{_desktopdir}/gitg.desktop | |
120 | %{_mandir}/man1/gitg.1* | |
121 | %{_iconsdir}/hicolor/*/apps/gitg.* | |
122 | ||
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libgitg-1.0.so | |
126 | %{_includedir}/libgitg-1.0 | |
127 | %{_pkgconfigdir}/libgitg-1.0.pc | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libgitg-1.0.a |