Hello community, here is the log from the commit of package archivemail for openSUSE:Factory checked in at 2020-04-11 23:46:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/archivemail (Old) and /work/SRC/openSUSE:Factory/.archivemail.new.3248 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "archivemail" Sat Apr 11 23:46:54 2020 rev:18 rq:793009 version:0.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/archivemail/archivemail.changes 2020-01-15 16:34:42.152933958 +0100 +++ /work/SRC/openSUSE:Factory/.archivemail.new.3248/archivemail.changes 2020-04-11 23:47:14.763121170 +0200 @@ -1,0 +2,7 @@ +Mon Apr 6 07:07:23 UTC 2020 - Martin Pluskal <[email protected]> + +- Modernise spec file: + * Use modern python building macros + * Install COPYING and mark it as license + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ archivemail.spec ++++++ --- /var/tmp/diff_new_pack.q7mg8n/_old 2020-04-11 23:47:16.827122743 +0200 +++ /var/tmp/diff_new_pack.q7mg8n/_new 2020-04-11 23:47:16.827122743 +0200 @@ -16,23 +16,18 @@ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} - Name: archivemail Version: 0.9.0 Release: 0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -URL: http://archivemail.sf.net/ -Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz Summary: Tool for Archiving and Compressing Old Email in Mailboxes License: GPL-2.0-or-later Group: Productivity/Networking/Email/Utilities +URL: http://archivemail.sf.net/ +Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRequires: ed BuildRequires: python-base -%{py_requires} -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildRequires: python-rpm-macros BuildArch: noarch -%endif %description archivemail is a tool for archiving and compressing old email in mailboxes. It @@ -48,20 +43,17 @@ EOF %build -python setup.py build +%python2_build %install -# python => 2.5 expects this to exist (it will exist if the package -# installs something there, but we don't) -mkdir -p $RPM_BUILD_ROOT/%{python_sitelib} -python setup.py install --prefix=%{_prefix} --root %{buildroot} +%python2_install # we don't need the egg file which python => 2.5 installs -rm -f $RPM_BUILD_ROOT/%{python_sitelib}/* +rm -f %{buildroot}/%{python_sitelib}/* %files -%defattr(-,root,root) -%{_bindir}/archivemail -%doc %{_mandir}/man1/archivemail.1* +%license COPYING %doc CHANGELOG examples/* FAQ README TODO +%{_bindir}/archivemail +%{_mandir}/man1/archivemail.1%{?ext_man} %changelog
