]> git.pld-linux.org Git - packages/python-pyasn1_modules.git/blob - python-pyasn1_modules.spec
72ad34bbf32c0bb26a1653dbb4a702d48a5a6478
[packages/python-pyasn1_modules.git] / python-pyasn1_modules.spec
1
2 %define         module  pyasn1-modules
3
4 Summary:        ASN.1 tools for Python
5 Summary(pl.UTF-8):      NarzÄ™dzia ASN.1 dla Pythona
6 Name:           python-pyasn1_modules
7 Version:        0.0.2
8 Release:        2
9 License:        BSD-like
10 Group:          Libraries/Python
11 Source0:        http://downloads.sourceforge.net/pyasn1/%{module}-%{version}.tar.gz
12 # Source0-md5:  adc49aee6603a162f9d4a6830c8dc470
13 URL:            http://pyasn1.sourceforge.net/
14 BuildRequires:  rpmbuild(macros) >= 1.710
15 BuildRequires:  python >= 1:2.5
16 BuildRequires:  rpm-pythonprov
17 %pyrequires_eq  python-modules
18 Requires:       python-pyasn1 >= 0.0.13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This is a small but growing collection of ASN.1 data structures
24 expressed in Python terms using pyasn1 data model.
25
26 It's thought to be useful to protocol developers and testers.
27
28 %prep
29 %setup -q -n %{module}-%{version}
30
31 %build
32 %py_build
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
37
38 %py_install
39
40 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
41 cp tools/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README CHANGES
49 %{py_sitescriptdir}/pyasn1_modules
50 %{py_sitescriptdir}/*.egg-info
51 %{_examplesdir}/*
This page took 0.129198 seconds and 2 git commands to generate.