SPECS: schroot.spec (NEW) - initial release

pascalek pascalek at pld-linux.org
Sat Jan 27 23:37:38 CET 2007


Author: pascalek                     Date: Sat Jan 27 22:37:38 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial release

---- Files affected:
SPECS:
   schroot.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/schroot.spec
diff -u /dev/null SPECS/schroot.spec:1.1
--- /dev/null	Sat Jan 27 23:37:38 2007
+++ SPECS/schroot.spec	Sat Jan 27 23:37:33 2007
@@ -0,0 +1,97 @@
+# $Revision$, $Date$
+#TODO: proper pam configuration file
+
+Summary:	Execute commands under different root filesystems
+Summary(pl):	Wykonywanie poleceń w innym głównym systemie
+Name:		schroot
+Version:	1.0.4
+Release:	0.1
+License:	GPL
+Group:		Applications/System
+Source0:	http://ftp.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz
+# Source0-md5:	7b108d025c4221599e5901d0c9b664bd
+# It's a litle silly patch to avoid boost linking error while configure is running
+# - tested with boost 1.33.1.
+Patch0:		%{name}-ac.patch
+URL:		http://packages.qa.debian.org/s/schroot.html
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	boost-program_options-devel
+BuildRequires:	boost-regex-devel
+BuildRequires:	cppunit-devel
+BuildRequires:	gettext-autopoint
+BuildRequires:	gettext-devel
+BuildRequires:	libuuid-devel
+BuildRequires:	lockdev-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Execute commands under different root filesystems.
+
+%description -l pl
+Wykonywanie poleceń w innym głównym systemie.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+sed -e "s/@RELEASE_DATE@/`date '+%d %b %Y'`/" -e "s/@RELEASE_UDATE@/`date '+%s'`/" scripts/schroot_release.m4.in > m4/schroot_release.m4
+%{__libtoolize}
+%{__autopoint}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+%configure
+
+%{__make} CC="%{__cc}"
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+cat > do_chroot << EOF
+#!/bin/sh
+
+exec schroot -p -q -- "\`basename \$0\`" "\$@"
+EOF
+	
+install do_chroot $RPM_BUILD_ROOT%{_bindir}
+
+%find_lang %{name} --all-name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README TODO debian/changelog
+%{_mandir}/man?/*
+%dir /etc/%{name}
+%dir /etc/%{name}/exec.d
+%dir /etc/%{name}/setup.d
+%dir %{_libdir}/%{name}
+%dir /var/lib/%{name}
+%dir /var/lib/%{name}/mount
+%dir /var/lib/%{name}/session
+%attr(4755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/do_chroot
+%attr(755,root,root) %{_libdir}/%{name}/*
+%attr(755,root,root) /etc/%{name}/exec.d/*
+%attr(755,root,root) /etc/%{name}/setup.d/*
+%attr(640,root,root) %verify(not md5 mtime size) %config(noreplace) /etc/pam.d/%{name}
+%attr(640,root,root) %verify(not md5 mtime size) %config(noreplace) /etc/%{name}/%{name}.conf
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/01/27 22:37:33  pascalek
+- initial release
+
================================================================


More information about the pld-cvs-commit mailing list