From 3ac01e190e5631bba65d8511671640858f6c5d48 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 14 Sep 2010 10:33:05 +0200 Subject: first steps to rpm pkg builder --- packaging/rpm/openslx.spec | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'packaging') diff --git a/packaging/rpm/openslx.spec b/packaging/rpm/openslx.spec index 893bb877..f2aee04d 100644 --- a/packaging/rpm/openslx.spec +++ b/packaging/rpm/openslx.spec @@ -1,17 +1,17 @@ # -# spec file for OpenSLX (Version 4.0.0) +# spec file for OpenSLX (Version ###version###) # Name: openslx -Version: 4.0.0 -Release: 0 +Version: ###version### +Release: ###release### License: GNU General Public License (GPL) Group: Productivity/Networking/System Url: http://openslx.org/ Autoreqprov: on Requires: perl-DBD-SQLite perl-DBD-mysql -#PreReq: -Source: %{name}-%{version}.tar.bz2 +PreReq: perl +Source: %{name}-v%{version}-%{release}.tar.gz Summary: Open StateLess Extensions BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl-DBD-SQLite perl-DBD-mysql @@ -29,27 +29,21 @@ see any difference Authors: -------- - Dirk von Suchodoletz, , 2002 - 2007 - Michael Janczyk, 2003 - 2007 - Nico Dietrich, 2005 - 2006 - Felix Endres, 2005 - 2007 - Tobias Maier, 2005 - 2006 - Bastian Wissler, 2006 - 2007 - Lars Mueller, , 2006 - 2007 - Oliver Tappe, , 2006 - 2007 +###authors### + %prep + %setup %build %install [ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT} -make install \ - DESTDIR="${RPM_BUILD_ROOT}" +./tools/installer plain-install SLX_BUILD_PATH="${RPM_BUILD_ROOT}" %clean [ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT} -%files -f packaging/rpm/openslx-filelist +%files -f %{_topdir}/FILES %defattr(-,root,root) -- cgit v1.2.3-55-g7522