]>
Commit | Line | Data |
---|---|---|
22fe3d17 | 1 | # |
3edba695 | 2 | # Conditional build: |
1c066059 | 3 | %bcond_without apidocs # disable gtk-doc |
3eb704f5 | 4 | %bcond_without static_libs # don't build static library |
3edba695 | 5 | # |
9899927b | 6 | %define xfce_version 4.8.0 |
1f492905 | 7 | # |
c4ca9554 | 8 | Summary: Extension library to Xfce developed by os-cillation |
3800417d | 9 | Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation |
5b5c113b | 10 | Name: exo |
9899927b MB |
11 | Version: 0.6.0 |
12 | Release: 1 | |
c4ca9554 | 13 | License: GPL v2 |
849ed81e | 14 | Group: X11/Libraries |
9899927b MB |
15 | Source0: http://archive.xfce.org/xfce/4.8/src/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: ac9deafdf9de426d8a03855ac549f424 | |
c4ca9554 | 17 | URL: http://www.os-cillation.com/ |
1f492905 | 18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake | |
20687b30 | 20 | BuildRequires: docbook-dtd412-xml |
8607d679 | 21 | BuildRequires: gettext-devel |
9899927b MB |
22 | BuildRequires: glib2-devel >= 1:2.27.0 |
23 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
1c066059 | 25 | BuildRequires: gtk-doc-automake |
737f4d4f | 26 | BuildRequires: intltool >= 0.35.0 |
849ed81e | 27 | BuildRequires: libtool |
1f492905 | 28 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
d31d715c | 29 | BuildRequires: perl-URI |
8b122451 | 30 | BuildRequires: pkgconfig |
aa64eb26 | 31 | BuildRequires: python-pygtk-devel >= 2:2.10.3 |
1f492905 | 32 | BuildRequires: rpm-pythonprov |
9899927b MB |
33 | BuildRequires: rpmbuild(macros) >= 1.601 |
34 | BuildRequires: xfce4-dev-tools >= 4.8.0 | |
35 | Requires: glib2 >= 1:2.27.0 | |
fd08d4f4 | 36 | Requires: xfce4-dirs >= 4.6 |
5b5c113b MB |
37 | Provides: libexo |
38 | Obsoletes: libexo | |
c4ca9554 AG |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Extension library to Xfce developed by os-cillation. | |
43 | ||
8d7f3270 JR |
44 | %description -l pl.UTF-8 |
45 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
c4ca9554 | 46 | |
1f492905 | 47 | %package -n xfce-preferred-applications |
48 | Summary: The Xfce Preferred Applications framework | |
3800417d | 49 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce |
849ed81e | 50 | Group: X11/Applications |
849ed81e | 51 | Requires: %{name} = %{version}-%{release} |
9899927b MB |
52 | Requires: gtk-update-icon-cache |
53 | Requires: hicolor-icon-theme | |
1f492905 | 54 | |
55 | %description -n xfce-preferred-applications | |
56 | The Xfce Preferred Applications framework. | |
57 | ||
8d7f3270 | 58 | %description -n xfce-preferred-applications -l pl.UTF-8 |
1f492905 | 59 | Struktura Preferowanych Aplikacji Xfce. |
60 | ||
0ab17a4e MB |
61 | %package apidocs |
62 | Summary: libexo API documentation | |
3800417d | 63 | Summary(pl.UTF-8): Dokumentacja API libexo |
0ab17a4e MB |
64 | Group: Documentation |
65 | Requires: gtk-doc-common | |
5b5c113b MB |
66 | Provides: libexo-apidocs |
67 | Obsoletes: libexo-apidocs | |
0ab17a4e MB |
68 | |
69 | %description apidocs | |
70 | libexo API documentation. | |
71 | ||
8d7f3270 | 72 | %description apidocs -l pl.UTF-8 |
0ab17a4e MB |
73 | Dokumentacja API libexo. |
74 | ||
c4ca9554 AG |
75 | %package devel |
76 | Summary: Header files for libexo library | |
3800417d | 77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo |
849ed81e | 78 | Group: X11/Development/Libraries |
c4ca9554 | 79 | Requires: %{name} = %{version}-%{release} |
9899927b | 80 | Requires: gtk+2-devel >= 2:2.14.0 |
1f492905 | 81 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b MB |
82 | Provides: libexo-devel |
83 | Obsoletes: libexo-devel | |
c4ca9554 AG |
84 | |
85 | %description devel | |
86 | Header files for libexo library. | |
87 | ||
8d7f3270 JR |
88 | %description devel -l pl.UTF-8 |
89 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
90 | |
91 | %package static | |
92 | Summary: Static libexo library | |
3800417d | 93 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 94 | Group: X11/Development/Libraries |
c4ca9554 | 95 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b MB |
96 | Provides: libexo-static |
97 | Obsoletes: libexo-static | |
c4ca9554 AG |
98 | |
99 | %description static | |
100 | Static libexo library. | |
101 | ||
8d7f3270 | 102 | %description static -l pl.UTF-8 |
c4ca9554 AG |
103 | Statyczna biblioteka libexo. |
104 | ||
8b122451 JB |
105 | %package -n python-exo |
106 | Summary: Python binding for libexo library | |
3800417d | 107 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo |
8b122451 JB |
108 | Group: Libraries/Python |
109 | Requires: %{name} = %{version}-%{release} | |
110 | %pyrequires_eq python-libs | |
111 | ||
112 | %description -n python-exo | |
113 | Python binding for libexo library. | |
114 | ||
8d7f3270 JR |
115 | %description -n python-exo -l pl.UTF-8 |
116 | Wiązania Pythona do biblioteki libexo. | |
8b122451 JB |
117 | |
118 | %package -n python-exo-devel | |
119 | Summary: Development files for libexo Python bindings | |
3800417d | 120 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo |
8b122451 JB |
121 | Group: Libraries/Python |
122 | Requires: python-exo = %{version}-%{release} | |
123 | ||
124 | %description -n python-exo-devel | |
125 | Development files for libexo Python bindings. | |
126 | ||
8d7f3270 JR |
127 | %description -n python-exo-devel -l pl.UTF-8 |
128 | Pliki programistyczne wiązań Pythona do libexo. | |
8b122451 | 129 | |
c4ca9554 | 130 | %prep |
5b5c113b | 131 | %setup -q |
c4ca9554 AG |
132 | |
133 | %build | |
90f8ebc9 | 134 | %{?with_apidocs:%{__gtkdocize}} |
737f4d4f | 135 | %{__intltoolize} |
1f492905 | 136 | %{__libtoolize} |
137 | %{__aclocal} | |
138 | %{__autoheader} | |
139 | %{__automake} | |
140 | %{__autoconf} | |
c4ca9554 | 141 | %configure \ |
1c066059 | 142 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
0ab17a4e | 143 | --enable-notifications \ |
1c066059 | 144 | --enable-python \ |
3eb704f5 | 145 | --with-html-dir=%{_gtkdocdir} \ |
9899927b MB |
146 | %{!?with_static_libs:--disable-static} \ |
147 | --disable-silent-rules | |
1c066059 | 148 | |
c4ca9554 AG |
149 | %{__make} |
150 | ||
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %{__make} install \ | |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
9899927b MB |
157 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/exo-*/*.{a,la} |
158 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
159 | ||
160 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{tl_PH,ur_PK} | |
8b122451 | 161 | |
1c066059 KK |
162 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} |
163 | ||
de87e0a2 JR |
164 | rm -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK |
165 | ||
22fe3d17 MB |
166 | %py_postclean |
167 | ||
9899927b | 168 | %find_lang exo-1 |
2bc3c417 | 169 | |
c4ca9554 AG |
170 | %clean |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
173 | %post -p /sbin/ldconfig | |
9899927b | 174 | %postun -p /sbin/ldconfig |
c4ca9554 | 175 | |
1f492905 | 176 | %post -n xfce-preferred-applications |
737f4d4f | 177 | %update_icon_cache hicolor |
1f492905 | 178 | |
179 | %postun -n xfce-preferred-applications | |
737f4d4f | 180 | %update_icon_cache hicolor |
1f492905 | 181 | |
9899927b | 182 | %files -f exo-1.lang |
c4ca9554 | 183 | %defattr(644,root,root,755) |
9899927b MB |
184 | %doc AUTHORS ChangeLog HACKING NEWS README TODO |
185 | %attr(755,root,root) %{_libdir}/libexo-1.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0 | |
187 | %{_pixmapsdir}/exo-1 | |
c4ca9554 | 188 | |
1f492905 | 189 | %files -n xfce-preferred-applications |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_bindir}/* | |
9899927b MB |
192 | %dir %{_libdir}/xfce4/exo-1 |
193 | %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1 | |
194 | %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1 | |
1f492905 | 195 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc |
9899927b MB |
196 | %dir %{_datadir}/doc/exo |
197 | %dir %{_datadir}/doc/exo/html | |
198 | %{_datadir}/doc/exo/html/exo-preferred-applications.css | |
199 | %{_datadir}/doc/exo/html/C | |
200 | %lang(bn) %{_datadir}/doc/exo/html/bn | |
201 | %lang(ca) %{_datadir}/doc/exo/html/ca | |
202 | %lang(da) %{_datadir}/doc/exo/html/da | |
203 | %lang(de) %{_datadir}/doc/exo/html/de | |
204 | %lang(el) %{_datadir}/doc/exo/html/el | |
205 | %lang(es) %{_datadir}/doc/exo/html/es | |
206 | %lang(fr) %{_datadir}/doc/exo/html/fr | |
207 | %lang(gl) %{_datadir}/doc/exo/html/gl | |
208 | %lang(id) %{_datadir}/doc/exo/html/id | |
209 | %lang(it) %{_datadir}/doc/exo/html/it | |
210 | %lang(ja) %{_datadir}/doc/exo/html/ja | |
211 | %lang(pt) %{_datadir}/doc/exo/html/pt | |
212 | %lang(pt_BR) %{_datadir}/doc/exo/html/pt_BR | |
213 | %lang(ru) %{_datadir}/doc/exo/html/ru | |
214 | %lang(sv) %{_datadir}/doc/exo/html/sv | |
215 | %lang(tr) %{_datadir}/doc/exo/html/tr | |
216 | %lang(ug) %{_datadir}/doc/exo/html/ug | |
217 | %lang(zh_CN) %{_datadir}/doc/exo/html/zh_CN | |
1f492905 | 218 | %dir %{_datadir}/xfce4/helpers |
219 | %{_datadir}/xfce4/helpers/*.desktop | |
220 | %{_desktopdir}/*.desktop | |
221 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png | |
222 | %{_iconsdir}/hicolor/*/apps/applications-internet.png | |
223 | %{_iconsdir}/hicolor/*/apps/applications-other.png | |
224 | %{_mandir}/man1/*.1* | |
225 | ||
1c066059 | 226 | %if %{with apidocs} |
0ab17a4e MB |
227 | %files apidocs |
228 | %defattr(644,root,root,755) | |
9899927b | 229 | %{_gtkdocdir}/exo-1 |
1c066059 | 230 | %endif |
0ab17a4e | 231 | |
c4ca9554 AG |
232 | %files devel |
233 | %defattr(644,root,root,755) | |
9899927b MB |
234 | %attr(755,root,root) %{_libdir}/libexo-1.so |
235 | %{_includedir}/exo-1 | |
236 | %{_pkgconfigdir}/exo-1.pc | |
c4ca9554 | 237 | |
3eb704f5 | 238 | %if %{with static_libs} |
c4ca9554 AG |
239 | %files static |
240 | %defattr(644,root,root,755) | |
9899927b | 241 | %{_libdir}/libexo-1.a |
3eb704f5 | 242 | %endif |
8b122451 JB |
243 | |
244 | %files -n python-exo | |
245 | %defattr(644,root,root,755) | |
9899927b MB |
246 | %dir %{py_sitedir}/exo-0.6 |
247 | %attr(755,root,root) %{py_sitedir}/exo-0.6/_exo.so | |
248 | %dir %{py_sitedir}/exo-0.6/exo | |
249 | %{py_sitedir}/exo-0.6/exo/*.py[co] | |
8b122451 JB |
250 | %{py_sitescriptdir}/*.py[co] |
251 | ||
252 | %files -n python-exo-devel | |
253 | %defattr(644,root,root,755) | |
9899927b | 254 | %{_datadir}/pygtk/2.0/defs/exo-0.6 |