SPECS: svrcore.spec - updated to 4.0.3.01, shared lib is built now...

qboosh qboosh at pld-linux.org
Tue Dec 19 12:30:41 CET 2006


Author: qboosh                       Date: Tue Dec 19 11:30:41 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 4.0.3.01, shared lib is built now
- main package renamed to just svrcore, added -devel,-static subpackages

---- Files affected:
SPECS:
   svrcore.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/svrcore.spec
diff -u SPECS/svrcore.spec:1.3 SPECS/svrcore.spec:1.4
--- SPECS/svrcore.spec:1.3	Thu Sep  7 11:11:53 2006
+++ SPECS/svrcore.spec	Tue Dec 19 12:30:36 2006
@@ -1,23 +1,23 @@
 # $Revision$, $Date$
-%define	nspr_version	4.6
+%define	nspr_version	4.6.4
 %define	nspr_evr	1:%{nspr_version}
-%define	nss_version	3.11
+%define	nss_version	3.11.4
 %define	nss_evr		1:%{nss_version}
-Summary:	svrcore - development files for secure PIN handling using NSS crypto
-Summary(pl):	svrcore - pliki programistyczne do bezpiecznej obsługi PIN-ów przy użyciu NSS
-Name:		svrcore-devel
-Version:	4.0.2
-Release:	2
+Summary:	svrcore library for secure PIN handling using NSS crypto
+Summary(pl):	Biblioteka svrcore do bezpiecznej obsługi PIN-ów przy użyciu NSS
+Name:		svrcore
+Version:	4.0.3.01
+Release:	1
 License:	MPL v1.1 or GPL v2+ or LGPL v2.1+
 Group:		Development/Libraries
-Source0:	ftp://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	62cb9c16133a979828f4494bd67223c1
+Source0:	ftp://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/4.0.3/%{name}-%{version}.tar.gz
+# Source0-md5:	fbb56acf580aa0ebb32df58594458b28
 URL:		http://www.mozilla.org/directory/
 BuildRequires:	nspr-devel >= %{nspr_evr}
 BuildRequires:	nss-devel >= %{nss_evr}
 BuildRequires:	perl-base
-Requires:	nspr-devel >= %{nspr_evr}
-Requires:	nss-devel >= %{nss_evr}
+Requires:	nspr >= %{nspr_evr}
+Requires:	nss >= %{nss_evr}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -33,54 +33,77 @@
 kryptograficznych bez interwencji użytkownika. svrcore wykorzystuje
 funkcje udostępniane przez bibliotekę NSS.
 
+%package devel
+Summary:	Header files for svrcore library
+Summary(pl):	Pliki nagłówkowe biblioteki svrcore
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	nspr-devel >= %{nspr_evr}
+Requires:	nss-devel >= %{nss_evr}
+
+%description devel
+Header files for svrcore library.
+
+%description devel -l pl
+Pliki nagłówkowe biblioteki svrcore.
+
+%package static
+Summary:	Static svrcore library
+Summary(pl):	Statyczna biblioteka svrcore
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static svrcore library.
+
+%description static -l pl
+Statyczna biblioteka svrcore.
+
 %prep
 %setup -q
 
 %build
-%{__make} -C mozilla/security/coreconf \
-%ifarch %{x8664}
-	USE_64=1 \
-%endif
-	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags}"
-%{__make} -C mozilla/security/svrcore \
-%ifarch %{x8664}
-	USE_64=1 \
-%endif
-	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -I. -I/usr/include/nspr -I/usr/include/nss"
+%configure
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/svrcore,%{_pkgconfigdir}}
-install mozilla/dist/public/svrcore/*.h $RPM_BUILD_ROOT%{_includedir}/svrcore
-install mozilla/dist/*.OBJ/lib/libsvrcore.a $RPM_BUILD_ROOT%{_libdir}
-sed mozilla/security/svrcore/svrcore.pc.in -e "
-	s,%%libdir%%,%{_libdir},g
-	s,%%prefix%%,%{_prefix},g
-	s,%%exec_prefix%%,%{_prefix},g
-	s,%%includedir%%,%{_includedir}/svrcore,g
-	s,%%NSPR_VERSION%%,%{nspr_version},g
-	s,%%NSS_VERSION%%,%{nss_version},g
-	s,%%SVRCORE_VERSION%%,%{svrcore_version},g
-" > $RPM_BUILD_ROOT%{_pkgconfigdir}/svrcore.pc
 
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc mozilla/security/svrcore/{LICENSE,README}
-%{_libdir}/libsvrcore.a
-%{_includedir}/svrcore
+%doc LICENSE NEWS README
+%attr(755,root,root) %{_libdir}/libsvrcore.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsvrcore.so.*.*.*
+%{_libdir}/libsvrcore.la
+%{_includedir}/svrcore.h
 %{_pkgconfigdir}/svrcore.pc
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsvrcore.a
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2006/12/19 11:30:36  qboosh
+- updated to 4.0.3.01, shared lib is built now
+- main package renamed to just svrcore, added -devel,-static subpackages
+
 Revision 1.3  2006/09/07 09:11:53  glen
 - fix amd64 build; rel 2
 
@@ -89,4 +112,3 @@
 
 Revision 1.1  2006/06/27 08:40:10  qboosh
 - new, separated from mozldap.spec
-
================================================================

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



More information about the pld-cvs-commit mailing list