3 %bcond_without static_libs # don't build static library
5 %define xfce_version 4.4.0
7 Summary: Extension library to Xfce developed by os-cillation
8 Summary(pl): Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation
14 Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/exo-%{version}.tar.bz2
15 # Source0-md5: 8b73acc98d0938d1193b31316823b6db
16 URL: http://www.os-cillation.com/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 BuildRequires: gettext-devel
20 BuildRequires: gtk+2-devel >= 2:2.8.20
21 BuildRequires: gtk-doc >= 1.6
22 BuildRequires: hal-devel >= 0.5.0
23 BuildRequires: intltool >= 0.35.0
24 BuildRequires: libtool
25 BuildRequires: libnotify-devel >= 0.4.0
26 BuildRequires: libxfce4util-devel >= %{xfce_version}
27 BuildRequires: perl-URI
28 BuildRequires: pkgconfig
29 BuildRequires: python-pygtk-devel >= 2:2.8.6
30 BuildRequires: rpm-pythonprov
31 BuildRequires: rpmbuild(macros) >= 1.311
32 BuildRequires: xfce-mcs-manager-devel >= %{xfce_version}
33 BuildRequires: xfce4-dev-tools >= %{xfce_version}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Extension library to Xfce developed by os-cillation.
40 Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation.
42 %package -n xfce-preferred-applications
43 Summary: The Xfce Preferred Applications framework
44 Summary(pl): Struktura Preferowanych Aplikacji Xfce
46 Requires(post,postun): gtk+2
47 Requires(post,postun): hicolor-icon-theme
48 Requires: xfce-mcs-plugins >= %{xfce_version}
50 %description -n xfce-preferred-applications
51 The Xfce Preferred Applications framework.
53 %description -n xfce-preferred-applications -l pl
54 Struktura Preferowanych Aplikacji Xfce.
57 Summary: libexo API documentation
58 Summary(pl): Dokumentacja API libexo
60 Requires: gtk-doc-common
63 libexo API documentation.
65 %description apidocs -l pl
66 Dokumentacja API libexo.
69 Summary: Header files for libexo library
70 Summary(pl): Pliki nag³ówkowe biblioteki libexo
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
73 Requires: libxfce4util-devel >= %{xfce_version}
76 Header files for libexo library.
78 %description devel -l pl
79 Pliki nag³ówkowe biblioteki libexo.
82 Summary: Static libexo library
83 Summary(pl): Statyczna biblioteka libexo
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
88 Static libexo library.
90 %description static -l pl
91 Statyczna biblioteka libexo.
93 %package -n python-exo
94 Summary: Python binding for libexo library
95 Summary(pl): Wi±zania Pythona do biblioteki libexo
96 Group: Libraries/Python
97 Requires: %{name} = %{version}-%{release}
98 %pyrequires_eq python-libs
100 %description -n python-exo
101 Python binding for libexo library.
103 %description -n python-exo -l pl
104 Wi±zania Pythona do biblioteki libexo.
106 %package -n python-exo-devel
107 Summary: Development files for libexo Python bindings
108 Summary(pl): Pliki programistyczne wi±zañ Pythona do libexo
109 Group: Libraries/Python
110 Requires: python-exo = %{version}-%{release}
112 %description -n python-exo-devel
113 Development files for libexo Python bindings.
115 %description -n python-exo-devel -l pl
116 Pliki programistyczne wi±zañ Pythona do libexo.
119 %setup -q -n exo-%{version}
131 --enable-notifications \
132 --with-html-dir=%{_gtkdocdir} \
133 %{!?with_static_libs:--disable-static} \
139 rm -rf $RPM_BUILD_ROOT
142 DESTDIR=$RPM_BUILD_ROOT
144 rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/mcs-plugins/*.{la,a}
145 rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a}
149 %find_lang %{name}-0.3
152 rm -rf $RPM_BUILD_ROOT
154 %post -p /sbin/ldconfig
155 %postun -p /sbin/ldconfig
157 %post -n xfce-preferred-applications
158 %update_icon_cache hicolor
160 %postun -n xfce-preferred-applications
161 %update_icon_cache hicolor
163 %files -f %{name}-0.3.lang
164 %defattr(644,root,root,755)
165 %doc AUTHORS ChangeLog HACKING NEWS README TODO
166 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
167 %{_pixmapsdir}/exo-0.3/
169 %files -n xfce-preferred-applications
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_bindir}/*
172 %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3
173 %attr(755,root,root) %{_libdir}/exo-helper-0.3
174 %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3
175 %attr(755,root,root) %{_libdir}/xfce4/mcs-plugins/exo-preferred-applications-settings.so
176 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
177 %{_datadir}/xfce4/doc/C
178 %lang(fr) %{_datadir}/xfce4/doc/fr
179 %lang(ja) %{_datadir}/xfce4/doc/ja
180 %dir %{_datadir}/xfce4/helpers
181 %{_datadir}/xfce4/helpers/*.desktop
182 %{_desktopdir}/*.desktop
183 %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
184 %{_iconsdir}/hicolor/*/apps/applications-internet.png
185 %{_iconsdir}/hicolor/*/apps/applications-other.png
189 %defattr(644,root,root,755)
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/lib*.so
196 %{_includedir}/exo-0.3
197 %{_pkgconfigdir}/*.pc
199 %if %{with static_libs}
201 %defattr(644,root,root,755)
206 %defattr(644,root,root,755)
207 %dir %{py_sitedir}/exo-0.3
208 %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so
209 %dir %{py_sitedir}/exo-0.3/exo
210 %{py_sitedir}/exo-0.3/exo/*.py[co]
211 %{py_sitescriptdir}/*.py[co]
213 %files -n python-exo-devel
214 %defattr(644,root,root,755)
215 %{_datadir}/pygtk/2.0/defs/exo-0.3