Mageia Bugzilla – Attachment 13926 Details for
Bug 32126
python-apt - Python 3 bindings for apt NEW PKG REQUEST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
python-apt.spec (text/plain), 2.00 KB, created by
Kristoffer Grundström
on 2023-07-20 04:56:22 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2023-07-20 04:56:22 CEST
Size:
2.00 KB
patch
obsolete
># Enable generated Python dependencies on EL8 >%{?python_enable_dependency_generator} > >Name: python-apt >Version: 2.3.0 >Release: 1%{?dist} >Summary: Python bindings for APT >License: GPLv2+ >URL: https://tracker.debian.org/pkg/python-apt >Source0: https://salsa.debian.org/apt-team/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz > ># Requires Debian's apt >BuildRequires: apt-mga >= 2.0.0 >BuildRequires: gcc >BuildRequires: gcc-c++ >BuildRequires: python3-devel >BuildRequires: apt-mga-devel >BuildRequires: python3dist(python-distutils-extra) >BuildRequires: python3dist(setuptools) >BuildRequires: libzlib-devel > >%description >python-apt is a wrapper to use features of APT from Python. > >%package -n python3-apt >Summary: Python 3 bindings for APT ># Without dpkg installed, it crashes >Requires: dpkg ># Needed for source format support >Recommends: dpkg-dev > >%description -n python3-apt >The apt_pkg Python 3 interface will provide full access to the internal >libapt-pkg structures allowing Python 3 programs to easily perform a >variety of functions, such as: > > - Access to the APT configuration system > - Access to the APT package information database > - Parsing of Debian package control files, and other files with a > similar structure > >The included 'aptsources' Python interface provides an abstraction of >the sources.list configuration on the repository and the distro level. > >%prep >%autosetup -p1 > >%build ># Deal with python-apt not having proper default version set by using debver hack >export DEBVER="%{version}" >%py3_build > >%install ># Deal with python-apt not having proper default version set by using debver hack >export DEBVER="%{version}" >%py3_install > ># Get rid of unused garbage >rm -rf %{buildroot}%{python3_sitelib}/apt_*-stubs* > >%files -n python3-apt >%license COPYING.GPL >%doc README.md >%{python3_sitearch}/apt/ >%{python3_sitearch}/apt_* >%{python3_sitearch}/aptsources/ >%{python3_sitearch}/python_apt-%{version}-py%{python3_version}.egg-info/ >%{_datadir}/%{name}/
# Enable generated Python dependencies on EL8 %{?python_enable_dependency_generator} Name: python-apt Version: 2.3.0 Release: 1%{?dist} Summary: Python bindings for APT License: GPLv2+ URL: https://tracker.debian.org/pkg/python-apt Source0: https://salsa.debian.org/apt-team/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz # Requires Debian's apt BuildRequires: apt-mga >= 2.0.0 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: apt-mga-devel BuildRequires: python3dist(python-distutils-extra) BuildRequires: python3dist(setuptools) BuildRequires: libzlib-devel %description python-apt is a wrapper to use features of APT from Python. %package -n python3-apt Summary: Python 3 bindings for APT # Without dpkg installed, it crashes Requires: dpkg # Needed for source format support Recommends: dpkg-dev %description -n python3-apt The apt_pkg Python 3 interface will provide full access to the internal libapt-pkg structures allowing Python 3 programs to easily perform a variety of functions, such as: - Access to the APT configuration system - Access to the APT package information database - Parsing of Debian package control files, and other files with a similar structure The included 'aptsources' Python interface provides an abstraction of the sources.list configuration on the repository and the distro level. %prep %autosetup -p1 %build # Deal with python-apt not having proper default version set by using debver hack export DEBVER="%{version}" %py3_build %install # Deal with python-apt not having proper default version set by using debver hack export DEBVER="%{version}" %py3_install # Get rid of unused garbage rm -rf %{buildroot}%{python3_sitelib}/apt_*-stubs* %files -n python3-apt %license COPYING.GPL %doc README.md %{python3_sitearch}/apt/ %{python3_sitearch}/apt_* %{python3_sitearch}/aptsources/ %{python3_sitearch}/python_apt-%{version}-py%{python3_version}.egg-info/ %{_datadir}/%{name}/
View Attachment As Raw
Actions:
View
Attachments on
bug 32126
: 13926