diff --git a/saltbundlepy-apt.changes b/saltbundlepy-apt-debian11-12.changes similarity index 68% rename from saltbundlepy-apt.changes rename to saltbundlepy-apt-debian11-12.changes index 5c17585..0d4e9e9 100644 --- a/saltbundlepy-apt.changes +++ b/saltbundlepy-apt-debian11-12.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 20 12:34:13 UTC 2025 - Michael Calmer + +- rename spec to match directory name + ------------------------------------------------------------------- Wed Apr 6 09:18:45 UTC 2022 - Victor Zhestkov diff --git a/saltbundlepy-apt.spec b/saltbundlepy-apt-debian11-12.spec similarity index 76% rename from saltbundlepy-apt.spec rename to saltbundlepy-apt-debian11-12.spec index f633cdc..94578b9 100644 --- a/saltbundlepy-apt.spec +++ b/saltbundlepy-apt-debian11-12.spec @@ -18,8 +18,9 @@ %{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}} %define pythons saltbundlepy +%define realname saltbundlepy-apt -Name: saltbundlepy-apt +Name: saltbundlepy-apt-debian11-12 Version: 2.2.1 Release: 0 Summary: Python interface to libapt-pkg @@ -32,13 +33,11 @@ BuildRequires: %{saltbundlepy_module setuptools-scm} BuildRequires: fdupes BuildRequires: libapt-pkg-dev BuildRequires: saltbundlepy-rpm-macros -Requires: saltbundlepy-apt-common BuildRoot: %{_tmppath}/%{name}-%{version}-build # Only build for Debian 11 and 12 %if ! (0%{?debian} && (0%{?debian} == 11 || 0%{?debian} == 12)) ExclusiveArch: do_not_build %endif -%python_subpackages %description Python interface to libapt-pkg @@ -54,13 +53,36 @@ variety of functions, such as: The included 'aptsources' Python interface provides an abstraction of the sources.list configuration on the repository and the distro level. -%package common +%package -n %{realname} +Summary: Python interface to libapt-pkg +License: GPL-2.0-only +Group: Development/Libraries/Python +Requires: saltbundlepy-apt-common +%python_subpackages + + +%description -n %{realname} +Python interface to libapt-pkg +The apt_pkg Python interface will provide full access to the internal +libapt-pkg structures allowing Python 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. + + +%package -n %{realname}-common Summary: Python interface to libapt-pkg (locales) Group: Development/Libraries/Python BuildArch: noarch Provides: %{saltbundlepy_module apt-common} -%description common +%description -n %{realname}-common Python interface to libapt-pkg (locales) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a @@ -80,12 +102,12 @@ DEBVER="%{version}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%files %{python_files} +%files -n %{realname} %license COPYING.GPL %doc README.md AUTHORS %{python_sitelib} -%files common +%files -n %{realname}-common %license COPYING.GPL %doc README.md AUTHORS %{_datadir}/python-apt/templates