diff --git a/python-dfdatetime.changes b/python-dfdatetime.changes index e7001f2..b9133d5 100644 --- a/python-dfdatetime.changes +++ b/python-dfdatetime.changes @@ -2,8 +2,12 @@ Tue Oct 3 16:08:32 UTC 2017 - Greg.Freemyer@gmail.com - update to v0~20170719 - * various improvements including new format support and added sanity checks + * various improvements including + new format support + added sanity checks - implement python singlespec syntax +- remove the lines that delete *.pyc and *.pyo files, + they no longer cause problems ------------------------------------------------------------------- Sat Jul 30 22:27:27 UTC 2016 - jengelh@inai.de diff --git a/python-dfdatetime.spec b/python-dfdatetime.spec index 8910084..d803655 100644 --- a/python-dfdatetime.spec +++ b/python-dfdatetime.spec @@ -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}