From d58330ddc5d6985ae0aa2351b3922454a38fe7a7 Mon Sep 17 00:00:00 2001 From: fcrozat Date: Tue, 20 Feb 2007 16:15:42 +0000 Subject: -Release 0.8 - fix Makefile to be svn compliant - remove --debug from xinit.d file - rename xinit.d file to be sure it is started after dbus git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@182695 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- Makefile | 40 +++++++++++++------------- s2u.sh | 2 +- s2u.spec | 99 ---------------------------------------------------------------- 3 files changed, 20 insertions(+), 121 deletions(-) delete mode 100644 s2u.spec diff --git a/Makefile b/Makefile index 07eee05..3c90a0d 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,9 @@ ############################################################################# PACKAGE=s2u -VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec | head -1) -RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec | head -1| sed -e 's/%mkrel \(.*\)/\1mdv/g') TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') -FILES = Makefile README hostname-post s2u.c s2u.sh s2u.spec \ +FILES = Makefile README hostname-post s2u.c s2u.sh \ AUTHORS LICENSE README ChangeLog s2u.conf DEFS = -DDBUS_API_SUBJECT_TO_CHANGE=1 @@ -36,7 +34,7 @@ clean: install: install -d $(DESTDIR)/etc/X11/xinit.d - install s2u.sh $(DESTDIR)/etc/X11/xinit.d + install s2u.sh $(DESTDIR)/etc/X11/xinit.d/99s2u install -d $(DESTDIR)/usr/bin install s2u $(DESTDIR)/usr/bin install -d $(DESTDIR)/etc/sysconfig/network-scripts/hostname.d @@ -45,43 +43,43 @@ install: install -m 644 s2u.conf $(DESTDIR)/etc/dbus-1/system.d # rules to build a test rpm +checktag: + @if [ "x$(VERSION)" == "x" -o "x$(RELEASE)" = "x" ]; then \ + echo usage is "make VERSION=version_number RELEASE=release_number dist" ; \ + exit 1 ; \ + fi -localrpm: localdist buildrpm localdist: cleandist dir localcopy tar -cleandist: +cleandist: checktag rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 -dir: +dir: checktag mkdir $(PACKAGE)-$(VERSION) -localcopy: +localcopy: checktag tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION) -tar: +tar: checktag tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION) bzip2 -9vf $(PACKAGE)-$(VERSION).tar rm -rf $(PACKAGE)-$(VERSION) -buildrpm: - rpm -ta $(PACKAGE)-$(VERSION).tar.bz2 - # rules to build a distributable rpm -rpm: changelog cvstag dist buildrpm - -dist: cleandist dir export tar +dist: checktag cleandist svntag export tar -export: - cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE) +export: checktag + svn export $(SVNROOT)/tags/$(TAG) $(PACKAGE)-$(VERSION) -cvstag: - cvs tag $(CVSTAGOPT) $(TAG) +svntag: checktag + svn copy $(SVNROOT)/trunk $(SVNROOT)/tags/$(TAG) -m "$(TAG)" changelog: ../common/username - cvs2cl -U ../common/username -I ChangeLog +#svn2cl is available in our contrib. + svn2cl --authors ../common/username.xml --accum rm -f ChangeLog.bak - cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog + svn commit -m "Generated by svn2cl the `date '+%c'`" ChangeLog # Makefile ends here diff --git a/s2u.sh b/s2u.sh index b33f673..e6c520c 100755 --- a/s2u.sh +++ b/s2u.sh @@ -10,6 +10,6 @@ # system bus #--------------------------------------------------------------- -exec s2u --daemon=yes --debug +exec s2u --daemon=yes # s2u.sh ends here diff --git a/s2u.spec b/s2u.spec deleted file mode 100644 index eb14966..0000000 --- a/s2u.spec +++ /dev/null @@ -1,99 +0,0 @@ -Summary: System to user tools -Name: s2u -Version: 0.7 -Release: %mkrel 3 -URL: http://www.mandrivalinux.com/ -Source0: %{name}-%{version}.tar.bz2 -License: GPL -Group: Graphical desktop/Other -BuildRoot: %{_tmppath}/%{name}-buildroot -BuildRequires: dbus-glib-devel -BuildRequires: gtk+2-devel -Requires: dbus -Requires: initscripts >= 7.06-52mdk - -%description -Use dbus to communicate between from the system to the users. - -%prep -%setup -q - -%build -%make CFLAGS="$RPM_OPT_FLAGS" - -%install -rm -rf $RPM_BUILD_ROOT -%makeinstall_std - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc ChangeLog README AUTHORS LICENSE -%_bindir/s2u -%_sysconfdir/X11/xinit.d/s2u.sh -%_sysconfdir/sysconfig/network-scripts/hostname.d/s2u -%config(noreplace) %_sysconfdir/dbus-1/system.d/*.conf - -# MAKE THE CHANGES IN SVN: NO PATCH OR SOURCE ALLOWED - -%changelog -* Fri Aug 04 2006 Frederic Crozat 0.7-3mdv2007.0 -- Fix buildrequires - -* Tue Aug 01 2006 Frederic Crozat 0.7-2mdv2007.0 -- Rebuild with latest dbus - -* Mon May 29 2006 Frederic Crozat 0.7-1mdv2007.0 -- Fix for modular xorg -- Fix crash when parsing cookie fails - -* Fri Jan 27 2006 Frederic Lepied 0.6-1mdk -- switch to Mandriva -- log actions by default -- mkrel - -* Wed Jan 25 2006 Frederic Crozat 0.5-5mdk -- Rebuild for latest dbus - -* Fri Oct 28 2005 Frederic Crozat 0.5-4mdk -- Rebuild with new dbus - -* Wed Mar 09 2005 Frederic Crozat 0.5-3mdk -- add new signal to start update-menus if requested by system -- remove dbus-x11 requires - -* Tue Mar 08 2005 Frederic Crozat 0.5-2mdk -- connect to X server, so s2u exits when X exits - -* Mon Mar 07 2005 Frederic Crozat 0.5-1mdk -- Release 0.5 : - no longer use session bus, use system bus instead (fix Mdk bug #13166) - -* Mon Oct 18 2004 Gwenole Beauchesne 0.4-1mdk -- lib64 fixes - -* Wed Aug 25 2004 Frederic Lepied 0.3-1mdk -- don't put noreplace on these scripts -- changes in cvs -- use $DISPLAY in temp filename - -* Wed Aug 25 2004 Götz Waschk 0.2-2mdk -- mark config files -- fix file list -- drop prefix -- fix buildrequires - -* Wed Aug 18 2004 Frederic Lepied 0.2-1mdk -- add a require on dbus -- put temporary file in /tmp instead of /var/tmp and use a naming - which includes the user name - -* Tue Aug 03 2004 Christiaan Welvaart 0.1-2mdk -- fix buildrequires - -* Sat Jul 31 2004 Frederic Lepied 0.1-1mdk -- monitor hostname change - -# end of file -- cgit v1.2.1