12
0

2 Commits

2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 18 04:04:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 28 21:35:13 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com> Fri Jul 28 21:35:13 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-dfdatetime # spec file for package python-dfdatetime
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
%define timestamp 20230225 %define timestamp 20230225
@@ -28,7 +29,9 @@ Group: Development/Languages/Python
URL: https://github.com/log2timeline/dfdatetime URL: https://github.com/log2timeline/dfdatetime
Source: https://github.com/log2timeline/%{modname}//releases/download/%{timestamp}/%{modname}-%{timestamp}.tar.gz Source: https://github.com/log2timeline/%{modname}//releases/download/%{timestamp}/%{modname}-%{timestamp}.tar.gz
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -42,13 +45,12 @@ objects to preserve accuracy and precision.
%setup -q -n %{modname}-%{timestamp} %setup -q -n %{modname}-%{timestamp}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
# setup.py install helpfully installs files where it shouldnt # Do not ship the docs in datadir
rm -rfv %{buildroot}%{_datadir}/doc/%{modname} rm -rfv %{buildroot}%{_datadir}/doc/%{modname}
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -58,6 +60,6 @@ rm -rfv %{buildroot}%{_datadir}/doc/%{modname}
%license LICENSE %license LICENSE
%doc ACKNOWLEDGEMENTS AUTHORS README %doc ACKNOWLEDGEMENTS AUTHORS README
%{python_sitelib}/dfdatetime %{python_sitelib}/dfdatetime
%{python_sitelib}/dfdatetime-%{timestamp}*info %{python_sitelib}/dfdatetime-%{timestamp}.dist-info
%changelog %changelog