]>
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 | # |
fbdc17d8 | 6 | %define xfce_version 4.6.1 |
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 |
fbdc17d8 | 11 | Version: 0.3.101 |
fd08d4f4 | 12 | Release: 5 |
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 |
fbdc17d8 | 16 | # Source0-md5: 1c0eebb360f53eab70454b70e1bde36e |
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 |
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 |
0ab17a4e | 51 | Requires(post,postun): gtk+2 |
737f4d4f | 52 | Requires(post,postun): hicolor-icon-theme |
849ed81e | 53 | Requires: %{name} = %{version}-%{release} |
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} |
849ed81e MB |
80 | Requires: gtk+2-devel >= 2:2.10.6 |
81 | Requires: hal-devel >= 0.5.7 | |
1f492905 | 82 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b MB |
83 | Provides: libexo-devel |
84 | Obsoletes: libexo-devel | |
c4ca9554 AG |
85 | |
86 | %description devel | |
87 | Header files for libexo library. | |
88 | ||
8d7f3270 JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
91 | |
92 | %package static | |
93 | Summary: Static libexo library | |
3800417d | 94 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 95 | Group: X11/Development/Libraries |
c4ca9554 | 96 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b MB |
97 | Provides: libexo-static |
98 | Obsoletes: libexo-static | |
c4ca9554 AG |
99 | |
100 | %description static | |
101 | Static libexo library. | |
102 | ||
8d7f3270 | 103 | %description static -l pl.UTF-8 |
c4ca9554 AG |
104 | Statyczna biblioteka libexo. |
105 | ||
8b122451 JB |
106 | %package -n python-exo |
107 | Summary: Python binding for libexo library | |
3800417d | 108 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo |
8b122451 JB |
109 | Group: Libraries/Python |
110 | Requires: %{name} = %{version}-%{release} | |
111 | %pyrequires_eq python-libs | |
112 | ||
113 | %description -n python-exo | |
114 | Python binding for libexo library. | |
115 | ||
8d7f3270 JR |
116 | %description -n python-exo -l pl.UTF-8 |
117 | Wiązania Pythona do biblioteki libexo. | |
8b122451 JB |
118 | |
119 | %package -n python-exo-devel | |
120 | Summary: Development files for libexo Python bindings | |
3800417d | 121 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo |
8b122451 JB |
122 | Group: Libraries/Python |
123 | Requires: python-exo = %{version}-%{release} | |
124 | ||
125 | %description -n python-exo-devel | |
126 | Development files for libexo Python bindings. | |
127 | ||
8d7f3270 JR |
128 | %description -n python-exo-devel -l pl.UTF-8 |
129 | Pliki programistyczne wiązań Pythona do libexo. | |
8b122451 | 130 | |
c4ca9554 | 131 | %prep |
5b5c113b | 132 | %setup -q |
c4ca9554 AG |
133 | |
134 | %build | |
90f8ebc9 | 135 | %{?with_apidocs:%{__gtkdocize}} |
737f4d4f | 136 | %{__intltoolize} |
1f492905 | 137 | %{__libtoolize} |
138 | %{__aclocal} | |
139 | %{__autoheader} | |
140 | %{__automake} | |
141 | %{__autoconf} | |
c4ca9554 | 142 | %configure \ |
1c066059 | 143 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
0ab17a4e | 144 | --enable-hal \ |
0ab17a4e | 145 | --enable-notifications \ |
1c066059 | 146 | --enable-python \ |
3eb704f5 | 147 | --with-html-dir=%{_gtkdocdir} \ |
1c066059 KK |
148 | %{!?with_static_libs:--disable-static} |
149 | ||
c4ca9554 AG |
150 | %{__make} |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %{__make} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | ||
8b122451 JB |
158 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a} |
159 | ||
1c066059 KK |
160 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} |
161 | ||
22fe3d17 MB |
162 | %py_postclean |
163 | ||
5b5c113b | 164 | %find_lang libexo-0.3 |
2bc3c417 | 165 | |
c4ca9554 AG |
166 | %clean |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %post -p /sbin/ldconfig | |
170 | %postun -p /sbin/ldconfig | |
171 | ||
1f492905 | 172 | %post -n xfce-preferred-applications |
737f4d4f | 173 | %update_icon_cache hicolor |
1f492905 | 174 | |
175 | %postun -n xfce-preferred-applications | |
737f4d4f | 176 | %update_icon_cache hicolor |
1f492905 | 177 | |
5b5c113b | 178 | %files -f libexo-0.3.lang |
c4ca9554 AG |
179 | %defattr(644,root,root,755) |
180 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
849ed81e MB |
181 | %attr(755,root,root) %{_libdir}/libexo-0.3.so.*.*.* |
182 | %attr(755,root,root) %ghost %{_libdir}/libexo-0.3.so.0 | |
183 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libexo-hal-0.3.so.0 | |
185 | %{_pixmapsdir}/exo-0.3 | |
c4ca9554 | 186 | |
1f492905 | 187 | %files -n xfce-preferred-applications |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_bindir}/* | |
190 | %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3 | |
191 | %attr(755,root,root) %{_libdir}/exo-helper-0.3 | |
0ab17a4e | 192 | %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3 |
1f492905 | 193 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc |
fd08d4f4 JR |
194 | %{_datadir}/xfce4/doc/C/*.html |
195 | %{_datadir}/xfce4/doc/C/images/*.png | |
196 | %lang(da) %{_datadir}/xfce4/doc/da/*.html | |
197 | %lang(es) %{_datadir}/xfce4/doc/es/*.html | |
198 | %lang(es) %{_datadir}/xfce4/doc/es/images/*.png | |
199 | %lang(fr) %{_datadir}/xfce4/doc/fr/*.html | |
200 | %lang(fr) %{_datadir}/xfce4/doc/fr/images/*.png | |
201 | %lang(gl) %{_datadir}/xfce4/doc/gl/*.html | |
202 | %lang(id) %{_datadir}/xfce4/doc/id/*.html | |
203 | %lang(id) %{_datadir}/xfce4/doc/id/images/*.png | |
204 | %lang(it) %{_datadir}/xfce4/doc/it/*.html | |
205 | %lang(it) %{_datadir}/xfce4/doc/it/images/*.png | |
206 | %lang(ja) %{_datadir}/xfce4/doc/ja/*.html | |
207 | %lang(ja) %{_datadir}/xfce4/doc/ja/images/*.png | |
208 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/*.html | |
209 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/images/*.png | |
210 | %lang(tr) %{_datadir}/xfce4/doc/tr/*.html | |
211 | %lang(tr) %{_datadir}/xfce4/doc/tr/images/*.png | |
1f492905 | 212 | %dir %{_datadir}/xfce4/helpers |
213 | %{_datadir}/xfce4/helpers/*.desktop | |
214 | %{_desktopdir}/*.desktop | |
215 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png | |
216 | %{_iconsdir}/hicolor/*/apps/applications-internet.png | |
217 | %{_iconsdir}/hicolor/*/apps/applications-other.png | |
218 | %{_mandir}/man1/*.1* | |
219 | ||
1c066059 | 220 | %if %{with apidocs} |
0ab17a4e MB |
221 | %files apidocs |
222 | %defattr(644,root,root,755) | |
223 | %{_gtkdocdir}/exo | |
1c066059 | 224 | %endif |
0ab17a4e | 225 | |
c4ca9554 AG |
226 | %files devel |
227 | %defattr(644,root,root,755) | |
849ed81e MB |
228 | %attr(755,root,root) %{_libdir}/libexo-0.3.so |
229 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so | |
230 | %{_libdir}/libexo-0.3.la | |
231 | %{_libdir}/libexo-hal-0.3.la | |
6dac1ab9 | 232 | %{_includedir}/exo-0.3 |
849ed81e MB |
233 | %{_pkgconfigdir}/exo-0.3.pc |
234 | %{_pkgconfigdir}/exo-hal-0.3.pc | |
c4ca9554 | 235 | |
3eb704f5 | 236 | %if %{with static_libs} |
c4ca9554 AG |
237 | %files static |
238 | %defattr(644,root,root,755) | |
849ed81e MB |
239 | %{_libdir}/libexo-0.3.a |
240 | %{_libdir}/libexo-hal-0.3.a | |
3eb704f5 | 241 | %endif |
8b122451 JB |
242 | |
243 | %files -n python-exo | |
244 | %defattr(644,root,root,755) | |
245 | %dir %{py_sitedir}/exo-0.3 | |
246 | %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so | |
247 | %dir %{py_sitedir}/exo-0.3/exo | |
248 | %{py_sitedir}/exo-0.3/exo/*.py[co] | |
249 | %{py_sitescriptdir}/*.py[co] | |
250 | ||
251 | %files -n python-exo-devel | |
252 | %defattr(644,root,root,755) | |
253 | %{_datadir}/pygtk/2.0/defs/exo-0.3 |