# # spec file for package python-rpm-macros # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-rpm-macros Version: 2017.12.22.d9968ab Release: 56.1 Summary: RPM macros for building of Python modules License: WTFPL Group: Development/Tools/Other Url: https://github.com/opensuse/multipython-macros Source: python-rpm-macros-%{version}.tar.bz2 Source100: README.packaging Source101: update.sh # Fedora compatibility Provides: python2-rpm-macros Provides: python3-rpm-macros #!BuildIgnore: python-rpm-macros BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains SUSE RPM macros for Python build automation. You should BuildRequire this package unless you are sure that you are only building for distros newer than Leap 42.2 %prep %setup -q %if 0%{?suse_version} < 1330 mv macros-default-pythons macros/035-default-pythons %endif %build ./compile-macros.sh %install mkdir -p %{buildroot}%{_sysconfdir}/rpm install -m 644 macros.python_all %{buildroot}%{_sysconfdir}/rpm %files %defattr(-,root,root) %{_sysconfdir}/rpm/macros.python_all %changelog * Fri Dec 22 2017 jmatejek@suse.com - version bump to 2017.12.22.d9968ab * better fix for macro usage in rpm 4.14 * Thu Dec 7 2017 tchvatal@suse.com - version bump to 2017.12.07.9d4e9eb * Fix macro usage for rpm 4.14 * Wed Aug 9 2017 jmatejek@suse.com - version bump to 2017.08.09.32550d0 - use %%_specfile macro to locate the spec file, this should help with factory-auto bot problems as well as issue#3 * Thu Jun 29 2017 jmatejek@suse.com - version bump to 2017.06.29.107ac7a - fix skip_python2 in environment where python2 is not actually present * Wed Jun 21 2017 jmatejek@suse.com - version bump to 2017.06.21.6641889 - introduce smarter buildset support - fix %%python_files on nonstandard build sets - introduce %%python_for_executables in favor of magically taking "last python in %%pythons" - fix %%licence tag handling (gh#opensuse/python-rpm-macros#4) * Tue May 9 2017 jmatejek@suse.com - version bump to 2017.05.09.fc237de - fix badly generated %%posttrans snippets in cases where old %%python_install_alternative syntax is used for secondary files - rework %%if-macros - introduce %%python_flavor, which configures behavior of generic %%python_* macros, and can be overriden by the user - add --force to %%python_install, to make install order fully deterministic * Thu Apr 27 2017 jmatejek@suse.com - version bump to 2017.04.27.d2ca08c - switch versioning scheme to date-based - switch from using service to a custom script update.sh - auto-generate Provides: python2-modname in old distributions (only for main package though) * Wed Mar 29 2017 jmatejek@suse.com - generate %%posttrans sections to fix up alternatives after package rename - fix condition where %%python_files would emit wrong thing when %%have_python2 is undefined - add --quiet to uninstall_alternative, to silence spurious errors - check for file existence instead of package number in uninstall_alternative * Thu Mar 23 2017 jmatejek@suse.com - remove spurious warnings about "unknown arguments" (by making ALL possible arguments known) - fix a bug with %%python_clone not working without %%python_install_alternative being used - in %%python_files, detect and emit an error if %%python_subpackages is not used * Mon Mar 13 2017 jmatejek@suse.com - more intelligent %%python_install_alternatives - multiline macro support - support for %%requires_ge and %%requires_eq as well as Requires(pre) and friends - "%%python_clone -a" auto-creates alternative entries * Thu Mar 9 2017 jmatejek@suse.com - implement %%python_clone to clone files for alternatives * Wed Mar 8 2017 jmatejek@suse.com - support "Supplements" and "Enhances" tags - support packageand() expression - fix handling of %%name in requires * Wed Mar 8 2017 jmatejek@suse.com - make macros more resilient to missing %%python_subpackages - expand %%python_bin_suffix properly * Fri Feb 24 2017 jmatejek@suse.com - let %%python_module expand *all* its arguments, not just the first (so that %%{python_module x >= 1.0} works as intended) * Wed Feb 22 2017 jmatejek@suse.com - copy BuildArch to subpackages - on requires/provides etc., perform macro expansion *after* replacing 'python' name, to allow for tricking the rewriter to not replace * Tue Feb 21 2017 jmatejek@suse.com - add BuildRoot to make SLE11 happy - check presence of %%python_files even on new-style distros - better visibility of the %%python_files error * Mon Feb 13 2017 jmatejek@suse.com - update service, use repository and tarball name "python-rpm-macros" * Tue Feb 7 2017 jmatejek@suse.com - introduce %%python_prefix * Mon Feb 6 2017 jengelh@inai.de - Set RPM group * Wed Jan 11 2017 jmatejek@suse.com - change service version generator to use "1.0.git" instead of "1.0git" * Fri Jan 6 2017 jmatejek@suse.com - rework %%python_alternative and remove support for %%python_alternative_man - tell service to compress the tar file * Fri Jan 6 2017 jmatejek@suse.com - set service to localonly mode * Tue Jan 3 2017 jmatejek@suse.com - current macro version * Thu Nov 24 2016 jmatejek@suse.com - initial commit