SPECS: fedora-setuputil.spec - options for make, now builds, await...

zbyniu zbyniu at pld-linux.org
Mon May 1 00:53:28 CEST 2006


Author: zbyniu                       Date: Sun Apr 30 22:53:28 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- options for make, now builds, awaits for svrcore
- todo, better BRs

---- Files affected:
SPECS:
   fedora-setuputil.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/fedora-setuputil.spec
diff -u SPECS/fedora-setuputil.spec:1.5 SPECS/fedora-setuputil.spec:1.6
--- SPECS/fedora-setuputil.spec:1.5	Sun Apr 30 20:38:50 2006
+++ SPECS/fedora-setuputil.spec	Mon May  1 00:53:22 2006
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
-
+# TODO:
+# - external svrcore
+# - files, maybe subpackages; clean
+#
 Summary:	Fedora Setup SDK
 Summary(pl):	Fedora Setup SDK
 Name:		fedora-setuputil
@@ -10,48 +13,44 @@
 Source0:	http://directory.fedora.redhat.com/sources/%{name}-%{version}.tar.gz
 # Source0-md5:	6bc26ba2edee75c3c8d5bf9a21bda7b8
 URL:		http://directory.fedora.redhat.com/wiki/SetupUtil
-BuildRequires:	nss-devel
-BuildRequires:	perl-Mozilla-LDAP
-BuildRequires:	mozldap-devel
-BuildRequires:	nspr-devel >= 4.4.1
-BuildRequires:	rpmbuild(macros) >= 1.228
-Requires:	perl
+BuildRequires:	libtermcap-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	mozldap-static
+BuildRequires:	ncurses-devel
+#BuildRequires:	svrcore-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Fedora Setup SDK is a library to configure your server using the
 Configuration Directory Server.
 
-%description -l pl
---
-
 %prep
 %setup -q
 
 %build
 %{__make} \
 	MAKE=make \
-	BUILD_RPM=0 \
-	BUILD_DEBUG=full \
-	
-
-#BUILD_DEBUG=optimize  - Build optimized version
-#BUILD_DEBUG=full      - Build debug version (default: without BUILD_DEBUG macro, debug version is built)
-#USE_64=1              - Build 64-bit version (currently, for Solaris and HP only)
-#BUILD_RPM=1           - Build RPM package (currently, for RHEL only)
-
+	LDAPSDK_INCDIR=/usr/include/mozldap \
+	LDAPSDK_LIBPATH=%{_libdir} \
+	SVRCORE_INCDIR=$PWD/../mozilla/security/svrcore \
+	CFLAGS="%{rpmcflags} -I/usr/include/ncurses -Wno-deprecated \
+		-DLINUX -Dlinux -DBSD -D_POSIX_SOURCE -D_XOPEN_SOURCE \
+		-D_BSD_SOURCE -DHAVE_USE_PTHREADS=1 -DXP_UNIX \
+		-DBUILD_NUM=1"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/%{_prefix}
-cp -r $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/include $RPM_BUILD_ROOT/bin $RPM_BUILD_ROOT/%{_prefix}
+install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
+install built/package/*/include/* $RPM_BUILD_ROOT/%{_includedir}
+install built/package/*/lib/* $RPM_BUILD_ROOT%{_libdir}
 
 %clean
-rm -rf $RPM_BUILD_ROOT/opt
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_prefix}
+%{_includedir}/*
+%{_libdir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -59,6 +58,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2006/04/30 22:53:22  zbyniu
+- options for make, now builds, awaits for svrcore
+- todo, better BRs
+
 Revision 1.5  2006/04/30 18:38:50  wolvverine
 - Build section and BR
 
@@ -73,5 +76,3 @@
 
 Revision 1.1  2006/04/30 17:29:16  wolvverine
 - init
-
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/fedora-setuputil.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list