X-Git-Url: http://git.pld-linux.org/?p=packages%2Fexo.git;a=blobdiff_plain;f=exo.spec;h=39853c4884d7a7e417c6b7e82fb707f7a05fb3c8;hp=129835635ca7f19cb1eddc1d3dfd3f478c749308;hb=5b3fbbded51c227d0120cf6234963005258d363b;hpb=5ed0f8ad67617fd0f9bbdcc967d8701d343ca615 diff --git a/exo.spec b/exo.spec index 1298356..39853c4 100644 --- a/exo.spec +++ b/exo.spec @@ -1,37 +1,37 @@ # # Conditional build: %bcond_without apidocs # disable gtk-doc -%bcond_without static_libs # don't build static library -# -%define xfce_version 4.6.1 -# +%bcond_with static_libs # don't build static library + +%define xfce_version 4.10.0 Summary: Extension library to Xfce developed by os-cillation Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation Name: exo -Version: 0.3.101 -Release: 2 +Version: 0.10.2 +Release: 1 License: GPL v2 Group: X11/Libraries -Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2 -# Source0-md5: 1c0eebb360f53eab70454b70e1bde36e +Source0: http://archive.xfce.org/src/xfce/exo/0.10/%{name}-%{version}.tar.bz2 +# Source0-md5: c70f2a217811bfba2e62f938d4b8f748 URL: http://www.os-cillation.com/ BuildRequires: autoconf >= 2.50 BuildRequires: automake +BuildRequires: docbook-dtd412-xml BuildRequires: gettext-devel -BuildRequires: gtk+2-devel >= 2:2.10.6 -%{?with_apidocs:BuildRequires: gtk-doc >= 1.7} +BuildRequires: glib2-devel >= 1:2.27.0 +BuildRequires: gtk+2-devel >= 2:2.14.0 +%{?with_apidocs:BuildRequires: gtk-doc >= 1.9} BuildRequires: gtk-doc-automake -BuildRequires: hal-devel >= 0.5.7 BuildRequires: intltool >= 0.35.0 -BuildRequires: libnotify-devel >= 0.4.0 BuildRequires: libtool +BuildRequires: libxfce4ui-devel >= %{xfce_version} BuildRequires: libxfce4util-devel >= %{xfce_version} BuildRequires: perl-URI BuildRequires: pkgconfig -BuildRequires: python-pygtk-devel >= 2:2.10.3 -BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.311 -BuildRequires: xfce4-dev-tools >= 4.6.0 +BuildRequires: rpmbuild(macros) >= 1.601 +BuildRequires: xfce4-dev-tools >= 4.10.0 +Requires: glib2 >= 1:2.27.0 +Requires: xfce4-dirs >= 4.6 Provides: libexo Obsoletes: libexo BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -46,9 +46,9 @@ Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. Summary: The Xfce Preferred Applications framework Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce Group: X11/Applications -Requires(post,postun): gtk+2 -Requires(post,postun): hicolor-icon-theme Requires: %{name} = %{version}-%{release} +Requires: gtk-update-icon-cache +Requires: hicolor-icon-theme %description -n xfce-preferred-applications The Xfce Preferred Applications framework. @@ -75,8 +75,7 @@ Summary: Header files for libexo library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo Group: X11/Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: gtk+2-devel >= 2:2.10.6 -Requires: hal-devel >= 0.5.7 +Requires: gtk+2-devel >= 2:2.14.0 Requires: libxfce4util-devel >= %{xfce_version} Provides: libexo-devel Obsoletes: libexo-devel @@ -101,35 +100,13 @@ Static libexo library. %description static -l pl.UTF-8 Statyczna biblioteka libexo. -%package -n python-exo -Summary: Python binding for libexo library -Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo -Group: Libraries/Python -Requires: %{name} = %{version}-%{release} -%pyrequires_eq python-libs - -%description -n python-exo -Python binding for libexo library. - -%description -n python-exo -l pl.UTF-8 -Wiązania Pythona do biblioteki libexo. - -%package -n python-exo-devel -Summary: Development files for libexo Python bindings -Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo -Group: Libraries/Python -Requires: python-exo = %{version}-%{release} - -%description -n python-exo-devel -Development files for libexo Python bindings. - -%description -n python-exo-devel -l pl.UTF-8 -Pliki programistyczne wiązań Pythona do libexo. - %prep %setup -q +%{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac + %build +%{?with_apidocs:%{__gtkdocize}} %{__intltoolize} %{__libtoolize} %{__aclocal} @@ -138,33 +115,31 @@ Pliki programistyczne wiązań Pythona do libexo. %{__autoconf} %configure \ --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ - --enable-hal \ - --enable-notifications \ - --enable-python \ --with-html-dir=%{_gtkdocdir} \ - %{!?with_static_libs:--disable-static} + %{!?with_static_libs:--disable-static} \ + --disable-silent-rules %{__make} %install rm -rf $RPM_BUILD_ROOT - %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la -%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} +# already exists as ur +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK -%py_postclean +%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} -%find_lang libexo-0.3 +%find_lang exo-1 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -p /sbin/ldconfig %post -n xfce-preferred-applications %update_icon_cache hicolor @@ -172,32 +147,20 @@ rm -rf $RPM_BUILD_ROOT %postun -n xfce-preferred-applications %update_icon_cache hicolor -%files -f libexo-0.3.lang +%files -f exo-1.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog HACKING NEWS README TODO -%attr(755,root,root) %{_libdir}/libexo-0.3.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libexo-0.3.so.0 -%attr(755,root,root) %{_libdir}/libexo-hal-0.3.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libexo-hal-0.3.so.0 -%{_pixmapsdir}/exo-0.3 +%attr(755,root,root) %{_libdir}/libexo-1.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0 +%{_pixmapsdir}/exo-1 %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 +%dir %{_libdir}/xfce4/exo-1 +%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1 +%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc -%{_datadir}/xfce4/doc/C/* -%lang(da) %{_datadir}/xfce4/doc/da/* -%lang(es) %{_datadir}/xfce4/doc/es/* -%lang(fr) %{_datadir}/xfce4/doc/fr/* -%lang(gl) %{_datadir}/xfce4/doc/gl/* -%lang(id) %{_datadir}/xfce4/doc/id/* -%lang(it) %{_datadir}/xfce4/doc/it/* -%lang(ja) %{_datadir}/xfce4/doc/ja/* -%lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/* -%lang(tr) %{_datadir}/xfce4/doc/tr/* %dir %{_datadir}/xfce4/helpers %{_datadir}/xfce4/helpers/*.desktop %{_desktopdir}/*.desktop @@ -209,34 +172,17 @@ rm -rf $RPM_BUILD_ROOT %if %{with apidocs} %files apidocs %defattr(644,root,root,755) -%{_gtkdocdir}/exo +%{_gtkdocdir}/exo-1 %endif %files devel %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libexo-0.3.so -%attr(755,root,root) %{_libdir}/libexo-hal-0.3.so -%{_libdir}/libexo-0.3.la -%{_libdir}/libexo-hal-0.3.la -%{_includedir}/exo-0.3 -%{_pkgconfigdir}/exo-0.3.pc -%{_pkgconfigdir}/exo-hal-0.3.pc +%attr(755,root,root) %{_libdir}/libexo-1.so +%{_includedir}/exo-1 +%{_pkgconfigdir}/exo-1.pc %if %{with static_libs} %files static %defattr(644,root,root,755) -%{_libdir}/libexo-0.3.a -%{_libdir}/libexo-hal-0.3.a +%{_libdir}/libexo-1.a %endif - -%files -n python-exo -%defattr(644,root,root,755) -%dir %{py_sitedir}/exo-0.3 -%attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so -%dir %{py_sitedir}/exo-0.3/exo -%{py_sitedir}/exo-0.3/exo/*.py[co] -%{py_sitescriptdir}/*.py[co] - -%files -n python-exo-devel -%defattr(644,root,root,755) -%{_datadir}/pygtk/2.0/defs/exo-0.3