Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:saltstack:bundle:testing:SLE11
saltbundlepy-rpm-macros
saltbundlepy-rpm-macros.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File saltbundlepy-rpm-macros.spec of Package saltbundlepy-rpm-macros
# # spec file for package saltbundlepy-rpm-macros # # Copyright (c) 2021 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: saltbundlepy-rpm-macros Version: 20230609.6fe8111 Release: 0 Summary: RPM macros for building of Python modules License: WTFPL URL: https://github.com/opensuse/python-rpm-macros Source: saltbundlepy-rpm-macros-%{version}.tar.xz Source1: macros.z-sb-install-post Source2: macros.z-sb-fdupes Patch0: specfile.patch Patch1: saltbundlepy-flavor.patch Patch2: revert-alternatives-macro.patch Patch3: set-pythons-macro.patch Patch4: revert-pyproject-macro.patch Patch5: use-inline-compile.patch %if "%_vendor" == "debbuild" BuildRequires: debbuild Requires: liblua5-1-5 Requires: perl-lua-api %endif 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 saltbundlepy-rpm-generators Summary: Dependency generator dependencies for Python RPMs Requires: %{name} = %{version}-%{release} # For the dep generator macros Requires: saltbundlepy-setuptools %description -n saltbundlepy-rpm-generators This package contains the dependencies for Python RPMs to generate dependencies automatically. %prep %autosetup -p1 sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs %build ./compile-macros.sh sed -i -e '/^%__saltbundlepy/s/%%{_bindir}.*/%%{_bindir}\/python3.11/' macros.python_all %if 0%{?rhel} || 0%{?fedora} sed -i -e '/update-alternatives/s/ --quiet//' macros.python_all %endif %install mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/ install -m 644 macros.python_all %{buildroot}%{_rpmconfigdir}/macros.d/macros.saltbundlepy %if 0%{?rhel} == 7 mkdir -p %{buildroot}%{_sysconfdir}/rpm install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.z-sb-install-post %endif %if "%_vendor" == "debbuild" install -m 644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.z-sb-fdupes %endif %files %license LICENSE %doc README.md %{_rpmconfigdir}/macros.d/macros.saltbundlepy %if 0%{?rhel} == 7 %{_sysconfdir}/rpm/macros.z-sb-install-post %endif %if "%_vendor" == "debbuild" %{_rpmconfigdir}/macros.d/macros.z-sb-fdupes %endif %files -n saltbundlepy-rpm-generators # Nothing here for now... %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor