17
0

Accepting request 531451 from home:gregfreemyer:Tools-for-forensic-boot-cd

- Implement singlespec changes recommended by Jan Matejek

OBS-URL: https://build.opensuse.org/request/show/531451
OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfdatetime?expand=0&rev=7
This commit is contained in:
Greg Freemyer
2017-10-04 19:29:21 +00:00
committed by Git OBS Bridge
parent 61288e9c02
commit a71f2bec9b
2 changed files with 9 additions and 10 deletions

View File

@@ -26,11 +26,11 @@ License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/log2timeline/dfdatetime
Source: https://github.com/log2timeline/dfdatetime/releases/download/%{timestamp}/dfdatetime-%{timestamp}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(python)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@@ -42,16 +42,11 @@ dfDateTime, or Digital Forensics date and time, provides date and time objects t
%setup -q -n dfdatetime-%{timestamp}
%build
python2 setup.py build
python3 setup.py build
%python_build
%install
python2 setup.py install -O1 --root=%{buildroot}
python3 setup.py install -O1 --root=%{buildroot}
#delete all precombied PYO files
find %{buildroot} -name \*.pyc -delete
find %{buildroot} -name \*.pyo -delete
# these are installed into the wrong place
%python_install
#these doc files are installed to the wrong place
rm -rf %{buildroot}/usr/share/doc/dfdatetime
%fdupes %{buildroot}/%{_prefix}