Author: jajcus                       Date: Fri Mar  6 10:02:02 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new spec

---- Files affected:
SPECS:
   python-gnutls.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-gnutls.spec
diff -u /dev/null SPECS/python-gnutls.spec:1.1
--- /dev/null   Fri Mar  6 11:02:02 2009
+++ SPECS/python-gnutls.spec    Fri Mar  6 11:01:57 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+%define        module  gnutls
+Summary:       Python wrapper for the GNUTLS library
+Name:          python-%{module}
+Version:       1.1.8
+Release:       1
+License:       LGPL
+Group:         Development/Languages/Python
+Source0:       
http://pypi.python.org/packages/source/p/python-gnutls/%{name}-%{version}.tar.gz
+# Source0-md5: a9032d65b338573291ef3a9be664c887
+URL:           http://pypi.python.org/pypi/python-gnutls/
+BuildRequires: gnutls-devel
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-modules
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides a high level object oriented wrapper around libgnutls, as
+well as low level bindings to the GNUTLS types and functions via ctypes. The
+high level wrapper hides the details of accessing the GNUTLS library via ctypes
+behind a set of classes that encapsulate GNUTLS sessions, certificates and
+credentials and expose them to python applications using a simple API.
+
+%prep
+%setup -q
+
+%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_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/%{module}/*.py[co]
+%dir %{py_sitedir}/%{module}/interfaces
+%{py_sitedir}/%{module}/interfaces/*.py[co]
+%dir %{py_sitedir}/%{module}/interfaces/twisted
+%{py_sitedir}/%{module}/interfaces/twisted/*.py[co]
+%dir %{py_sitedir}/%{module}/library
+%{py_sitedir}/%{module}/library/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/library/*.so
+%{py_sitedir}/*-*.egg-info
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/03/06 10:01:57  jajcus
+- new spec
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to