|
@@ -6,7 +6,7 @@
|
|
Summary: Network Security Services
|
|
Summary: Network Security Services
|
|
Name: nss
|
|
Name: nss
|
|
Version: 3.13.6
|
|
Version: 3.13.6
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 2%{?_dist_release}
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
URL: http://www.mozilla.org/projects/security/pki/nss/
|
|
URL: http://www.mozilla.org/projects/security/pki/nss/
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -18,6 +18,8 @@ Source3: blank-cert8.db
|
|
Source4: blank-key3.db
|
|
Source4: blank-key3.db
|
|
Source5: blank-secmod.db
|
|
Source5: blank-secmod.db
|
|
Source12: %{name}-pem-20091210.tar.bz2
|
|
Source12: %{name}-pem-20091210.tar.bz2
|
|
|
|
+Source101: nss-util.pc.in
|
|
|
|
+Source102: nss-util-config.in
|
|
|
|
|
|
Patch1: nss-no-rpath.patch
|
|
Patch1: nss-no-rpath.patch
|
|
Patch6: nss-enable-pem.patch
|
|
Patch6: nss-enable-pem.patch
|
|
@@ -151,7 +153,8 @@ export NSS_USE_SYSTEM_SQLITE
|
|
-e "s,%%exec_prefix%%,%{_prefix},g" \
|
|
-e "s,%%exec_prefix%%,%{_prefix},g" \
|
|
-e "s,%%includedir%%,%{_includedir}/nss3,g" \
|
|
-e "s,%%includedir%%,%{_includedir}/nss3,g" \
|
|
-e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
|
|
-e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
|
|
- -e "s,%%NSS_VERSION%%,%{version},g" > \
|
|
+ -e "s,%%NSS_VERSION%%,%{version},g" \
|
|
|
|
+ -e "s,%%NSSUTIL_VERSION%%,%{version},g" > \
|
|
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss.pc
|
|
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss.pc
|
|
|
|
|
|
NSS_VMAJOR=`cat mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
|
|
NSS_VMAJOR=`cat mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
|
|
@@ -174,6 +177,32 @@ export NSS_VPATCH
|
|
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{_bindir}/nss-config
|
|
chmod 755 $RPM_BUILD_ROOT/%{_bindir}/nss-config
|
|
|
|
|
|
|
|
+%{__cat} %{SOURCE101} | sed -e "s,%%libdir%%,%{_libdir},g" \
|
|
|
|
+ -e "s,%%prefix%%,%{_prefix},g" \
|
|
|
|
+ -e "s,%%exec_prefix%%,%{_prefix},g" \
|
|
|
|
+ -e "s,%%includedir%%,%{_includedir}/nss3,g" \
|
|
|
|
+ -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
|
|
|
|
+ -e "s,%%NSSUTIL_VERSION%%,%{version},g" > \
|
|
|
|
+ $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss-util.pc
|
|
|
|
+
|
|
|
|
+NSSUTIL_VMAJOR=`cat mozilla/security/nss/lib/util/nssutil.h | grep "#define.*NSSUTIL_VMAJOR" | awk '{print $3}'`
|
|
|
|
+NSSUTIL_VMINOR=`cat mozilla/security/nss/lib/util/nssutil.h | grep "#define.*NSSUTIL_VMINOR" | awk '{print $3}'`
|
|
|
|
+NSSUTIL_VPATCH=`cat mozilla/security/nss/lib/util/nssutil.h | grep "#define.*NSSUTIL_VPATCH" | awk '{print $3}'`
|
|
|
|
+
|
|
|
|
+export NSSUTIL_VMAJOR
|
|
|
|
+export NSSUTIL_VMINOR
|
|
|
|
+export NSSUTIL_VPATCH
|
|
|
|
+
|
|
|
|
+%{__cat} %{SOURCE102} | sed -e "s,@libdir@,%{_libdir},g" \
|
|
|
|
+ -e "s,@prefix@,%{_prefix},g" \
|
|
|
|
+ -e "s,@exec_prefix@,%{_prefix},g" \
|
|
|
|
+ -e "s,@includedir@,%{_includedir}/nss3,g" \
|
|
|
|
+ -e "s,@MOD_MAJOR_VERSION@,$NSSUTIL_VMAJOR,g" \
|
|
|
|
+ -e "s,@MOD_MINOR_VERSION@,$NSSUTIL_VMINOR,g" \
|
|
|
|
+ -e "s,@MOD_PATCH_VERSION@,$NSSUTIL_VPATCH,g" \
|
|
|
|
+ > $RPM_BUILD_ROOT/%{_bindir}/nss-util-config
|
|
|
|
+
|
|
|
|
+chmod 755 $RPM_BUILD_ROOT/%{_bindir}/nss-util-config
|
|
|
|
|
|
%install
|
|
%install
|
|
|
|
|
|
@@ -286,7 +315,9 @@ done
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libcrmf.a
|
|
%{_libdir}/libcrmf.a
|
|
%{_libdir}/pkgconfig/nss.pc
|
|
%{_libdir}/pkgconfig/nss.pc
|
|
|
|
+%{_libdir}/pkgconfig/nss-util.pc
|
|
%{_bindir}/nss-config
|
|
%{_bindir}/nss-config
|
|
|
|
+%{_bindir}/nss-util-config
|
|
|
|
|
|
%dir %{_includedir}/nss3
|
|
%dir %{_includedir}/nss3
|
|
%{_includedir}/nss3/base64.h
|
|
%{_includedir}/nss3/base64.h
|
|
@@ -401,6 +432,10 @@ done
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Sep 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.13.6-2
|
|
|
|
+- add Source101 (nss-util.pc.in)
|
|
|
|
+- add Source102 (nss-util-config.in)
|
|
|
|
+
|
|
* Mon Sep 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.13.6-1
|
|
* Mon Sep 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.13.6-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|