1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session.spec

138 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xfce4-session (Version 4.4.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xfce4-session
BuildRequires: dbus-1-devel gtk2-devel libxml2-devel perl-XML-Parser startup-notification update-desktop-files xorg-x11
%if %suse_version > 1010
BuildRequires: dbus-1-glib-devel
%endif
BuildRequires: xfce-mcs-manager-devel >= 4.3
Requires: fortune
Summary: Xfce Session manager
Version: 4.4.0
Release: 1
License: GNU General Public License (GPL)
URL: http://www.xfce.org/
Source0: %{name}-%{version}.tar.bz2
Source1: xfce4-session-ubuntu-icons.tar.bz2
Patch0: suspend_hibernate.diff
Group: System/GUI/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: xfce4-desktop >= 4.3
%description
xfce4-session is the session manager for the Xfce desktop environment.
Authors:
--------
Benedikt Meurer <benny@xfce.org>
Oliver M. Bolzer <oliver@debian.org>
Francois Le Clainche <fleclainche@wanadoo.fr>
Maarten Boekhold <boekhold@emirates.net.ae>
Brian Tarricone <kelnos@xfce.org>
%package devel
Summary: Xfce Session manager
Group: System/GUI/Other
Requires: %{name} = %{version}
Requires: libxfcegui4-devel >= 4.3
Requires: libxml2-devel
%description devel
xfce4-session is the session manager for the Xfce desktop environment.
Authors:
--------
Benedikt Meurer <benny@xfce.org>
Oliver M. Bolzer <oliver@debian.org>
Francois Le Clainche <fleclainche@wanadoo.fr>
Maarten Boekhold <boekhold@emirates.net.ae>
Brian Tarricone <kelnos@xfce.org>
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=%{_prefix} \
--datadir=%{_datadir} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--libexecdir=%{_libdir}/xfce4 \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--enable-session-screenshots
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}
# the icons for the hibernate and standby buttons
cd $RPM_BUILD_ROOT/%{_datadir}
tar xvfj $RPM_SOURCE_DIR/xfce4-session-ubuntu-icons.tar.bz2
cd -
rm -f $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/xfsm-shutdown.svg
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog ChangeLog.pre-xfce-devel NEWS README TODO
%{_sysconfdir}/xdg/xfce4-session/
%{_bindir}/*
%{_libdir}/xfce4/
%{_libdir}/libxfsm-*
%{_datadir}/locale/*/*/*
%{_mandir}/*/*
%{_datadir}/themes/*
%{_datadir}/applications/*
%{_datadir}/icons/*/*
%{_datadir}/xfce4/*
%dir /etc/xdg/autostart
/etc/xdg/autostart/xfce4-tips-autostart.desktop
%post
%run_suseconfig -m gtk2
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*
%dir %{_includedir}/xfce4/xfce4-session-4.2
%{_includedir}/xfce4/*/*
%{_datadir}/icons/*/*/*
%changelog -n xfce4-session
* Sun Jan 21 2007 - bwalle@suse.de
- upgraded to 4.4.0
* Wed Feb 08 2006 - pnemec@suse.cz
- added xfce4-desktop and xfwm to requires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 - cthiel@suse.de
- really update to 4.2.3
* Mon Jan 16 2006 - pnemec@suse.cz
- update to 4.2.3
* Wed Sep 14 2005 - cthiel@suse.de
- specfile cleanup
* Mon Aug 01 2005 - cthiel@suse.de
- fixed Requires
* Wed May 18 2005 - cthiel@suse.de
- update to 4.2.2
* Tue Apr 12 2005 - cthiel@suse.de
- initial version