SPECS: python-pyasn1.spec (NEW) - new spec, required by current py...
jajcus
jajcus at pld-linux.org
Fri Feb 3 15:13:08 CET 2006
Author: jajcus Date: Fri Feb 3 14:13:08 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new spec, required by current python-pysnmp
---- Files affected:
SPECS:
python-pyasn1.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-pyasn1.spec
diff -u /dev/null SPECS/python-pyasn1.spec:1.1
--- /dev/null Fri Feb 3 15:13:08 2006
+++ SPECS/python-pyasn1.spec Fri Feb 3 15:13:02 2006
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+
+%define module pyasn1
+
+Summary: ASN.1 tools for Python
+Summary(pl): Narzędzia ASN.1 dla Pythona
+Name: python-%{module}
+Version: 0.0.4a
+Release: 1
+License: BSD-like
+Group: Libraries/Python
+Source0: http://dl.sourceforge.net/pyasn1/%{module}-%{version}.tar.gz
+# Source0-md5: 85a1c06c34b301efbf08bb8c52e43f15
+URL: http://pyasn1.sourceforge.net/
+BuildRequires: python >= 2.2.1
+%pyrequires_eq python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project is dedicated to implementation of ASN.1 types (concrete syntax)
+and codecs (transfer syntaxes) for Python programming environment.
+
+%package examples
+Summary: Example programs for Python pyasn1 module
+Summary(pl): Programy przykładowe do modułu Pythona pyasn1
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description examples
+This package contains example programs for Python pyasn1 module.
+
+%description examples -l pl
+Ten pakiet zawiera przykładowe programy do modułu Pythona pyasn1.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README CHANGES TODO doc/*
+%{py_sitescriptdir}/%{module}/*
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%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 2006/02/03 14:13:02 jajcus
+- new spec, required by current python-pysnmp
+
================================================================
More information about the pld-cvs-commit
mailing list