From c02376f89eab6d55569d7ef4d83140fab5d2d50dd9660c49845edd4027922ef0 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 11 Jan 2017 14:33:56 +0000 Subject: [PATCH] revert whatever the heck osc did right now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=23 --- python-rpm-macros.spec | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 python-rpm-macros.spec diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec new file mode 100644 index 0000000..6980a28 --- /dev/null +++ b/python-rpm-macros.spec @@ -0,0 +1,52 @@ +# +# spec file for package python-rpm-macros +# +# Copyright (c) 2016 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.0git.1483874658.ead0b0b +Release: 0 +License: WTFPL +Summary: RPM macros for building of Python modules +Url: https://github.com/opensuse/multipython-macros +Source: multipython-macros-%{version}.tar.bz2 +# Fedora compatibility +Provides: python2-rpm-macros +Provides: python3-rpm-macros +#!BuildIgnore: python-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 + +%prep +%setup -q -n multipython-macros-%{version} +%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