packages: drbl/drbl.spec (NEW) - spec based on src.rpm

glen glen at pld-linux.org
Mon Jul 18 10:43:44 CEST 2011


Author: glen                         Date: Mon Jul 18 08:43:44 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- spec based on src.rpm

---- Files affected:
packages/drbl:
   drbl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/drbl/drbl.spec
diff -u /dev/null packages/drbl/drbl.spec:1.1
--- /dev/null	Mon Jul 18 10:43:44 2011
+++ packages/drbl/drbl.spec	Mon Jul 18 10:43:39 2011
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+# TODO
+# - use pld memtest, syslinux, etc binaries in pkg/
+# - code itself seems to be noarch
+# - re-add pld support (why it was removed, huh?)
+# - more FHS thing (config to /etc)
+Summary:	DRBL (Diskless Remote Boot in Linux) package
+Name:		drbl
+Version:	1.9.9
+Release:	21.1
+License:	GPL
+Group:		Networking/Utilities
+Source0:	http://downloads.sourceforge.net/drbl/%{name}-%{version}-21.tar.bz2
+# Source0-md5:	97b6393f87581a4e64a34690fdf8f40f
+URL:		http://www.drbl.org/
+BuildRequires:	bash
+BuildRequires:	sed >= 4.0
+Requires:	findutils
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+DRBL provides a diskless or systemless environment for client
+machines. It works on Debian, Ubuntu, Mandriva, Red Hat, Fedora,
+CentOS and OpenSuSE. DRBL uses distributed hardware resources and
+makes it possible for clients to fully access local hardware. It also
+includes Clonezilla, a partition and disk cloning utility similar to
+Symantec Ghost(TM) or True Image(TM).
+
+%prep
+%setup -q -n %{name}-%{version}-21
+
+grep -rl /opt/drbl/ . | xargs sed -i -e 's,/opt/drbl,%{_libdir}/%{name},g'
+
+%build
+%{__make} all
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	maindir=%{_libdir}/%{name} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%defattr(-,root,root,-)
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/setup
+%{_libdir}/%{name}/conf
+%{_libdir}/%{name}/lang
+%{_libdir}/%{name}/pkg
+%{_libdir}/%{name}/pki
+%{_libdir}/%{name}/image
+%{_libdir}/%{name}/doc
+%{_libdir}/%{name}/sbin
+%{_libdir}/%{name}/bin
+%{_datadir}/gdm/themes/drbl-gdm
+
+%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  2011/07/18 08:43:39  glen
+- spec based on src.rpm
================================================================


More information about the pld-cvs-commit mailing list