]> err.no Git - sope/commitdiff
move more stuff into .rpmmacros ...
authorfrank <frank@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 28 Sep 2004 20:13:09 +0000 (20:13 +0000)
committerfrank <frank@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 28 Sep 2004 20:13:09 +0000 (20:13 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@196 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

maintenance/mod_ngobjweb.spec
maintenance/sope.spec

index df7c59facf5331b496d8c84109d87b0ea7588b16..096d1c8ad9dcb09a078b7876f149276412011aed 100755 (executable)
@@ -8,7 +8,7 @@ License:                LGPL
 URL:                   http://www.softwarestudio.org/libical
 Group:                 Development/Libraries
 AutoReqProv:   off
-Source:                        sope-mod_ngobjweb-trunk-latest.tar.gz
+Source:                        %{mod_ngobjweb_source}
 Prefix:                        /usr/lib
 BuildRoot:             %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -21,11 +21,12 @@ rm -fr ${RPM_BUILD_ROOT}
 
 # ****************************** build ********************************
 %build
-# on fedora core
+#on redhat/fedora core
 export PATH=$PATH:/usr/sbin
-make APXS_INCLUDE_DIRS="-I/usr/include/httpd -I/usr/include/apr-0"
-# for suse
-#make APXS="/usr/sbin/apxs2" APXS_INCLUDE_DIRS="-I/usr/include/apache2"
+#fedora core
+make %{mod_ngobjweb_makeflags} APXS_INCLUDE_DIRS="-I/usr/include/httpd -I/usr/include/apr-0"
+#suse91
+#make %{mod_ngobjweb_makeflags} APXS="/usr/sbin/apxs2" APXS_INCLUDE_DIRS="-I/usr/include/apache2"
 
 # ****************************** install ******************************
 %install
index cb819a2e098ddf489f245c1e5e1bc075a98d8f09..d3313b3d2c0a00b0f7cae087a134d804c4aaa6b8 100755 (executable)
@@ -8,7 +8,7 @@ License:                GPL
 URL:                   http://www.opengroupware.org
 Group:                 Development/Libraries
 AutoReqProv:   off
-Source:                        sope-trunk-latest.tar.gz
+Source:                        %{sope_source}
 Prefix:                        /usr/local
 BuildRoot:             %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildPreReq:   ogo-gnustep_make
@@ -187,16 +187,16 @@ rm -fr ${RPM_BUILD_ROOT}
 # ****************************** build ********************************
 %build
 source %{prefix}/OGo-GNUstep/Library/Makefiles/GNUstep.sh
-make debug=yes
+make %{sope_makeflags}
 
 # ****************************** install ******************************
 %install
 source %{prefix}/OGo-GNUstep/Library/Makefiles/GNUstep.sh
 mkdir -p ${RPM_BUILD_ROOT}%{prefix}/lib/lib
-make debug=yes INSTALL_ROOT_DIR=${RPM_BUILD_ROOT} \
-               GNUSTEP_INSTALLATION_DIR=${RPM_BUILD_ROOT}%{prefix} \
-               FHS_INSTALL_ROOT=${RPM_BUILD_ROOT}%{prefix} \
-               install
+make %{sope_makeflags} INSTALL_ROOT_DIR=${RPM_BUILD_ROOT} \
+                       GNUSTEP_INSTALLATION_DIR=${RPM_BUILD_ROOT}%{prefix} \
+                       FHS_INSTALL_ROOT=${RPM_BUILD_ROOT}%{prefix} \
+                       install
 
 rm -f ${RPM_BUILD_ROOT}%{prefix}/bin/rss2plist1
 rm -f ${RPM_BUILD_ROOT}%{prefix}/bin/rss2plist2