commit e587cee9b04f5ac2b5f6bf7f631dcc1c7e70a05973bdbe4f1e79e92beef5519c Author: Andreas Jaeger Date: Wed Oct 6 13:14:39 2021 +0000 Accepting request 919737 from home:gmbr3:rpm4.17 RPM 4.17 OBS-URL: https://build.opensuse.org/request/show/919737 OBS-URL: https://build.opensuse.org/package/show/Base:System/python-rpm-packaging?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..cb3aee1 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/rpm-software-management/python-rpm-packaging.git + 1071756aaa3327ce90aff6cd35ebec5d79478c43 + 0.0.0+@TAG_OFFSET@ + a18ca48959c95aefa725317084dd2d3e242e4f71 + + + xz + *.tar + + + diff --git a/disable-distrequires.patch b/disable-distrequires.patch new file mode 100644 index 0000000..81cf15f --- /dev/null +++ b/disable-distrequires.patch @@ -0,0 +1,8 @@ +--- ./fileattrs/pythondist.attr.orig 2019-12-06 14:32:57.245328376 +0000 ++++ ./fileattrs/pythondist.attr 2019-12-06 14:33:35.345238073 +0000 +@@ -1,3 +1,4 @@ + %__pythondist_provides %{_rpmconfigdir}/pythondistdeps.py --provides --majorver-provides +-%__pythondist_requires %{_rpmconfigdir}/pythondistdeps.py --requires ++#disabled for now ++#%__pythondist_requires %{_rpmconfigdir}/pythondistdeps.py --requires + %__pythondist_path /lib(64)?/python[[:digit:]]\\.[[:digit:]]+/site-packages/[^/]+\\.(dist-info|egg-info|egg-link)$ diff --git a/python-rpm-packaging-0.0.0+163.tar.xz b/python-rpm-packaging-0.0.0+163.tar.xz new file mode 100644 index 0000000..e429bfd --- /dev/null +++ b/python-rpm-packaging-0.0.0+163.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e64d9e7da8ef7b02e3c2bf1df56ffdf5778c802450a7840c70516f9ee4b10a5e +size 30048 diff --git a/python-rpm-packaging.changes b/python-rpm-packaging.changes new file mode 100644 index 0000000..44d129e --- /dev/null +++ b/python-rpm-packaging.changes @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Wed Jun 30 13:47:17 UTC 2021 - Callum Farmer + +- initial version 0.0.0+163 +- Add patches from rpm: + * python3.patch + * disable-distrequires.patch diff --git a/python-rpm-packaging.spec b/python-rpm-packaging.spec new file mode 100644 index 0000000..2d80810 --- /dev/null +++ b/python-rpm-packaging.spec @@ -0,0 +1,55 @@ +# +# spec file for package python-rpm-packaging +# +# 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: python-rpm-packaging +Version: 0.0.0+163 +Release: 0 +Summary: RPM dependency generator for Python +Group: Development/Languages/Python +License: GPL-2.0-or-later +URL: https://github.com/rpm-software-management/python-rpm-packaging +Source0: %{name}-%{version}.tar.xz +Patch0: python3.patch +Patch1: disable-distrequires.patch +BuildArch: noarch +Provides: rpm-build-python = 4.17.0 +Obsoletes: rpm-build-python < 4.17.0 +Requires: python3-base +# To avoid widespread breakage by package mistakenly ignoring +# their requirement of python-rpm-macros (bsc#1180125) +Requires: python-rpm-macros + +%description +Tools for packaging Python projects with rpm + +%prep +%autosetup -p1 + +%build +true + +%install +mkdir -p %{buildroot}%{_fileattrsdir} +install -Dm0644 fileattrs/* %{buildroot}%{_fileattrsdir} +install -Dm0755 scripts/* %{buildroot}%{_rpmconfigdir} + +%files +%license COPYING +%doc README +%{_rpmconfigdir}/* + +%changelog diff --git a/python3.patch b/python3.patch new file mode 100644 index 0000000..cee207d --- /dev/null +++ b/python3.patch @@ -0,0 +1,8 @@ +--- ./scripts/pythondistdeps.py.orig 2019-06-26 10:17:31.454985631 -0400 ++++ ./scripts/pythondistdeps.py 2019-10-31 16:30:37.685850605 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # -*- coding: utf-8 -*- + # + # Copyright 2010 Per Øyvind Karlsen