rpms/python-nss/devel python-nss.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

John Dennis (jdennis) fedora-extras-commits at redhat.com
Wed Jul 9 17:14:15 UTC 2008


Author: jdennis

Update of /cvs/pkgs/rpms/python-nss/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10948

Modified Files:
	.cvsignore sources 
Added Files:
	python-nss.spec 
Log Message:
initial build, add spec file



--- NEW FILE python-nss.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-nss
Version:        0.0
Release:        1%{?dist}
Summary:        Python bindings for Network Security Services (NSS)

Group:          Development/Languages
License:        GPLv2+
#URL:            
Source0:        %{name}-%{version}.tar.bz2 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%define docdir %{_docdir}/%{name}-%{version}

BuildRequires: python-devel
BuildRequires: python-setuptools-devel
BuildRequires: epydoc
BuildRequires: nspr-devel
BuildRequires: nss-devel


%description
This package provides Python bindings for Network Security Services
(NSS) and the Netscape Portable Runtime (NSPR).

NSS is a set of libraries supporting security-enabled client and
server applications. Applications built with NSS can support SSL v2
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
certificates, and other security standards. Specific NSS
implementations have been FIPS-140 certified.


%prep
%setup -q


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%{__python} setup.py build_doc


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install  -O1 --install-platlib %{python_sitearch} --skip-build --root $RPM_BUILD_ROOT 
%{__python} setup.py install_doc --docdir %{docdir} --skip-build --root $RPM_BUILD_ROOT

# Remove execution permission from any example scripts
find $RPM_BUILD_ROOT/%{docdir}/examples -type f | xargs chmod a-x

# Set correct permissions on .so files
chmod 0755 $RPM_BUILD_ROOT/%{python_sitearch}/nss/*.so
 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc %{docdir}
%{python_sitearch}/*


%changelog
* Fri Jun 27 2008 John Dennis <jdennis at redhat.com> - 0.0-1
- initial release




Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-nss/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	9 Jul 2008 16:57:10 -0000	1.1
+++ .cvsignore	9 Jul 2008 17:13:26 -0000	1.2
@@ -0,0 +1 @@
+python-nss-0.0.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-nss/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	9 Jul 2008 16:57:10 -0000	1.1
+++ sources	9 Jul 2008 17:13:26 -0000	1.2
@@ -0,0 +1 @@
+031a5262d4526413305de87a7437b18f  python-nss-0.0.tar.bz2




More information about the fedora-extras-commits mailing list