X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=exo.spec;h=a4566df4731b683193b83c4447940f69ade02fae;hb=refs%2Ftags%2Fauto%2Fth%2Flibexo-0_3_2-1;hp=c126dbb840b12b25db8dbdf88d423543c16f6539;hpb=7910b444b34b24834a8e460cb4052f9982d8c4c8;p=packages%2Fexo.git diff --git a/exo.spec b/exo.spec index c126dbb..a4566df 100644 --- a/exo.spec +++ b/exo.spec @@ -1,21 +1,37 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static library +# +%define xfce_version 4.4.0 +# Summary: Extension library to Xfce developed by os-cillation Summary(pl): Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation Name: libexo -Version: 0.3.0 +Version: 0.3.2 Release: 1 License: GPL v2 Group: Libraries -Source0: http://download.berlios.de/xfce-goodies/exo-%{version}.tar.bz2 -# Source0-md5: ffcd73ec6b34f19c81afdc3f1a97377b +Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/exo-%{version}.tar.bz2 +# Source0-md5: 8b73acc98d0938d1193b31316823b6db URL: http://www.os-cillation.com/ +BuildRequires: autoconf >= 2.50 +BuildRequires: automake BuildRequires: gettext-devel -BuildRequires: gtk-doc >= 1.0 -BuildRequires: gtk+2-devel >= 2:2.4.0 -BuildRequires: libstdc++-devel -BuildRequires: libxfcegui4-devel >= 4.2.0 +BuildRequires: gtk+2-devel >= 2:2.10.6 +BuildRequires: gtk-doc >= 1.7 +BuildRequires: hal-devel >= 0.5.0 +BuildRequires: intltool >= 0.35.0 +BuildRequires: libtool +BuildRequires: libnotify-devel >= 0.4.0 +BuildRequires: libxfce4util-devel >= %{xfce_version} +BuildRequires: perl-URI BuildRequires: pkgconfig -BuildRequires: python -BuildRequires: python-pygtk-devel >= 2:2.4.0 +BuildRequires: python-pygtk-devel >= 2:2.10.3 +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.311 +BuildRequires: xfce-mcs-manager-devel >= %{xfce_version} +BuildRequires: xfce4-dev-tools >= %{xfce_version} +BuildRequires: xorg-lib-libXt-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -24,11 +40,38 @@ Extension library to Xfce developed by os-cillation. %description -l pl Biblioteka rozszerzeñ do Xfce opracowana przez os-cillation. +%package -n xfce-preferred-applications +Summary: The Xfce Preferred Applications framework +Summary(pl): Struktura Preferowanych Aplikacji Xfce +Group: Applications +Requires(post,postun): gtk+2 +Requires(post,postun): hicolor-icon-theme +Requires: xfce-mcs-plugins >= %{xfce_version} + +%description -n xfce-preferred-applications +The Xfce Preferred Applications framework. + +%description -n xfce-preferred-applications -l pl +Struktura Preferowanych Aplikacji Xfce. + +%package apidocs +Summary: libexo API documentation +Summary(pl): Dokumentacja API libexo +Group: Documentation +Requires: gtk-doc-common + +%description apidocs +libexo API documentation. + +%description apidocs -l pl +Dokumentacja API libexo. + %package devel Summary: Header files for libexo library Summary(pl): Pliki nag³ówkowe biblioteki libexo Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: libxfce4util-devel >= %{xfce_version} %description devel Header files for libexo library. @@ -77,8 +120,20 @@ Pliki programistyczne wi %setup -q -n exo-%{version} %build +%{__intltoolize} +%{__libtoolize} +%{__aclocal} +%{__autoheader} +%{__automake} +%{__autoconf} %configure \ - --with-html-dir=%{_gtkdocdir} + --enable-hal \ + --enable-gtk-doc \ + --enable-notifications \ + --with-html-dir=%{_gtkdocdir} \ + %{!?with_static_libs:--disable-static} \ + --enable-python \ + --enable-mcs-plugin %{__make} %install @@ -87,8 +142,11 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/mcs-plugins/*.{la,a} rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a} +%py_postclean + %find_lang %{name}-0.3 %clean @@ -97,10 +155,40 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post -n xfce-preferred-applications +%update_icon_cache hicolor + +%postun -n xfce-preferred-applications +%update_icon_cache hicolor + %files -f %{name}-0.3.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog HACKING NEWS README TODO %attr(755,root,root) %{_libdir}/lib*.so.*.*.* +%{_pixmapsdir}/exo-0.3/ + +%files -n xfce-preferred-applications +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/exo-compose-mail-0.3 +%attr(755,root,root) %{_libdir}/exo-helper-0.3 +%attr(755,root,root) %{_libdir}/exo-mount-notify-0.3 +%attr(755,root,root) %{_libdir}/xfce4/mcs-plugins/exo-preferred-applications-settings.so +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc +%{_datadir}/xfce4/doc/C +%lang(fr) %{_datadir}/xfce4/doc/fr +%lang(ja) %{_datadir}/xfce4/doc/ja +%dir %{_datadir}/xfce4/helpers +%{_datadir}/xfce4/helpers/*.desktop +%{_desktopdir}/*.desktop +%{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png +%{_iconsdir}/hicolor/*/apps/applications-internet.png +%{_iconsdir}/hicolor/*/apps/applications-other.png +%{_mandir}/man1/*.1* + +%files apidocs +%defattr(644,root,root,755) +%{_gtkdocdir}/exo %files devel %defattr(644,root,root,755) @@ -108,11 +196,12 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/lib*.la %{_includedir}/exo-0.3 %{_pkgconfigdir}/*.pc -%{_gtkdocdir}/exo +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/lib*.a +%endif %files -n python-exo %defattr(644,root,root,755)