Sync from SUSE:SLFO:Main python-rpm-packaging revision 49e400fafd8364aa42f8df93d7460e8c

This commit is contained in:
Adrian Schröter 2024-05-03 22:53:07 +02:00
commit 4223c6fd31
7 changed files with 130 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

13
_service Normal file
View File

@ -0,0 +1,13 @@
<services>
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/rpm-software-management/python-rpm-packaging.git</param>
<param name="versionformat">%cd+%h</param>
<param name="revision">a18ca48959c95aefa725317084dd2d3e242e4f71</param>
</service>
<service name="recompress" mode="manual">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="manual"/>
</services>

View File

@ -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)$

BIN
python-rpm-packaging-20210526+a18ca48.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,12 @@
-------------------------------------------------------------------
Thu Jul 14 13:06:08 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Add python3-packaging as requirement boo#1178257
-------------------------------------------------------------------
Wed Jun 30 13:47:17 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- initial version 20210526+a18ca48
- Add patches from rpm:
* python3.patch
* disable-distrequires.patch

63
python-rpm-packaging.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package python-rpm-packaging
#
# Copyright (c) 2022 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: 20210526+a18ca48
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.1
Obsoletes: rpm-build-python < 4.17.1
Requires: python3-base
# boo#1178257
Requires: python3-packaging
# 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
%{_fileattrsdir}/python.attr
%{_fileattrsdir}/pythondist.attr
%{_rpmconfigdir}/brp-python-bytecompile
%{_rpmconfigdir}/brp-python-hardlink
%{_rpmconfigdir}/pythondistdeps.py
%changelog

8
python3.patch Normal file
View File

@ -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 <proyvind@moondrake.org>