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