keep dnf-plugins-core name

This commit is contained in:
Jan Silhan 2015-02-23 22:14:42 +01:00
parent ceec256fed
commit 709cd41368

View File

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