3 %bcond_without static_libs # don't build static library
6 %define xfce_version 4.3.90.2
8 Summary: Extension library to Xfce developed by os-cillation
9 Summary(pl): Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation
15 Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/exo-%{version}%{_pre}.tar.bz2
16 # Source0-md5: b8465faab19e233d5edda12bdd4940b4
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.0
22 BuildRequires: gtk-doc >= 1.0
23 BuildRequires: libtool
24 BuildRequires: libxfce4util-devel >= %{xfce_version}
25 BuildRequires: pkgconfig
26 BuildRequires: python-pygtk-devel >= 2:2.9.3
27 BuildRequires: rpmbuild(macros) >= 1.219
28 BuildRequires: rpm-pythonprov
29 BuildRequires: xfce4-dev-tools >= %{xfce_version}
30 BuildRequires: xfce-mcs-manager-devel >= %{xfce_version}
31 BuildRequires: xorg-lib-libXt-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Extension library to Xfce developed by os-cillation.
38 Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation.
40 %package -n xfce-preferred-applications
41 Summary: The Xfce Preferred Applications framework
42 Summary(pl): Struktura Preferowanych Aplikacji Xfce
44 Requires(post,postun): gtk+2 >= 2:2.10.0
45 Requires: xfce-mcs-plugins >= %{xfce_version}
47 %description -n xfce-preferred-applications
48 The Xfce Preferred Applications framework.
50 %description -n xfce-preferred-applications -l pl
51 Struktura Preferowanych Aplikacji Xfce.
54 Summary: Header files for libexo library
55 Summary(pl): Pliki nag³ówkowe biblioteki libexo
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: libxfce4util-devel >= %{xfce_version}
61 Header files for libexo library.
63 %description devel -l pl
64 Pliki nag³ówkowe biblioteki libexo.
67 Summary: Static libexo library
68 Summary(pl): Statyczna biblioteka libexo
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static libexo library.
75 %description static -l pl
76 Statyczna biblioteka libexo.
78 %package -n python-exo
79 Summary: Python binding for libexo library
80 Summary(pl): Wi±zania Pythona do biblioteki libexo
81 Group: Libraries/Python
82 Requires: %{name} = %{version}-%{release}
83 %pyrequires_eq python-libs
85 %description -n python-exo
86 Python binding for libexo library.
88 %description -n python-exo -l pl
89 Wi±zania Pythona do biblioteki libexo.
91 %package -n python-exo-devel
92 Summary: Development files for libexo Python bindings
93 Summary(pl): Pliki programistyczne wi±zañ Pythona do libexo
94 Group: Libraries/Python
95 Requires: python-exo = %{version}-%{release}
97 %description -n python-exo-devel
98 Development files for libexo Python bindings.
100 %description -n python-exo-devel -l pl
101 Pliki programistyczne wi±zañ Pythona do libexo.
104 %setup -q -n exo-%{version}%{_pre}
112 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
114 --with-html-dir=%{_gtkdocdir} \
115 %{!?with_static_libs:--disable-static} \
116 --enable-xfce-mcs-manager
120 rm -rf $RPM_BUILD_ROOT
123 DESTDIR=$RPM_BUILD_ROOT
125 rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/mcs-plugins/*.{la,a}
126 rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a}
130 %find_lang %{name}-0.3
133 rm -rf $RPM_BUILD_ROOT
135 %post -p /sbin/ldconfig
136 %postun -p /sbin/ldconfig
138 %post -n xfce-preferred-applications
139 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
141 %postun -n xfce-preferred-applications
142 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
144 %files -f %{name}-0.3.lang
145 %defattr(644,root,root,755)
146 %doc AUTHORS ChangeLog HACKING NEWS README TODO
147 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
149 %files -n xfce-preferred-applications
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_bindir}/*
152 %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3
153 %attr(755,root,root) %{_libdir}/exo-helper-0.3
154 %attr(755,root,root) %{_libdir}/xfce4/mcs-plugins/exo-preferred-applications-settings.so
155 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
156 %{_datadir}/xfce4/doc/C
157 %lang(ja) %{_datadir}/xfce4/doc/ja
158 %dir %{_datadir}/xfce4/helpers
159 %{_datadir}/xfce4/helpers/*.desktop
160 %{_desktopdir}/*.desktop
161 %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
162 %{_iconsdir}/hicolor/*/apps/applications-internet.png
163 %{_iconsdir}/hicolor/*/apps/applications-other.png
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/lib*.so
170 %{_includedir}/exo-0.3
171 %{_pkgconfigdir}/*.pc
172 # not present in beta ?
175 %if %{with static_libs}
177 %defattr(644,root,root,755)
182 %defattr(644,root,root,755)
183 %dir %{py_sitedir}/exo-0.3
184 %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so
185 %dir %{py_sitedir}/exo-0.3/exo
186 %{py_sitedir}/exo-0.3/exo/*.py[co]
187 %{py_sitescriptdir}/*.py[co]
189 %files -n python-exo-devel
190 %defattr(644,root,root,755)
191 %{_datadir}/pygtk/2.0/defs/exo-0.3