forked from pool/python-pefile
- Cleanup excessive macro usage
- Fix SLE_11_SP2 build (not noarch there) - No need for dos2unix, sed is enough OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pefile?expand=0&rev=3
This commit is contained in:
parent
24043aab72
commit
19eee03205
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 20 19:25:06 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- Cleanup excessive macro usage
|
||||
- Fix SLE_11_SP2 build (not noarch there)
|
||||
- No need for dos2unix, sed is enough
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 21 20:49:38 UTC 2012 - Greg.Freemyer@gmail.com
|
||||
|
||||
|
@ -25,12 +25,11 @@ Group: Development/Libraries/Python
|
||||
Source0: pefile-1.2.10-121.tar.gz
|
||||
Source1: http://reverse-engineering-scripts.googlecode.com/files/UserDB.TXT
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: dos2unix
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -39,18 +38,17 @@ PEFILE is a python module that is often used in malware analysis. (Replace this
|
||||
%prep
|
||||
%setup -q -n pefile-1.2.10-121
|
||||
cp %{SOURCE1} .
|
||||
dos2unix COPYING
|
||||
dos2unix %{SOURCE1}
|
||||
|
||||
sed -i "s|\r||" COPYING UserDB.TXT
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc UserDB.TXT COPYING README PKG-INFO
|
||||
%doc UserDB.TXT COPYING README
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user