python-rpm-macros/python-rpm-macros.spec
Jan Matejek 9479633648 Accepting request 459721 from devel:languages:python:singlespec
- 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

OBS-URL: https://build.opensuse.org/request/show/459721
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=28
2017-02-22 15:22:30 +00:00

57 lines
1.7 KiB
RPMSpec

#
# 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: 1.0.git.1487774244.43af76a
Release: 0
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
# 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