]>
Commit | Line | Data |
---|---|---|
ae9c788d ER |
1 | Summary: Python byte-code to source-code converter |
2 | Name: uncompyle2 | |
3 | Version: 1.1 | |
4 | Release: 1 | |
5 | License: GPL v3 | |
6 | Group: Applications | |
7 | Source0: https://github.com/wibiti/uncompyle2/archive/dffbdc4/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 1875d3d9b00ee0b08c845a16795e19ad | |
9 | URL: https://github.com/wibiti/uncompyle2 | |
10 | BuildRequires: rpm-pythonprov | |
11 | BuildRequires: rpmbuild(macros) >= 1.219 | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | 'uncompyle2' converts Python byte-code back into equivalent Python | |
17 | source. It accepts byte-code from Python version 2.7 only. | |
18 | Additionally, it will only run on Python 2.7. | |
19 | ||
20 | %prep | |
21 | %setup -qc | |
22 | mv %{name}-*/* . | |
23 | ||
24 | %build | |
25 | %{__python} setup.py build | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | %{__python} setup.py install \ | |
30 | --skip-build \ | |
31 | --optimize=2 \ | |
32 | --root=$RPM_BUILD_ROOT | |
33 | ||
34 | %py_postclean | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %attr(755,root,root) %{_bindir}/uncompyle2 | |
42 | %{py_sitescriptdir}/uncompyle2 | |
43 | %{py_sitescriptdir}/uncompyle2-%{version}-py*.egg-info |