1d68f95
%{!?gitrev: %global gitrev 90c1b49}
1d68f95
%{!?dnf_version: %global dnf_version 0.6.3}
40ddc89
40ddc89
Name:		dnf-plugins-extras
1d68f95
Version:	0.0.4
992209e
Release:	1%{?dist}
40ddc89
Summary:	Extras Plugins for DNF
40ddc89
Group:		System Environment/Base
40ddc89
License:	GPLv2+
40ddc89
URL:		https://github.com/rpm-software-management/dnf-plugins-extras
40ddc89
40ddc89
# source archive is created by running package/archive from a git checkout
40ddc89
Source0:	dnf-plugins-extras-%{gitrev}.tar.xz
40ddc89
40ddc89
BuildArch:	noarch
40ddc89
BuildRequires:	cmake
1d68f95
BuildRequires:	dnf >= %{dnf_version}
40ddc89
BuildRequires:	gettext
b5e8cad
BuildRequires:	python-nose
40ddc89
BuildRequires:	python-sphinx
40ddc89
BuildRequires:	python2-devel
992209e
b5e8cad
Requires:	%{name}-local
b5e8cad
Requires:	%{name}-repoclosure
b5e8cad
Requires:	%{name}-repograph
992209e
Requires:	%{name}-repomanage
40ddc89
Requires:	%{name}-snapper
992209e
Requires:	%{name}-tracer
40ddc89
40ddc89
%description
992209e
Extras Plugins for DNF. This package enhance DNF with repomanage, snapper and
992209e
tracer plugins.
40ddc89
40ddc89
%package -n python3-dnf-plugins-extras
40ddc89
Summary:	Extras Plugins for DNF
40ddc89
Group:		System Environment/Base
40ddc89
BuildRequires:	python3-devel
1d68f95
BuildRequires:	python3-dnf >= %{dnf_version}
b5e8cad
BuildRequires:	python3-nose
40ddc89
BuildRequires:	python3-sphinx
992209e
b5e8cad
Requires:	python3-dnf-plugins-extras-local
b5e8cad
Requires:	python3-dnf-plugins-extras-repoclosure
b5e8cad
Requires:	python3-dnf-plugins-extras-repograph
992209e
Requires:	python3-dnf-plugins-extras-repomanage
1d68f95
%if 0%{?fedora} > 21
992209e
Requires:	python3-dnf-plugins-extras-rpmconf
1d68f95
%endif
40ddc89
Requires:	python3-dnf-plugins-extras-snapper
992209e
Requires:	python3-dnf-plugins-extras-tracer
40ddc89
40ddc89
%description -n python3-dnf-plugins-extras
992209e
Extras Plugins for DNF, Python 3 version. This package enhance DNF with
992209e
repomanage, rpmconf, snapper and tracer plugins.
40ddc89
40ddc89
%package common
40ddc89
Summary:	Common files for Extras Plugins for DNF
1d68f95
Requires:	dnf >= %{dnf_version}
40ddc89
40ddc89
%description common
40ddc89
Common files for Extras Plugins.
40ddc89
40ddc89
%package -n python3-dnf-plugins-extras-common
40ddc89
Summary:	Common files for Extras Plugins for DNF
1d68f95
Requires:	python3-dnf >= %{dnf_version}
40ddc89
40ddc89
%description -n python3-dnf-plugins-extras-common
40ddc89
Common files for Extras Plugins for DNF, Python 3 version.
40ddc89
b5e8cad
%package local
b5e8cad
Summary:	Local Plugin for DNF
b5e8cad
Requires:	%{name}-common = %{version}-%{release}
b5e8cad
b5e8cad
%description local
b5e8cad
Local Plugin for DNF. Automatically copy all downloaded packages to a
b5e8cad
repository on the local filesystem and generating repo metadata.
b5e8cad
b5e8cad
%package -n python3-dnf-plugins-extras-local
b5e8cad
Summary:	Local Plugin for DNF
b5e8cad
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
b5e8cad
b5e8cad
%description -n python3-dnf-plugins-extras-local
b5e8cad
Local Plugin for DNF, Python 3 version. Automatically copy all downloaded
b5e8cad
packages to a repository on the local filesystem and generating repo metadata.
b5e8cad
b5e8cad
%package repoclosure
b5e8cad
Summary:	RepoClosure Plugin for DNF
b5e8cad
Requires:	%{name}-common = %{version}-%{release}
b5e8cad
b5e8cad
%description repoclosure
b5e8cad
RepoClosure Plugin for DNF. Display a list of unresolved dependencies for
b5e8cad
repositories.
b5e8cad
b5e8cad
%package -n python3-dnf-plugins-extras-repoclosure
b5e8cad
Summary:	RepoClosure Plugin for DNF
b5e8cad
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
b5e8cad
b5e8cad
%description -n python3-dnf-plugins-extras-repoclosure
b5e8cad
RepoClosure Plugin for DNF, Python 3 version. Display a list of unresolved
b5e8cad
dependencies for repositories.
b5e8cad
b5e8cad
%package repograph
b5e8cad
Summary:	RepoGraph Plugin for DNF
b5e8cad
Requires:	%{name}-common = %{version}-%{release}
b5e8cad
b5e8cad
%description repograph
b5e8cad
RepoGraph Plugin for DNF. Output a full package dependency graph in dot format.
b5e8cad
b5e8cad
%package -n python3-dnf-plugins-extras-repograph
b5e8cad
Summary:	RepoGraph Plugin for DNF
b5e8cad
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
b5e8cad
b5e8cad
%description -n python3-dnf-plugins-extras-repograph
b5e8cad
RepoGraph Plugin for DNF, Python 3 version. Output a full package dependency
b5e8cad
graph in dot format.
b5e8cad
992209e
%package repomanage
992209e
Summary:	RepoManage Plugin for DNF
992209e
Requires:	%{name}-common = %{version}-%{release}
992209e
992209e
%description repomanage
992209e
RepoManage Plugin for DNF. Manage a directory of rpm packages.
992209e
992209e
%package -n python3-dnf-plugins-extras-repomanage
992209e
Summary:	RepoManage Plugin for DNF
992209e
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
992209e
992209e
%description -n python3-dnf-plugins-extras-repomanage
992209e
RepoManage Plugin for DNF, Python 3 version. Manage a directory of rpm packages.
992209e
b5e8cad
%if 0%{?fedora} > 21
992209e
%package -n python3-dnf-plugins-extras-rpmconf
992209e
Summary:	RpmConf Plugin for DNF
992209e
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
992209e
Requires:	python3-rpmconf
992209e
992209e
%description -n python3-dnf-plugins-extras-rpmconf
992209e
RpmConf Plugin for DNF, Python 3 version. Handles .rpmnew, .rpmsave every
992209e
transaction.
b5e8cad
%endif
992209e
40ddc89
%package snapper
40ddc89
Summary:	Snapper Plugin for DNF
40ddc89
Requires:	%{name}-common = %{version}-%{release}
40ddc89
Requires:	dbus-python
40ddc89
Requires:	snapper
40ddc89
40ddc89
%description snapper
40ddc89
Snapper Plugin for DNF. Creates snapshot every transaction.
40ddc89
40ddc89
%package -n python3-dnf-plugins-extras-snapper
40ddc89
Summary:	Snapper Plugin for DNF
40ddc89
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
40ddc89
Requires:	python3-dbus
40ddc89
Requires:	snapper
40ddc89
40ddc89
%description -n python3-dnf-plugins-extras-snapper
40ddc89
Snapper Plugin for DNF, Python 3 version. Creates snapshot every transaction.
40ddc89
992209e
%package tracer
992209e
Summary:	Tracer Plugin for DNF
992209e
Requires:	%{name}-common = %{version}-%{release}
992209e
Requires:	tracer
b5e8cad
Obsoletes:	dnf-plugin-tracer < 0.5.6-2
b5e8cad
Provides:	dnf-plugin-tracer = 1:%{version}-%{release}
992209e
992209e
%description tracer
992209e
Tracer Plugin for DNF. Finds outdated running applications in your system
992209e
every transaction.
992209e
992209e
%package -n python3-dnf-plugins-extras-tracer
992209e
Summary:	Tracer Plugin for DNF
992209e
Requires:	python3-dnf-plugins-extras-common = %{version}-%{release}
992209e
Requires:	tracer
992209e
992209e
%description -n python3-dnf-plugins-extras-tracer
992209e
Tracer Plugin for DNF, Python 3 version. Finds outdated running applications in
992209e
your system every transaction.
992209e
40ddc89
%prep
40ddc89
%setup -q -n dnf-plugins-extras
40ddc89
rm -rf py3
40ddc89
mkdir ../py3
40ddc89
cp -a . ../py3/
40ddc89
mv ../py3 ./
40ddc89
40ddc89
%build
40ddc89
%cmake .
40ddc89
make %{?_smp_mflags}
40ddc89
make doc-man
40ddc89
pushd py3
40ddc89
%cmake -DPYTHON_DESIRED:str=3 .
40ddc89
make %{?_smp_mflags}
40ddc89
make doc-man
40ddc89
popd
40ddc89
40ddc89
%install
40ddc89
%make_install
40ddc89
%find_lang %{name}
40ddc89
pushd py3
40ddc89
%make_install
40ddc89
popd
40ddc89
b5e8cad
%if 0%{?fedora} <= 21
b5e8cad
rm -f %{buildroot}%{python3_sitelib}/dnf-plugins/rpm_conf.*
b5e8cad
rm -f %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/rpm_conf.*
1d68f95
rm -f %{buildroot}%{_mandir}/man8/dnf.plugin.rpmconf.*
b5e8cad
%endif
b5e8cad
40ddc89
%check
b5e8cad
PYTHONPATH=./plugins /usr/bin/nosetests-2.* -s tests/
b5e8cad
PYTHONPATH=./plugins /usr/bin/nosetests-3.* -s tests/
40ddc89
40ddc89
%files
40ddc89
# No files, metapackage
40ddc89
40ddc89
%files -n python3-dnf-plugins-extras
40ddc89
# No files, metapackage
40ddc89
40ddc89
%files common -f %{name}.lang
40ddc89
%doc AUTHORS COPYING README.rst
40ddc89
%{python_sitelib}/dnfpluginsextras/
40ddc89
40ddc89
%files -n python3-dnf-plugins-extras-common -f %{name}.lang
40ddc89
%doc AUTHORS COPYING README.rst
40ddc89
%{python3_sitelib}/dnfpluginsextras/
40ddc89
%dir %{python3_sitelib}/dnf-plugins/__pycache__/
40ddc89
b5e8cad
%files local
b5e8cad
%config %{_sysconfdir}/dnf/plugins/local.conf
b5e8cad
%{python_sitelib}/dnf-plugins/local.*
1d68f95
%{_mandir}/man8/dnf.plugin.local.*
b5e8cad
b5e8cad
%files -n python3-dnf-plugins-extras-local
b5e8cad
%config %{_sysconfdir}/dnf/plugins/local.conf
b5e8cad
%{python3_sitelib}/dnf-plugins/local.*
b5e8cad
%{python3_sitelib}/dnf-plugins/__pycache__/local.*
1d68f95
%{_mandir}/man8/dnf.plugin.local.*
b5e8cad
b5e8cad
%files repoclosure
b5e8cad
%{python_sitelib}/dnf-plugins/repoclosure.*
1d68f95
%{_mandir}/man8/dnf.plugin.repoclosure.*
b5e8cad
b5e8cad
%files -n python3-dnf-plugins-extras-repoclosure
b5e8cad
%{python3_sitelib}/dnf-plugins/repoclosure.*
b5e8cad
%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
1d68f95
%{_mandir}/man8/dnf.plugin.repoclosure.*
b5e8cad
b5e8cad
%files repograph
b5e8cad
%{python_sitelib}/dnf-plugins/repograph.*
1d68f95
%{_mandir}/man8/dnf.plugin.repograph.*
b5e8cad
b5e8cad
%files -n python3-dnf-plugins-extras-repograph
b5e8cad
%{python3_sitelib}/dnf-plugins/repograph.*
b5e8cad
%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
1d68f95
%{_mandir}/man8/dnf.plugin.repograph.*
b5e8cad
992209e
%files repomanage
992209e
%{python_sitelib}/dnf-plugins/repomanage.*
1d68f95
%{_mandir}/man8/dnf.plugin.repomanage.*
992209e
992209e
%files -n python3-dnf-plugins-extras-repomanage
992209e
%{python3_sitelib}/dnf-plugins/repomanage.*
992209e
%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
1d68f95
%{_mandir}/man8/dnf.plugin.repomanage.*
992209e
b5e8cad
%if 0%{?fedora} > 21
992209e
%files -n python3-dnf-plugins-extras-rpmconf
992209e
%{python3_sitelib}/dnf-plugins/rpm_conf.*
992209e
%{python3_sitelib}/dnf-plugins/__pycache__/rpm_conf.*
1d68f95
%{_mandir}/man8/dnf.plugin.rpmconf.*
b5e8cad
%endif
992209e
40ddc89
%files snapper
40ddc89
%{python_sitelib}/dnf-plugins/snapper.*
1d68f95
%{_mandir}/man8/dnf.plugin.snapper.*
40ddc89
40ddc89
%files -n python3-dnf-plugins-extras-snapper
40ddc89
%{python3_sitelib}/dnf-plugins/snapper.*
40ddc89
%{python3_sitelib}/dnf-plugins/__pycache__/snapper.*
1d68f95
%{_mandir}/man8/dnf.plugin.snapper.*
40ddc89
992209e
%files tracer
992209e
%{python_sitelib}/dnf-plugins/tracer.*
1d68f95
%{_mandir}/man8/dnf.plugin.tracer.*
992209e
992209e
%files -n python3-dnf-plugins-extras-tracer
992209e
%{python3_sitelib}/dnf-plugins/tracer.*
992209e
%{python3_sitelib}/dnf-plugins/__pycache__/tracer.*
1d68f95
%{_mandir}/man8/dnf.plugin.tracer.*
992209e
40ddc89
%changelog
1d68f95
* Fri Feb 13 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.4-1
1d68f95
- packaging: require rpmconf plugin only for f22+ (Igor Gnatenko)
1d68f95
- build: simple script to build test package (Michael Mraka)
1d68f95
- build: more standard way to find out latest commit (Michael Mraka)
1d68f95
- packaging: let gitrev be specified on rpmbuild commandline (Michael Mraka)
1d68f95
- doc: include man pages (Igor Gnatenko)
1d68f95
b5e8cad
* Thu Jan 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.3-1
b5e8cad
- po: update translations (Igor Gnatenko)
b5e8cad
- packaging: include rpmconf plugin only for F22+ (Igor Gnatenko)
b5e8cad
- trivial: drop note about bug (Igor Gnatenko)
b5e8cad
- local: prefer verbose option on quiet (Igor Gnatenko)
b5e8cad
- local: simplidy parsing code (Igor Gnatenko)
b5e8cad
- local: fix output from spawning createrepo (Igor Gnatenko)
b5e8cad
- doc: improve documentation for local plugin (Igor Gnatenko)
b5e8cad
- repoclosure: store requirements as is (Igor Gnatenko)
b5e8cad
- repoclosure: optimize performance and memory usage (Igor Gnatenko)
b5e8cad
- build: distribute forgotten files (Igor Gnatenko)
b5e8cad
- po: update translations (Igor Gnatenko)
b5e8cad
- plugins: add repoclosure plugin (Igor Gnatenko)
b5e8cad
- packaging: fix files for common subpkg after one of merges (Igor Gnatenko)
b5e8cad
- local: use createrepo_c instead of createrepo (Igor Gnatenko)
b5e8cad
- plugins: add local plugin (RhBug:991014) (Igor Gnatenko)
b5e8cad
- repograph: set decimal places to 12 for colors (Igor Gnatenko)
b5e8cad
- tests: fix indentation in repograph (Igor Gnatenko)
b5e8cad
- plugins: add repograph plugin (Igor Gnatenko)
b5e8cad
- repomanage: replace dnfpluginscore with dnfpluginsextras (Igor Gnatenko)
b5e8cad
- plugins: fix typo in if/else (Igor Gnatenko)
b5e8cad
- doc: add note that --new by default for repomanage (Igor Gnatenko)
b5e8cad
- snapper: don't make snapshots if user removing snapper (RhBug:1177631) (Igor Gnatenko)
b5e8cad
- tests: add tests for repomanage (Igor Gnatenko)
b5e8cad
- tests: add initial framework (Igor Gnatenko)
b5e8cad
- repomanage: use native pkg.location without path join (Igor Gnatenko)
b5e8cad
- packaging: obsolete and provide dnf-plugin-tracer correctly (Igor Gnatenko)
b5e8cad
992209e
* Sun Jan 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.2-1
992209e
- po: update translations (Igor Gnatenko)
992209e
- Revert "rename rpm_conf to rpmconf" (Igor Gnatenko)
992209e
- po: update translations (Igor Gnatenko)
992209e
- packaging: update descriptions with tracer plugin (Igor Gnatenko)
992209e
- plugins: add repomanage plugin (RhBug:1048541) (Igor Gnatenko)
992209e
- Don't run tracer if --installroot is set; Fix FrostyX/tracer#15 (Jakub Kadlčík)
992209e
- po: update translations (Igor Gnatenko)
992209e
- packaging: obsolete dnf-plugin-tracer by dnf-plugins-extras-tracer (Igor Gnatenko)
992209e
- doc: include rpmconf to index (Igor Gnatenko)
992209e
- packaging: add tracer plugin to distribute (Igor Gnatenko)
992209e
- plugins: tracer plugin (Jakub Kadlčík)
992209e
- packaging: include rpmconf as Requires for main package (Igor Gnatenko)
992209e
- rpmconf: fix super-init-not-called (Igor Gnatenko)
992209e
- po: update translations (Igor Gnatenko)
992209e
- packaging: archive script the same as in dnf (Igor Gnatenko)
992209e
- rename rpm_conf to rpmconf (Igor Gnatenko)
992209e
- Add rpmconf plugin (Igor Gnatenko)
992209e
- snapper: set description snapshot as command line (Igor Gnatenko)
992209e
- packaging: fix requires and email (Igor Gnatenko)
992209e
- snapper: change log level for debug stage to debug (Igor Gnatenko)
992209e
- snapper: don't do any with snapper config (Igor Gnatenko)
992209e
- packaging: split into subpackages (Igor Gnatenko)
992209e
- packaging: handle all python files (Igor Gnatenko)
992209e
- transifex update (Igor Gnatenko)
40ddc89
40ddc89
* Wed Dec 17 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.1-2
40ddc89
- Fix Requires for py3 dbus
40ddc89
- Fix email address in changelog
40ddc89
40ddc89
* Fri Dec 12 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.1-1
40ddc89
- The initial package version.