File exo.spec of Package exo

#
# spec file for package exo (Version 0.3.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           exo
BuildRequires:  perl-URI
BuildRequires:  dbus-1-devel gtk2-devel libpng-devel perl-URI python
%if %suse_version >= 1020
BuildRequires:  python-devel python-gtk-devel
%endif
BuildRequires:  startup-notification xorg-x11
BuildRequires:  libxfce4util-devel >= 4.3
BuildRequires:  xfce-mcs-manager-devel >= 4.3
BuildRequires:  update-desktop-files
BuildRequires:  hal-devel
Summary:        Library libexo is targeted at application development
Version:        0.3.4
Release:        106
License:        GPL v2 or later; LGPL v2.1 or later
Url:            http://www.xfce.org/
Source:         %{name}-%{version}.tar.bz2
Source1:        rpmlintrc
Patch0:         %{name}-%{version}-firefox-params.patch
Patch1:         %{name}-%{version}-env.patch
Patch2:         %{name}-%{version}-oldhal.patch
Group:          System/GUI/XFCE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is libexo, an extension library to Xfce, developed by
os-cillation. While Xfce comes with quite a few libraries that are
targeted at desktop development, libexo is targeted at application
development.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%package devel
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       exo = %{version}
Requires:       libxfce4util-devel >= 4.3
Requires:       xfce-mcs-manager-devel >= 4.3
Requires:       gtk2-devel glib2-devel hal-devel
Summary:        Library libexo is targeted at application development
Group:          System/GUI/XFCE
AutoReqProv:    on
PreReq:         %install_info_prereq

%description devel
This is libexo, an extension library to Xfce, developed by
os-cillation. While Xfce comes with quite a few libraries that are
targeted at desktop development, libexo is targeted at application
development.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%package doc
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       exo = %{version}
Requires:       libxfce4util-devel >= 4.3
Requires:       xfce-mcs-manager-devel >= 4.3
Requires:       gtk2-devel glib2-devel hal-devel
Summary:        Documentation for libexo
Group:          System/GUI/XFCE
AutoReqProv:    on
PreReq:         %install_info_prereq

%description doc
HTML documentation for libexo.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%prep
%setup -q 
%patch0
%patch1
%if 0%{?suse_version} <= 1010
%patch2
%endif

%build
%configure \
    --disable-static
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang libexo-0.3
%suse_update_desktop_file -i exo-preferred-applications Settings DesktopSettings
%if %suse_version >= 1020
# strip $RPM_BUILD_ROOT from libs
sed -i s%${RPM_BUILD_ROOT}%""%g \
        ${RPM_BUILD_ROOT}%{py_sitedir}/exo-*/exo/*.py*
sed -i s%${RPM_BUILD_ROOT}%""%g \
        ${RPM_BUILD_ROOT}%{py_sitedir}/pyexo.py*
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%files -f libexo-0.3.lang
%defattr(-,root,root)
%doc README ChangeLog HACKING NEWS COPYING AUTHORS THANKS TODO
%{_bindir}/exo*
%{_libdir}/*exo*.so.*
%{_libexecdir}/exo-*
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/doc/ja
%dir %{_datadir}/xfce4/helpers
%{_datadir}/xfce4/doc/*/*
%{_datadir}/xfce4/helpers/*desktop
%{_datadir}/applications/*
%{_datadir}/man/*/*
%dir %{_datadir}/pixmaps/exo-0.3
%{_datadir}/pixmaps/exo-0.3/exo-thumbnail-frame.png
%dir %{_datadir}/icons/*/*
%dir %{_datadir}/icons/*/*/*
%{_datadir}/icons/*/*/*/*
%dir %{_sysconfdir}/xdg/xfce4
%{_sysconfdir}/xdg/xfce4/helpers.rc
%dir %{_libdir}/xfce4/mcs-plugins
%{_libdir}/xfce4/mcs-plugins/*
%if %suse_version >= 1020
%{py_sitedir}/exo-0.3
%{py_sitedir}/pyexo.py*
%{_datadir}/pygtk/2.*/defs/exo-0.3/exo.defs
%endif

%files devel
%defattr(-,root,root)
%{_includedir}/*/*/*
%dir %{_includedir}/exo-0.3
%dir %{_includedir}/exo-0.3/exo
%dir %{_includedir}/exo-0.3/exo-hal
%{_libdir}/*exo*a
%{_libdir}/*exo*.so
%{_libdir}/pkgconfig/*
%dir %{_libdir}/xfce4
%if %suse_version >= 1020
%dir %{_datadir}/pygtk/2.0/defs/exo-0.3
%endif

%files doc
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/exo
%{_datadir}/gtk-doc/html/exo

%changelog
* Sun Jan 27 2008 coolo@suse.de
- fix changelog
* Wed Dec 05 2007 bwalle@suse.de
- updated exo-oldhal.patch (Fridrich Strba <fstrba@novell.com>)
* Mon Dec 03 2007 bwalle@suse.de
- update to exo 0.3.4
  o Add option to exo-csource to strip comments from XML prior to
  embedding them into binaries
  o Properly quote URLs prior to passing them to external programs
  o Bump required HAL version to 0.5.7
  o Updated translations
* Sun Oct 21 2007 bwalle@suse.de
- remove buildroot references from Python object files
* Sun Oct 21 2007 bwalle@suse.de
- build with HAL support for SLE10
- move preferred applications MCS plugin from exo-devel to exo
  (#325981)
- enable python extension
- replaced group 'System/GUI/Other' by 'System/GUI/XFCE'
* Tue Sep 18 2007 bwalle@suse.de
- move preferred applications MCS plugin from exo-devel to exo
  (#325981)
* Tue Jun 19 2007 prusnak@suse.cz
- cleaned spec file, moved some files to devel subpackage
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build static libraries (#238552).
* Fri Jan 26 2007 ro@suse.de
- added directory to filelist
* Sun Jan 21 2007 ro@suse.de
- minor fixes in filelist
* Sun Jan 21 2007 bwalle@suse.de
- upgrade to 0.3.2
- added HAL support on 10.2 and later
* Wed Jan 17 2007 pnemec@suse.cz
- package is merged from BuildService at version 0.3.1.12rc2
* Wed Dec 27 2006 bwalle@suse.de
- added patch in Mozilla desktop file that doesn't call mozilla openURL()
  because the Mozilla start script of SUSE already handles this -- current
  version doesn't handle the case where Mozilla is already running
  (applies also to Firefox)
* Sun Nov 05 2006 bwalle@suse.de
- updated to 4.3.99.2 (4.4 rc2)
* Tue Sep 05 2006 pnemec@suse.cz
- updated to new version 0.3.1.10rc1
* Thu Aug 24 2006 pnemec@suse.cz
- added dbus-devel to build requires
* Wed Aug 02 2006 pnemec@suse.cz
- initial comment, version is 0.3.1.8beta2
- package moved into BuildService
- no patch needed
openSUSE Build Service is sponsored by