diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fafef5d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +xfswitch-plugin-0.0.1.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index 88fe0d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xfce4-xfswitch-plugin -# $Id$ -NAME := xfce4-xfswitch-plugin -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..c58ad9d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cb204f4a507f462d019529af6f547731 xfswitch-plugin-0.0.1.tar.gz diff --git a/xfce4-xfswitch-plugin.spec b/xfce4-xfswitch-plugin.spec new file mode 100644 index 0000000..4aafd89 --- /dev/null +++ b/xfce4-xfswitch-plugin.spec @@ -0,0 +1,54 @@ +%global upname xfswitch-plugin + +Name: xfce4-xfswitch-plugin +Version: 0.0.1 +Release: 1%{?dist} +Summary: User switching plugin for the Xfce4 Panel + +Group: User Interface/Desktops +License: GPLv2+ +URL: http://goodies.xfce.org/projects/panel-plugins/%{upname} +Source0: http://archive.xfce.org/src/panel-plugins/%{upname}/0.0/%{upname}-0.0.1.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: xfce4-panel-devel >= 4.4 +BuildRequires: gettext intltool +Requires: xfce4-panel >= 4.4.0 +Requires: gdm +Provides: %{upname} = %{name}-%{version} + +%description +Xfswitch-plugin is a user switching plugin for the Xfce4 Panel. It allows you +to leave the current session opened and open a new session with another user. +At the moment it relies on GDM, but other display managers will be supported +in the future. + + +%prep +%setup -qn %{upname}-%{version} + + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +%find_lang %{upname} + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{upname}.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_libexecdir}/xfce4/panel-plugins/%{upname} +%{_datadir}/xfce4/panel-plugins/*.desktop + + +%changelog +* Thu Feb 26 2009 Christoph Wickert - 0.0.1-1 +- Initial RPM package