Hello community,

here is the log from the commit of package python-dfdatetime for 
openSUSE:Factory checked in at 2020-01-24 13:12:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dfdatetime (Old)
 and      /work/SRC/openSUSE:Factory/.python-dfdatetime.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dfdatetime"

Fri Jan 24 13:12:47 2020 rev:5 rq:766731 version:0~20190517

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dfdatetime/python-dfdatetime.changes      
2019-08-20 10:59:49.376650870 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dfdatetime.new.26092/python-dfdatetime.changes
   2020-01-24 13:13:43.393494757 +0100
@@ -1,0 +2,5 @@
+Fri Jan 17 10:12:11 UTC 2020 - Matej Cepl <[email protected]>
+
+- Convert to python3 only
+
+-------------------------------------------------------------------
@@ -35,0 +41 @@
+

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dfdatetime.spec ++++++
--- /var/tmp/diff_new_pack.oGcgzG/_old  2020-01-24 13:13:44.573495231 +0100
+++ /var/tmp/diff_new_pack.oGcgzG/_new  2020-01-24 13:13:44.581495234 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dfdatetime
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,45 +16,53 @@
 #
 
 
-%define timestamp 20190517
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define timestamp 20190517
+%define skip_python2 1
+%define modname dfdatetime
 Name:           python-dfdatetime
 Version:        0~%{timestamp}
 Release:        0
-Summary:        Digital Forensics Date and Time (dfDateTime)
+Summary:        Digital Forensics date and time (dfDateTime)
 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
+URL:            https://github.com/log2timeline/dfdatetime
+Source:         
https://files.pythonhosted.org/packages/source/d/%{modname}/%{modname}-%{timestamp}.tar.gz
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module mock >= 2.0.0}
+BuildRequires:  %{python_module pbr >= 4.2.0}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six >= 1.1.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-#Python-mock is used for internal self-test at a minimum
-Requires:       python-mock
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 %python_subpackages
 
 %description
-dfDateTime, or Digital Forensics date and time, provides date and time objects 
to preserve accuracy and precision.
+dfDateTime, or Digital Forensics date and time, provides date and time
+objects to preserve accuracy and precision.
 
 %prep
-%setup -q -n dfdatetime-%{timestamp}
+%setup -q -n %{modname}-%{timestamp}
 
 %build
 %python_build
 
 %install
 %python_install
-# these doc files are installed to the wrong place
-rm -rf %{buildroot}/usr/share/doc/dfdatetime
-%fdupes %{buildroot}/%{_prefix}
+# setup.py install helpfully installs files where it shouldn’t
+rm -rfv %{buildroot}%{_datadir}/doc/%{modname}
+
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%check
+# Using pytest leads to some horribly-looking crashes, not sure what's
+# going on.
+%python_exec ./run_tests.py
 
 %files %{python_files}
-%defattr(-,root,root)
 %license LICENSE
 %doc ACKNOWLEDGEMENTS AUTHORS README
-%{python_sitelib}/dfdatetime*
+%{python_sitelib}/*
 
 %changelog


Reply via email to