forked from pool/python-python-debian
66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-debian
|
||
|
#
|
||
|
# Copyright (c) 2022 SUSE LLC
|
||
|
# Copyright (c) 2017 Free Software Foundation Europe e.V.
|
||
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
|
Name: python-debian
|
||
|
Version: 0.1.44
|
||
|
Release: 0
|
||
|
Summary: Debian package related modules
|
||
|
License: GPL-3.0-or-later
|
||
|
Group: Development/Languages/Python
|
||
|
URL: https://salsa.debian.org/python-debian-team/python-debian
|
||
|
Source: https://files.pythonhosted.org/packages/source/p/python-debian/python-debian-%{version}.tar.gz
|
||
|
BuildRequires: %{python_module setuptools}
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: python-rpm-macros
|
||
|
Requires: python-chardet
|
||
|
Requires: python-six
|
||
|
Requires: zstd
|
||
|
BuildArch: noarch
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
This is a collection of modules that are for dealing with Debian related
|
||
|
data. Currently handled are:
|
||
|
|
||
|
* Debtags information (debian.debtags module)
|
||
|
* debian/changelog (debian.changelog module)
|
||
|
* Packages files, pdiffs (debian.debian_support module)
|
||
|
* Control files of single or multiple RFC822-style paragraphs, e.g.
|
||
|
debian/control, .changes, .dsc, Packages, Sources, Release, etc.
|
||
|
(debian.deb822 module)
|
||
|
* Raw .deb and .ar files, with (read-only) access to contained
|
||
|
files and meta-information
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n python-debian-%{version}
|
||
|
|
||
|
%build
|
||
|
%python_build
|
||
|
|
||
|
%install
|
||
|
%python_install
|
||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
||
|
%files %{python_files}
|
||
|
%doc README.rst
|
||
|
%{python_sitelib}/*
|
||
|
|
||
|
%changelog
|