]>
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 |
7136207d | 12 | Release: 6 |
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 |
7136207d | 17 | Patch0: %{name}-gchar.patch |
c4ca9554 | 18 | URL: http://www.os-cillation.com/ |
1f492905 | 19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
20687b30 | 21 | BuildRequires: docbook-dtd412-xml |
8607d679 | 22 | BuildRequires: gettext-devel |
aa64eb26 | 23 | BuildRequires: gtk+2-devel >= 2:2.10.6 |
1c066059 KK |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
25 | BuildRequires: gtk-doc-automake | |
849ed81e | 26 | BuildRequires: hal-devel >= 0.5.7 |
737f4d4f | 27 | BuildRequires: intltool >= 0.35.0 |
0ab17a4e | 28 | BuildRequires: libnotify-devel >= 0.4.0 |
849ed81e | 29 | BuildRequires: libtool |
1f492905 | 30 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
d31d715c | 31 | BuildRequires: perl-URI |
8b122451 | 32 | BuildRequires: pkgconfig |
aa64eb26 | 33 | BuildRequires: python-pygtk-devel >= 2:2.10.3 |
1f492905 | 34 | BuildRequires: rpm-pythonprov |
0ab17a4e | 35 | BuildRequires: rpmbuild(macros) >= 1.311 |
849ed81e | 36 | BuildRequires: xfce4-dev-tools >= 4.6.0 |
fd08d4f4 | 37 | Requires: xfce4-dirs >= 4.6 |
5b5c113b MB |
38 | Provides: libexo |
39 | Obsoletes: libexo | |
c4ca9554 AG |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Extension library to Xfce developed by os-cillation. | |
44 | ||
8d7f3270 JR |
45 | %description -l pl.UTF-8 |
46 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
c4ca9554 | 47 | |
1f492905 | 48 | %package -n xfce-preferred-applications |
49 | Summary: The Xfce Preferred Applications framework | |
3800417d | 50 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce |
849ed81e | 51 | Group: X11/Applications |
0ab17a4e | 52 | Requires(post,postun): gtk+2 |
737f4d4f | 53 | Requires(post,postun): hicolor-icon-theme |
849ed81e | 54 | Requires: %{name} = %{version}-%{release} |
1f492905 | 55 | |
56 | %description -n xfce-preferred-applications | |
57 | The Xfce Preferred Applications framework. | |
58 | ||
8d7f3270 | 59 | %description -n xfce-preferred-applications -l pl.UTF-8 |
1f492905 | 60 | Struktura Preferowanych Aplikacji Xfce. |
61 | ||
0ab17a4e MB |
62 | %package apidocs |
63 | Summary: libexo API documentation | |
3800417d | 64 | Summary(pl.UTF-8): Dokumentacja API libexo |
0ab17a4e MB |
65 | Group: Documentation |
66 | Requires: gtk-doc-common | |
5b5c113b MB |
67 | Provides: libexo-apidocs |
68 | Obsoletes: libexo-apidocs | |
0ab17a4e MB |
69 | |
70 | %description apidocs | |
71 | libexo API documentation. | |
72 | ||
8d7f3270 | 73 | %description apidocs -l pl.UTF-8 |
0ab17a4e MB |
74 | Dokumentacja API libexo. |
75 | ||
c4ca9554 AG |
76 | %package devel |
77 | Summary: Header files for libexo library | |
3800417d | 78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo |
849ed81e | 79 | Group: X11/Development/Libraries |
c4ca9554 | 80 | Requires: %{name} = %{version}-%{release} |
849ed81e MB |
81 | Requires: gtk+2-devel >= 2:2.10.6 |
82 | Requires: hal-devel >= 0.5.7 | |
1f492905 | 83 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b MB |
84 | Provides: libexo-devel |
85 | Obsoletes: libexo-devel | |
c4ca9554 AG |
86 | |
87 | %description devel | |
88 | Header files for libexo library. | |
89 | ||
8d7f3270 JR |
90 | %description devel -l pl.UTF-8 |
91 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
92 | |
93 | %package static | |
94 | Summary: Static libexo library | |
3800417d | 95 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 96 | Group: X11/Development/Libraries |
c4ca9554 | 97 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b MB |
98 | Provides: libexo-static |
99 | Obsoletes: libexo-static | |
c4ca9554 AG |
100 | |
101 | %description static | |
102 | Static libexo library. | |
103 | ||
8d7f3270 | 104 | %description static -l pl.UTF-8 |
c4ca9554 AG |
105 | Statyczna biblioteka libexo. |
106 | ||
8b122451 JB |
107 | %package -n python-exo |
108 | Summary: Python binding for libexo library | |
3800417d | 109 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo |
8b122451 JB |
110 | Group: Libraries/Python |
111 | Requires: %{name} = %{version}-%{release} | |
112 | %pyrequires_eq python-libs | |
113 | ||
114 | %description -n python-exo | |
115 | Python binding for libexo library. | |
116 | ||
8d7f3270 JR |
117 | %description -n python-exo -l pl.UTF-8 |
118 | Wiązania Pythona do biblioteki libexo. | |
8b122451 JB |
119 | |
120 | %package -n python-exo-devel | |
121 | Summary: Development files for libexo Python bindings | |
3800417d | 122 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo |
8b122451 JB |
123 | Group: Libraries/Python |
124 | Requires: python-exo = %{version}-%{release} | |
125 | ||
126 | %description -n python-exo-devel | |
127 | Development files for libexo Python bindings. | |
128 | ||
8d7f3270 JR |
129 | %description -n python-exo-devel -l pl.UTF-8 |
130 | Pliki programistyczne wiązań Pythona do libexo. | |
8b122451 | 131 | |
c4ca9554 | 132 | %prep |
5b5c113b | 133 | %setup -q |
7136207d | 134 | %patch0 -p1 |
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 | ||
22fe3d17 MB |
164 | %py_postclean |
165 | ||
5b5c113b | 166 | %find_lang libexo-0.3 |
2bc3c417 | 167 | |
c4ca9554 AG |
168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
171 | %post -p /sbin/ldconfig | |
172 | %postun -p /sbin/ldconfig | |
173 | ||
1f492905 | 174 | %post -n xfce-preferred-applications |
737f4d4f | 175 | %update_icon_cache hicolor |
1f492905 | 176 | |
177 | %postun -n xfce-preferred-applications | |
737f4d4f | 178 | %update_icon_cache hicolor |
1f492905 | 179 | |
5b5c113b | 180 | %files -f libexo-0.3.lang |
c4ca9554 AG |
181 | %defattr(644,root,root,755) |
182 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
849ed81e MB |
183 | %attr(755,root,root) %{_libdir}/libexo-0.3.so.*.*.* |
184 | %attr(755,root,root) %ghost %{_libdir}/libexo-0.3.so.0 | |
185 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libexo-hal-0.3.so.0 | |
187 | %{_pixmapsdir}/exo-0.3 | |
c4ca9554 | 188 | |
1f492905 | 189 | %files -n xfce-preferred-applications |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_bindir}/* | |
192 | %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3 | |
193 | %attr(755,root,root) %{_libdir}/exo-helper-0.3 | |
0ab17a4e | 194 | %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3 |
1f492905 | 195 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc |
fd08d4f4 JR |
196 | %{_datadir}/xfce4/doc/C/*.html |
197 | %{_datadir}/xfce4/doc/C/images/*.png | |
198 | %lang(da) %{_datadir}/xfce4/doc/da/*.html | |
199 | %lang(es) %{_datadir}/xfce4/doc/es/*.html | |
200 | %lang(es) %{_datadir}/xfce4/doc/es/images/*.png | |
201 | %lang(fr) %{_datadir}/xfce4/doc/fr/*.html | |
202 | %lang(fr) %{_datadir}/xfce4/doc/fr/images/*.png | |
203 | %lang(gl) %{_datadir}/xfce4/doc/gl/*.html | |
204 | %lang(id) %{_datadir}/xfce4/doc/id/*.html | |
205 | %lang(id) %{_datadir}/xfce4/doc/id/images/*.png | |
206 | %lang(it) %{_datadir}/xfce4/doc/it/*.html | |
207 | %lang(it) %{_datadir}/xfce4/doc/it/images/*.png | |
208 | %lang(ja) %{_datadir}/xfce4/doc/ja/*.html | |
209 | %lang(ja) %{_datadir}/xfce4/doc/ja/images/*.png | |
210 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/*.html | |
211 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/images/*.png | |
212 | %lang(tr) %{_datadir}/xfce4/doc/tr/*.html | |
213 | %lang(tr) %{_datadir}/xfce4/doc/tr/images/*.png | |
1f492905 | 214 | %dir %{_datadir}/xfce4/helpers |
215 | %{_datadir}/xfce4/helpers/*.desktop | |
216 | %{_desktopdir}/*.desktop | |
217 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png | |
218 | %{_iconsdir}/hicolor/*/apps/applications-internet.png | |
219 | %{_iconsdir}/hicolor/*/apps/applications-other.png | |
220 | %{_mandir}/man1/*.1* | |
221 | ||
1c066059 | 222 | %if %{with apidocs} |
0ab17a4e MB |
223 | %files apidocs |
224 | %defattr(644,root,root,755) | |
225 | %{_gtkdocdir}/exo | |
1c066059 | 226 | %endif |
0ab17a4e | 227 | |
c4ca9554 AG |
228 | %files devel |
229 | %defattr(644,root,root,755) | |
849ed81e MB |
230 | %attr(755,root,root) %{_libdir}/libexo-0.3.so |
231 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so | |
232 | %{_libdir}/libexo-0.3.la | |
233 | %{_libdir}/libexo-hal-0.3.la | |
6dac1ab9 | 234 | %{_includedir}/exo-0.3 |
849ed81e MB |
235 | %{_pkgconfigdir}/exo-0.3.pc |
236 | %{_pkgconfigdir}/exo-hal-0.3.pc | |
c4ca9554 | 237 | |
3eb704f5 | 238 | %if %{with static_libs} |
c4ca9554 AG |
239 | %files static |
240 | %defattr(644,root,root,755) | |
849ed81e MB |
241 | %{_libdir}/libexo-0.3.a |
242 | %{_libdir}/libexo-hal-0.3.a | |
3eb704f5 | 243 | %endif |
8b122451 JB |
244 | |
245 | %files -n python-exo | |
246 | %defattr(644,root,root,755) | |
247 | %dir %{py_sitedir}/exo-0.3 | |
248 | %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so | |
249 | %dir %{py_sitedir}/exo-0.3/exo | |
250 | %{py_sitedir}/exo-0.3/exo/*.py[co] | |
251 | %{py_sitescriptdir}/*.py[co] | |
252 | ||
253 | %files -n python-exo-devel | |
254 | %defattr(644,root,root,755) | |
255 | %{_datadir}/pygtk/2.0/defs/exo-0.3 |