3
0

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
This commit is contained in:
Andreas Jaeger 2021-10-06 13:14:39 +00:00 committed by Git OBS Bridge
commit e587cee9b0
8 changed files with 119 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

14
_service Normal file
View File

@ -0,0 +1,14 @@
<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="parent-tag">1071756aaa3327ce90aff6cd35ebec5d79478c43</param>
<param name="versionformat">0.0.0+@TAG_OFFSET@</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)$

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e64d9e7da8ef7b02e3c2bf1df56ffdf5778c802450a7840c70516f9ee4b10a5e
size 30048

View File

@ -0,0 +1,7 @@
-------------------------------------------------------------------
Wed Jun 30 13:47:17 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- initial version 0.0.0+163
- Add patches from rpm:
* python3.patch
* disable-distrequires.patch

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

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

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>