packages: unxsadmin/unxsadmin.spec - some PLDization - don't use makefile, ...

sparky sparky at pld-linux.org
Mon Jan 24 16:28:12 CET 2011


Author: sparky                       Date: Mon Jan 24 15:28:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- some PLDization
- don't use makefile, compile and install manually

---- Files affected:
packages/unxsadmin:
   unxsadmin.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/unxsadmin/unxsadmin.spec
diff -u packages/unxsadmin/unxsadmin.spec:1.3 packages/unxsadmin/unxsadmin.spec:1.4
--- packages/unxsadmin/unxsadmin.spec:1.3	Mon Jun 15 09:47:02 2009
+++ packages/unxsadmin/unxsadmin.spec	Mon Jan 24 16:28:07 2011
@@ -8,15 +8,16 @@
 Source0:	http://unixservice.com/source/%{name}-%{version}.tar.gz
 # Source0-md5:	fdffbedd992dbac31c8b6a3a6932ee4d
 Source1:	%{name}.conf
+Patch0:		%{name}-DESTDIR.patch
 URL:		http://openisp.net/unxsAdmin/
 BuildRequires:	rpmbuild(macros) >= 1.268
-Patch0:		%{name}-DESTDIR.patch
 Requires(triggerpostun):	sed >= 4.0
 Requires:	apache >= 2.2
-Requires:	apache-mod_ssl >= 2.2
 Requires:	apache-mod_dir >= 2.2
+Requires:	apache-mod_ssl >= 2.2
 Requires:	rrdtool
 Requires:	webapps
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_webapps	/etc/webapps
 %define		_webapp		%{name}
@@ -35,16 +36,14 @@
 %patch0 -p1
 
 %build
-%{__make}
+%{__cc} %{rpmcppflags} %{rpmcflags} %{rpmldflags} lastmonth.c -o lastmonth
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
-
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+install lastmonth $RPM_BUILD_ROOT%{_bindir}
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
 install -d $RPM_BUILD_ROOT%{_datadir}/unxs/{cgi-bin,logs,html/{images,js,css}}
@@ -94,6 +93,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2011/01/24 15:28:07  sparky
+- some PLDization
+- don't use makefile, compile and install manually
+
 Revision 1.3  2009/06/15 07:47:02  paszczus
 - switched to webapps
 
@@ -104,4 +107,3 @@
 
 Revision 1.1  2009/06/12 12:51:20  paszczus
 - initial
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/unxsadmin/unxsadmin.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list