SPECS: vhcs2.spec - made build process ready - "only" install and ...

blues blues at pld-linux.org
Wed Feb 1 16:14:26 CET 2006


Author: blues                        Date: Wed Feb  1 15:14:26 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- made build process ready - "only" install and files left...

---- Files affected:
SPECS:
   vhcs2.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/vhcs2.spec
diff -u SPECS/vhcs2.spec:1.2 SPECS/vhcs2.spec:1.3
--- SPECS/vhcs2.spec:1.2	Wed Feb  1 15:16:38 2006
+++ SPECS/vhcs2.spec	Wed Feb  1 16:14:21 2006
@@ -1,18 +1,22 @@
 # $Revision$, $Date$
 # TODO:
 # - make pl translation
-# - change Makefile to allow pass proper CC, CFLAGS, etc...
+# - move CC ans CFLAGS definition to main Makefile
+# - configs should be prepared for PLD
+# - some subpackages needs to be made...
 Summary:	vhcs2 - Virtual Hosting Control System
 Summary(pl):	vhcs2 - system kontroli virtualnych hostów
 Name:		vhcs2
 Version:	2.4.7.1
-Release:	0.2
+Release:	0.3
 License:	MPL 1.1
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/vhcs/%{name}-%{version}.tar.bz2
 # Source0-md5:	19d2ddefaa41dd5a6298d3d122af5883
 #Source1:	%{name}.conf
-#Patch0:	%{name}-config.patch
+Patch0:		%{name}-mkdirs_location.patch
+Patch1:		%{name}-build_flags.patch
+Patch2:		%{name}-nostrip_and_noroot.patch
 URL:		http://vhcs.net/
 #BuildRequires:	rpmbuild(macros) >= 1.268
 #Requires(triggerpostun):	sed >= 4.0
@@ -41,19 +45,31 @@
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-# use sed for setting buildroot
+# This is not install, but build...
+%{__make} install \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -ansi -Wall -Wstrict-prototypes -pedantic" \
+	INST_PREF=$RPM_BUILD_ROOT \
+	SYSTEM_MAKE_DIRS=$RPM_BUILD_ROOT%{_sbindir}/vhcs2-mkdirs.pl \
+	CMD_INSTALL="install" \
+	CMD_MAIL_INSTALL="install" \
+	CMD_DIR_INSTALL="install -d"
+
 
 # Docs:
 mv -f language-files/README.txt README_language-files.txt
 
 %install
-rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{css,lang,libraries/{auth,dbg,dbi,engines,export,import,transformations}}}
+# Don't remove - this package has strange build-install process...
+#rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	INST_PREF=$RPM_BUILD_ROOT
+
+#install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{css,lang,libraries/{auth,dbg,dbi,engines,export,import,transformations}}}
 
 #install *.php *.html *.css $RPM_BUILD_ROOT%{_appdir}
 #install lang/*.php $RPM_BUILD_ROOT%{_appdir}/lang
@@ -112,6 +128,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/02/01 15:14:21  blues
+- made build process ready - "only" install and files left...
+
 Revision 1.2  2006/02/01 14:16:38  blues
 - ...working on it...
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/vhcs2.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list