diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec index 11d02b7..1105b1f 100644 --- a/dnf-plugins-core.spec +++ b/dnf-plugins-core.spec @@ -1,52 +1,57 @@ %{!?gitrev: %global gitrev 351e094} %{?!dnf_version: %global dnf_version 0.6.4-2} -Name: python-dnf-plugins-core +Name: dnf-plugins-core Version: 0.1.5 Release: 2%{?dist} Summary: Core Plugins for DNF Group: System Environment/Base License: GPLv2+ URL: https://github.com/rpm-software-management/dnf-plugins-core - # source archive is created by running package/archive from a git checkout Source0: dnf-plugins-core-%{gitrev}.tar.xz - BuildArch: noarch BuildRequires: cmake -BuildRequires: python-dnf >= %{dnf_version} BuildRequires: gettext -BuildRequires: pykickstart -BuildRequires: python-nose -BuildRequires: python-sphinx -BuildRequires: python2-devel -Requires: python-dnf >= %{dnf_version} -Requires: pykickstart -Requires: python-requests -%if 0%{?fedora} < 23 -Provides: dnf-plugins-core = %{version}-%{release} -Obsoletes: dnf-plugins-core <= 0.1.4-1 +%if 0%{?fedora} >= 23 +Requires: python3-dnf-plugins-core = %{version}-%{release} +%else +Requires: python-dnf-plugins-core = %{version}-%{release} %endif - %description +Core Plugins for DNF. This package enhance DNF with builddep, copr, +debuginfo-install, download, needs-restarting, repoquery and +reposync commands. Additionally provides generate_completion_cache, noroot and +protected_packages passive plugins. + +%package -n python-dnf-plugins-core +Summary: Core Plugins for DNF +Group: System Environment/Base +BuildRequires: python-dnf >= %{dnf_version} +BuildRequires: pykickstart +BuildRequires: python-nose +BuildRequires: python-sphinx +BuildRequires: python2-devel +Requires: python-dnf >= %{dnf_version} +Requires: pykickstart +Requires: python-requests +Obsoletes: dnf-plugins-core <= 0.1.4-1 +%description -n python-dnf-plugins-core Core Plugins for DNF, Python 2 interface. This package enhance DNF with builddep, copr, debuginfo-install, download, kickstart, needs-restarting, repoquery and reposync commands. Additionally provides generate_completion_cache, noroot and protected_packages passive plugins. %package -n python3-dnf-plugins-core -Summary: Core Plugins for DNF -Group: System Environment/Base -BuildRequires: python3-devel -BuildRequires: python3-dnf >= %{dnf_version} -BuildRequires: python3-nose -BuildRequires: python3-sphinx -Requires: python3-dnf >= %{dnf_version} -%if 0%{?fedora} >= 23 -Provides: dnf-plugins-core = %{version}-%{release} -Obsoletes: dnf-plugins-core <= 0.1.4-1 -%endif - +Summary: Core Plugins for DNF +Group: System Environment/Base +BuildRequires: python3-devel +BuildRequires: python3-dnf >= %{dnf_version} +BuildRequires: python3-nose +BuildRequires: python3-sphinx +Requires: python3-requests +Requires: python3-dnf >= %{dnf_version} +Obsoletes: dnf-plugins-core <= 0.1.4-1 %description -n python3-dnf-plugins-core Core Plugins for DNF, Python 3 interface. This package enhance DNF with builddep, copr, debuginfo-install, download, needs-restarting, repoquery and @@ -81,15 +86,18 @@ popd PYTHONPATH=./plugins /usr/bin/nosetests-2.* -s tests/ PYTHONPATH=./plugins /usr/bin/nosetests-3.* -s tests/ -%files -f dnf-plugins-core.lang +%files -f %{name}.lang +%doc AUTHORS COPYING README.rst +%{_mandir}/man8/dnf.plugin.* + +%files -n python-dnf-plugins-core %doc AUTHORS COPYING README.rst %dir %{_sysconfdir}/dnf/protected.d %ghost %{_var}/cache/dnf/packages.db %{python_sitelib}/dnf-plugins/* %{python_sitelib}/dnfpluginscore/ -%{_mandir}/man8/dnf.plugin.* -%files -n python3-dnf-plugins-core -f dnf-plugins-core.lang +%files -n python3-dnf-plugins-core %doc AUTHORS COPYING README.rst %dir %{_sysconfdir}/dnf/protected.d %ghost %{_var}/cache/dnf/packages.db @@ -98,12 +106,11 @@ PYTHONPATH=./plugins /usr/bin/nosetests-3.* -s tests/ %{python3_sitelib}/dnf-plugins/* %{python3_sitelib}/dnf-plugins/__pycache__/* %{python3_sitelib}/dnfpluginscore/ -%{_mandir}/man8/dnf.plugin.* %changelog * Mon Feb 23 2015 Jan Silhan - 0.1.5-2 -- dnf-plugins-core is named python-dnf-plugins-core +- Split into python/python3 subpackages * Thu Feb 5 2015 Jan Silhan - 0.1.5-1 - updated package url (Michael Mraka)