1
0
python-rpm-macros/python-rpm-macros.spec

76 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-rpm-macros
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: python-rpm-macros
Version: 20220809.cf8a7b8
Release: 0
Summary: RPM macros for building of Python modules
License: WTFPL
Accepting request 682447 from home:mcepl:branches:devel:languages:python:Factory - bsc#1128323: Update to version 20190307.fbaed33 bsc#1128323: * Add --ignore to pytest calls to ignore build directories. - Update to version 20190221.08f1194: * Actually make pytest into function to capture arguments as well * Add pytest definitions. - Use upstream-recommended %{_rpmconfigdir}/macros.d directory for the rpm macros. - Include license and readme. - Update to version 20181211.ab6f37c: * Fix an issue with epoch printing having too many \ * Remove packaging/ dir - Update to version 1540475376.149a499: * add epoch while printing "Provides:" - Update URL - Add _service and use the tar_scm/recompress/set_version source services to update the package. Package updates can now be done with "osc service run" - Drop README.packaging - Drop update.sh . This is now handled via the source services - version bump to 2018.08.15.ada6d63 - version bump to 2017.12.22.d9968ab * better fix for macro usage in rpm 4.14 - version bump to 2017.12.07.9d4e9eb * Fix macro usage for rpm 4.14 - 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 - version bump to 2017.06.29.107ac7a - fix skip_python2 in environment where python2 is not actually present - 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) - 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 - 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) - 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 - 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 - 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 - implement %python_clone to clone files for alternatives - support "Supplements" and "Enhances" tags - support packageand() expression - fix handling of %name in requires - make macros more resilient to missing %python_subpackages - expand %python_bin_suffix properly - let %python_module expand *all* its arguments, not just the first (so that %{python_module x >= 1.0} works as intended) - copy BuildArch to subpackages - on requires/provides etc., perform macro expansion *after* replacing 'python' name, to allow for tricking the rewriter to not replace - add BuildRoot to make SLE11 happy - check presence of %python_files even on new-style distros - better visibility of the %python_files error - update service, use repository and tarball name "python-rpm-macros" - introduce %python_prefix - Set RPM group - change service version generator to use "1.0.git" instead of "1.0git" - rework %python_alternative and remove support for %python_alternative_man - tell service to compress the tar file - set service to localonly mode - current macro version - initial commit OBS-URL: https://build.opensuse.org/request/show/682447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=62
2019-03-07 13:30:28 +01:00
URL: https://github.com/opensuse/python-rpm-macros
Source: python-rpm-macros-%{version}.tar.xz
# To keep user expectations reasonably sane
Recommends: python-rpm-generators
# Fedora compatibility
Provides: python2-rpm-macros
Provides: python3-rpm-macros
BuildArch: noarch
%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
%package -n python-rpm-generators
Summary: Dependency generator dependencies for Python RPMs
Requires: %{name} = %{version}-%{release}
# For the dep generator macros
Requires: python3-setuptools
# Fedora compatibility
Provides: python3-rpm-generators
%description -n python-rpm-generators
This package contains the dependencies for Python RPMs to generate
dependencies automatically.
%prep
%autosetup
%if 0%{?suse_version} < 1330
mv macros-default-pythons macros/035-default-pythons
%endif
%if 0%{?suse_version} >= 1550
sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs
%endif
%build
./compile-macros.sh
%install
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
install -m 644 macros.python_all %{buildroot}%{_rpmconfigdir}/macros.d/
%files
%license LICENSE
%doc README.md
%{_rpmconfigdir}/macros.d/macros.python_all
%files -n python-rpm-generators
# Nothing here for now...
%changelog