2017-01-11 15:33:56 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-rpm-macros
|
|
|
|
#
|
2023-01-30 07:39:47 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-01-11 15:33:56 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-11 10:04:08 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-01-11 15:33:56 +01:00
|
|
|
#
|
|
|
|
|
2017-02-07 17:33:09 +01:00
|
|
|
|
2017-01-11 15:33:56 +01:00
|
|
|
Name: python-rpm-macros
|
2023-10-05 17:54:19 +02:00
|
|
|
Version: 20231005.bf2d3ab
|
2017-01-11 15:33:56 +01:00
|
|
|
Release: 0
|
2017-02-07 17:33:09 +01:00
|
|
|
Summary: RPM macros for building of Python modules
|
2017-01-11 15:33:56 +01:00
|
|
|
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
|
2020-04-21 13:43:30 +02:00
|
|
|
Source: python-rpm-macros-%{version}.tar.xz
|
2020-09-02 13:46:53 +02:00
|
|
|
# To keep user expectations reasonably sane
|
|
|
|
Recommends: python-rpm-generators
|
2017-01-11 15:33:56 +01:00
|
|
|
# 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
|
|
|
|
|
2020-01-21 14:49:48 +01:00
|
|
|
%package -n python-rpm-generators
|
|
|
|
Summary: Dependency generator dependencies for Python RPMs
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# For the dep generator macros
|
|
|
|
Requires: python3-setuptools
|
2020-09-02 13:46:53 +02:00
|
|
|
# Fedora compatibility
|
|
|
|
Provides: python3-rpm-generators
|
2020-01-21 14:49:48 +01:00
|
|
|
|
|
|
|
%description -n python-rpm-generators
|
|
|
|
This package contains the dependencies for Python RPMs to generate
|
|
|
|
dependencies automatically.
|
|
|
|
|
2017-01-11 15:33:56 +01:00
|
|
|
%prep
|
2020-10-21 13:22:08 +02:00
|
|
|
%autosetup
|
2020-06-22 21:02:54 +02:00
|
|
|
|
2017-01-11 15:33:56 +01:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
mv macros-default-pythons macros/035-default-pythons
|
|
|
|
%endif
|
2020-06-03 14:02:02 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2020-09-17 18:12:44 +02:00
|
|
|
sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs
|
2020-06-03 14:02:02 +02:00
|
|
|
%endif
|
2017-01-11 15:33:56 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
./compile-macros.sh
|
|
|
|
|
|
|
|
%install
|
2018-12-20 01:22:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
|
|
|
|
install -m 644 macros.python_all %{buildroot}%{_rpmconfigdir}/macros.d/
|
2017-01-11 15:33:56 +01:00
|
|
|
|
|
|
|
%files
|
2018-12-20 01:22:56 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.python_all
|
2017-02-07 17:33:09 +01:00
|
|
|
|
2020-01-21 14:49:48 +01:00
|
|
|
%files -n python-rpm-generators
|
|
|
|
# Nothing here for now...
|
|
|
|
|
2017-02-07 17:33:09 +01:00
|
|
|
%changelog
|