|
|
ccaecf |
#
|
|
|
ccaecf |
# spec file for package python-rpm-packaging
|
|
|
ccaecf |
#
|
|
|
ccaecf |
# Copyright (c) 2022 SUSE LLC
|
|
|
ccaecf |
#
|
|
|
ccaecf |
# All modifications and additions to the file contributed by third parties
|
|
|
ccaecf |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
ccaecf |
# upon. The license for this file, and modifications and additions to the
|
|
|
ccaecf |
# file, is the same license as for the pristine package itself (unless the
|
|
|
ccaecf |
# license for the pristine package is not an Open Source License, in which
|
|
|
ccaecf |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
ccaecf |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
ccaecf |
# published by the Open Source Initiative.
|
|
|
ccaecf |
|
|
|
ccaecf |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
ccaecf |
#
|
|
|
ccaecf |
|
|
|
ccaecf |
|
|
|
ccaecf |
Name: python-rpm-packaging
|
|
|
ccaecf |
Version: 20210526+a18ca48
|
|
|
ccaecf |
Release: 0
|
|
|
ccaecf |
Summary: RPM dependency generator for Python
|
|
|
ccaecf |
Group: Development/Languages/Python
|
|
|
ccaecf |
License: GPL-2.0-or-later
|
|
|
ccaecf |
URL: https://github.com/rpm-software-management/python-rpm-packaging
|
|
|
ccaecf |
Source0: %{name}-%{version}.tar.xz
|
|
|
ccaecf |
Patch0: python3.patch
|
|
|
ccaecf |
Patch1: disable-distrequires.patch
|
|
|
ccaecf |
BuildArch: noarch
|
|
|
ccaecf |
Provides: rpm-build-python = 4.17.1
|
|
|
ccaecf |
Obsoletes: rpm-build-python < 4.17.1
|
|
|
ccaecf |
Requires: python3-base
|
|
|
ccaecf |
# boo#1178257
|
|
|
ccaecf |
Requires: python3-packaging
|
|
|
ccaecf |
# To avoid widespread breakage by package mistakenly ignoring
|
|
|
ccaecf |
# their requirement of python-rpm-macros (bsc#1180125)
|
|
|
ccaecf |
Requires: python-rpm-macros
|
|
|
ccaecf |
|
|
|
ccaecf |
%description
|
|
|
ccaecf |
Tools for packaging Python projects with rpm
|
|
|
ccaecf |
|
|
|
ccaecf |
%prep
|
|
|
ccaecf |
%autosetup -p1
|
|
|
ccaecf |
|
|
|
ccaecf |
%build
|
|
|
ccaecf |
true
|
|
|
ccaecf |
|
|
|
ccaecf |
%install
|
|
|
ccaecf |
mkdir -p %{buildroot}%{_fileattrsdir}
|
|
|
ccaecf |
install -Dm0644 fileattrs/* %{buildroot}%{_fileattrsdir}
|
|
|
ccaecf |
install -Dm0755 scripts/* %{buildroot}%{_rpmconfigdir}
|
|
|
ccaecf |
|
|
|
ccaecf |
%files
|
|
|
ccaecf |
%license COPYING
|
|
|
ccaecf |
%doc README
|
|
|
ccaecf |
%{_fileattrsdir}/python.attr
|
|
|
ccaecf |
%{_fileattrsdir}/pythondist.attr
|
|
|
ccaecf |
%{_rpmconfigdir}/brp-python-bytecompile
|
|
|
ccaecf |
%{_rpmconfigdir}/brp-python-hardlink
|
|
|
ccaecf |
%{_rpmconfigdir}/pythondistdeps.py
|
|
|
ccaecf |
|
|
|
ccaecf |
|
|
|
ccaecf |
%changelog
|