packages: python-nss/python-nss.spec (NEW) - new

qboosh qboosh at pld-linux.org
Sun Jan 9 18:41:50 CET 2011


Author: qboosh                       Date: Sun Jan  9 17:41:50 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-nss:
   python-nss.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-nss/python-nss.spec
diff -u /dev/null packages/python-nss/python-nss.spec:1.1
--- /dev/null	Sun Jan  9 18:41:50 2011
+++ packages/python-nss/python-nss.spec	Sun Jan  9 18:41:45 2011
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+Summary:	Python bindings for NSS and NSPR
+Summary(pl.UTF-8):	Wiązania Pythona do bibliotek NSS i NSPR
+Name:		python-nss
+Version:	0.10
+Release:	1
+License:	MPL v1.1 or GPL v2+ or LGPL v2+
+Group:		Development/Languages/Python
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_0_10_0/src/%{name}-%{version}.tar.bz2
+# Source0-md5:	2886180ac16dcc8f14eb1145442d7e6f
+URL:		http://www.mozilla.org/projects/security/pki/nss/
+BuildRequires:	nspr-devel >= 4
+BuildRequires:	nss-devel >= 3
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-libs
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for Network Security Services (NSS) and Netscape
+Portable Runtime (NSPR).
+
+%description -l pl.UTF-8
+Wiązania Pythona do bibliotek NSS (Network Security Services) oraz
+NSPR (Netscape Portable Runtime).
+
+%prep
+%setup -q
+
+sed -i -e 's,/usr/include/nss3,/usr/include/nss,;s,/usr/include/nspr4,/usr/include/nspr,' setup.py
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%dir %{py_sitedir}/nss
+%{py_sitedir}/nss/__init__.py[co]
+%attr(755,root,root) %{py_sitedir}/nss/error.so
+%attr(755,root,root) %{py_sitedir}/nss/io.so
+%attr(755,root,root) %{py_sitedir}/nss/nss.so
+%attr(755,root,root) %{py_sitedir}/nss/ssl.so
+%{py_sitedir}/python_nss-%{version}-py*.egg-info
+
+%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.1  2011/01/09 17:41:45  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list