3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without static_libs # don't build static library
6 %define xfce_version 4.6.1
8 Summary: Extension library to Xfce developed by os-cillation
9 Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation
15 Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2
16 # Source0-md5: 1c0eebb360f53eab70454b70e1bde36e
17 URL: http://www.os-cillation.com/
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: gettext-devel
21 BuildRequires: gtk+2-devel >= 2:2.10.6
22 %{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
23 BuildRequires: gtk-doc-automake
24 BuildRequires: hal-devel >= 0.5.7
25 BuildRequires: intltool >= 0.35.0
26 BuildRequires: libnotify-devel >= 0.4.0
27 BuildRequires: libtool
28 BuildRequires: libxfce4util-devel >= %{xfce_version}
29 BuildRequires: perl-URI
30 BuildRequires: pkgconfig
31 BuildRequires: python-pygtk-devel >= 2:2.10.3
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.311
34 BuildRequires: xfce4-dev-tools >= 4.6.0
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Extension library to Xfce developed by os-cillation.
42 %description -l pl.UTF-8
43 Biblioteka rozszerzeń do Xfce opracowana przez os-cillation.
45 %package -n xfce-preferred-applications
46 Summary: The Xfce Preferred Applications framework
47 Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce
48 Group: X11/Applications
49 Requires(post,postun): gtk+2
50 Requires(post,postun): hicolor-icon-theme
51 Requires: %{name} = %{version}-%{release}
53 %description -n xfce-preferred-applications
54 The Xfce Preferred Applications framework.
56 %description -n xfce-preferred-applications -l pl.UTF-8
57 Struktura Preferowanych Aplikacji Xfce.
60 Summary: libexo API documentation
61 Summary(pl.UTF-8): Dokumentacja API libexo
63 Requires: gtk-doc-common
64 Provides: libexo-apidocs
65 Obsoletes: libexo-apidocs
68 libexo API documentation.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API libexo.
74 Summary: Header files for libexo library
75 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo
76 Group: X11/Development/Libraries
77 Requires: %{name} = %{version}-%{release}
78 Requires: gtk+2-devel >= 2:2.10.6
79 Requires: hal-devel >= 0.5.7
80 Requires: libxfce4util-devel >= %{xfce_version}
81 Provides: libexo-devel
82 Obsoletes: libexo-devel
85 Header files for libexo library.
87 %description devel -l pl.UTF-8
88 Pliki nagłówkowe biblioteki libexo.
91 Summary: Static libexo library
92 Summary(pl.UTF-8): Statyczna biblioteka libexo
93 Group: X11/Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
95 Provides: libexo-static
96 Obsoletes: libexo-static
99 Static libexo library.
101 %description static -l pl.UTF-8
102 Statyczna biblioteka libexo.
104 %package -n python-exo
105 Summary: Python binding for libexo library
106 Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo
107 Group: Libraries/Python
108 Requires: %{name} = %{version}-%{release}
109 %pyrequires_eq python-libs
111 %description -n python-exo
112 Python binding for libexo library.
114 %description -n python-exo -l pl.UTF-8
115 Wiązania Pythona do biblioteki libexo.
117 %package -n python-exo-devel
118 Summary: Development files for libexo Python bindings
119 Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo
120 Group: Libraries/Python
121 Requires: python-exo = %{version}-%{release}
123 %description -n python-exo-devel
124 Development files for libexo Python bindings.
126 %description -n python-exo-devel -l pl.UTF-8
127 Pliki programistyczne wiązań Pythona do libexo.
140 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
142 --enable-notifications \
144 --with-html-dir=%{_gtkdocdir} \
145 %{!?with_static_libs:--disable-static}
150 rm -rf $RPM_BUILD_ROOT
153 DESTDIR=$RPM_BUILD_ROOT
155 rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a}
157 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo}
161 %find_lang libexo-0.3
164 rm -rf $RPM_BUILD_ROOT
166 %post -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
169 %post -n xfce-preferred-applications
170 %update_icon_cache hicolor
172 %postun -n xfce-preferred-applications
173 %update_icon_cache hicolor
175 %files -f libexo-0.3.lang
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog HACKING NEWS README TODO
178 %attr(755,root,root) %{_libdir}/libexo-0.3.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libexo-0.3.so.0
180 %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so.*.*.*
181 %attr(755,root,root) %ghost %{_libdir}/libexo-hal-0.3.so.0
182 %{_pixmapsdir}/exo-0.3
184 %files -n xfce-preferred-applications
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_bindir}/*
187 %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3
188 %attr(755,root,root) %{_libdir}/exo-helper-0.3
189 %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3
190 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
191 %{_datadir}/xfce4/doc/C/*
192 %lang(da) %{_datadir}/xfce4/doc/da/*
193 %lang(es) %{_datadir}/xfce4/doc/es/*
194 %lang(fr) %{_datadir}/xfce4/doc/fr/*
195 %lang(gl) %{_datadir}/xfce4/doc/gl/*
196 %lang(id) %{_datadir}/xfce4/doc/id/*
197 %lang(it) %{_datadir}/xfce4/doc/it/*
198 %lang(ja) %{_datadir}/xfce4/doc/ja/*
199 %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/*
200 %lang(tr) %{_datadir}/xfce4/doc/tr/*
201 %dir %{_datadir}/xfce4/helpers
202 %{_datadir}/xfce4/helpers/*.desktop
203 %{_desktopdir}/*.desktop
204 %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
205 %{_iconsdir}/hicolor/*/apps/applications-internet.png
206 %{_iconsdir}/hicolor/*/apps/applications-other.png
211 %defattr(644,root,root,755)
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/libexo-0.3.so
218 %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so
219 %{_libdir}/libexo-0.3.la
220 %{_libdir}/libexo-hal-0.3.la
221 %{_includedir}/exo-0.3
222 %{_pkgconfigdir}/exo-0.3.pc
223 %{_pkgconfigdir}/exo-hal-0.3.pc
225 %if %{with static_libs}
227 %defattr(644,root,root,755)
228 %{_libdir}/libexo-0.3.a
229 %{_libdir}/libexo-hal-0.3.a
233 %defattr(644,root,root,755)
234 %dir %{py_sitedir}/exo-0.3
235 %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so
236 %dir %{py_sitedir}/exo-0.3/exo
237 %{py_sitedir}/exo-0.3/exo/*.py[co]
238 %{py_sitescriptdir}/*.py[co]
240 %files -n python-exo-devel
241 %defattr(644,root,root,755)
242 %{_datadir}/pygtk/2.0/defs/exo-0.3