cyberpear / rpms / dnf

Forked from rpms/dnf 4 years ago
Clone
Ales Kozumplik 6afd8c4
%global gitrev cfa9c14
Ales Kozumplik 86cc0f1
%global hawkey_version 0.4.11
Ales Kozumplik 5327059
%global librepo_version 1.4.0
Ales Kozumplik 8172d0a
%global libcomps_version 0.1.4
Ales Kozumplik 5b0a3a7
Ales Kozumplik 74edd96
%global confdir %{_sysconfdir}/dnf
Ales Kozumplik 74edd96
Ales Kozumplik 74edd96
Name:		dnf
Ales Kozumplik fa8936c
Version:	0.4.17
Ales Kozumplik 6afd8c4
Release:	1%{?dist}
Ales Kozumplik 74edd96
Summary:	Package manager forked from Yum, using libsolv as a dependency resolver
Ales Kozumplik 74edd96
Group:		System Environment/Base
Ales Kozumplik 74edd96
# For a breakdown of the licensing, see PACKAGE-LICENSING
Ales Kozumplik 74edd96
License:	GPLv2+ and GPLv2 and GPL
Ales Kozumplik 74edd96
URL:		https://github.com/akozumpl/dnf
Ales Kozumplik 74edd96
Source0:	http://akozumpl.fedorapeople.org/dnf-%{gitrev}.tar.xz
Ales Kozumplik 74edd96
BuildArch:	noarch
Ales Kozumplik 74edd96
BuildRequires:	cmake
Ales Kozumplik 74edd96
BuildRequires:	python2
Ales Kozumplik 0fb197a
BuildRequires:	python-bugzilla
Ales Kozumplik ac33cab
BuildRequires:	python-hawkey >= %{hawkey_version}
Ales Kozumplik a663c53
BuildRequires:	python-iniparse
Ales Kozumplik ac33cab
BuildRequires:	python-libcomps >= %{libcomps_version}
Ales Kozumplik ac33cab
BuildRequires:	python-librepo >= %{librepo_version}
Ales Kozumplik 8f55c62
BuildRequires:  python-nose
Ales Kozumplik 8f55c62
BuildRequires:  python-sphinx
Ales Kozumplik 8f55c62
BuildRequires:  rpm-python
Ales Kozumplik b5e4047
BuildRequires:  systemd
Ales Kozumplik 0b5dc30
Requires:	deltarpm
Ales Kozumplik 9dfef7f
Requires:	libreport-filesystem
Ales Kozumplik ac33cab
Requires:	python-hawkey >= %{hawkey_version}
Ales Kozumplik 5b0a3a7
Requires:	python-iniparse
Ales Kozumplik ac33cab
Requires:	python-libcomps >= %{libcomps_version}
Ales Kozumplik ac33cab
Requires:	python-librepo >= %{librepo_version}
Ales Kozumplik 5b0a3a7
Requires:	rpm-python
Ales Kozumplik b5e4047
Requires(post):		systemd
Ales Kozumplik b5e4047
Requires(preun):	systemd
Ales Kozumplik b5e4047
Requires(postun):	systemd
Ales Kozumplik 74edd96
Ales Kozumplik 74edd96
%description
Ales Kozumplik 74edd96
Package manager forked from Yum, using libsolv as a dependency resolver.
Ales Kozumplik 74edd96
Ales Kozumplik 5327059
%package -n python3-dnf
Ales Kozumplik 5327059
Summary:	Package manager forked from Yum, using libsolv as a dependency resolver
Ales Kozumplik 5327059
Group:		System Environment/Base
Ales Kozumplik 5327059
BuildRequires:	python3
Ales Kozumplik 5327059
BuildRequires:	python3-devel
Ales Kozumplik 5327059
BuildRequires:	python3-hawkey >= %{hawkey_version}
Ales Kozumplik 5327059
BuildRequires:	python3-iniparse
Ales Kozumplik 5327059
BuildRequires:	python3-libcomps >= %{libcomps_version}
Ales Kozumplik 5327059
BuildRequires:	python3-librepo >= %{librepo_version}
Ales Kozumplik 5327059
BuildRequires:	python3-nose
Ales Kozumplik 5327059
BuildRequires:	rpm-python3
Ales Kozumplik 5327059
Requires:	python3-hawkey >= %{hawkey_version}
Ales Kozumplik 5327059
Requires:	python3-iniparse
Ales Kozumplik 5327059
Requires:	python3-libcomps >= %{libcomps_version}
Ales Kozumplik 5327059
Requires:	python3-librepo >= %{librepo_version}
Ales Kozumplik 5327059
Requires:	rpm-python3
Ales Kozumplik 5327059
Ales Kozumplik 5327059
%description -n python3-dnf
Ales Kozumplik 5327059
Package manager forked from Yum, using libsolv as a dependency resolver.
Ales Kozumplik 5327059
Ales Kozumplik 74edd96
%prep
Ales Kozumplik 74edd96
%setup -q -n dnf
Ales Kozumplik 5327059
rm -rf py3
Ales Kozumplik 5327059
mkdir ../py3
Ales Kozumplik 5327059
cp -a . ../py3/
Ales Kozumplik 5327059
mv ../py3 ./
Ales Kozumplik 74edd96
Ales Kozumplik 74edd96
%build
Ales Kozumplik 74edd96
%cmake .
Ales Kozumplik 74edd96
make %{?_smp_mflags}
Ales Kozumplik d6e58c6
make doc-man
Ales Kozumplik 5327059
pushd py3
Ales Kozumplik 5327059
%cmake -DPYTHON_DESIRED:str=3 -DWITH_MAN=0 .
Ales Kozumplik 5327059
make %{?_smp_mflags}
Ales Kozumplik 5327059
popd
Ales Kozumplik 74edd96
Ales Kozumplik 74edd96
%install
Ales Kozumplik 74edd96
rm -rf $RPM_BUILD_ROOT
Ales Kozumplik 74edd96
make install DESTDIR=$RPM_BUILD_ROOT
Ales Kozumplik 5327059
pushd py3
Ales Kozumplik 5327059
make install DESTDIR=$RPM_BUILD_ROOT
Ales Kozumplik 5327059
popd
Ales Kozumplik 74edd96
Ales Kozumplik 31f5920
%global py2pluginpath %{python_sitelib}/dnf-plugins
Ales Kozumplik 31f5920
%global py3pluginpath %{python3_sitelib}/dnf-plugins
Ales Kozumplik 31f5920
mkdir -p $RPM_BUILD_ROOT%{py2pluginpath}
Ales Kozumplik 31f5920
mkdir -p $RPM_BUILD_ROOT%{py3pluginpath}
Ales Kozumplik 31f5920
Ales Kozumplik fed13af
%check
Ales Kozumplik fed13af
make ARGS="-V" test
Ales Kozumplik 5327059
pushd py3
Ales Kozumplik 5327059
make ARGS="-V" test
Ales Kozumplik 5327059
popd
Ales Kozumplik 23ac535
Ales Kozumplik 74edd96
%files
Ales Kozumplik 63fa3ba
%doc AUTHORS README.rst COPYING PACKAGE-LICENSING
Ales Kozumplik 74edd96
%{_bindir}/dnf
Ales Kozumplik 5327059
%dir %{confdir}
Ales Kozumplik 5327059
%config(noreplace) %{confdir}/dnf.conf
Ales Kozumplik 0b5dc30
%config %{_sysconfdir}/bash_completion.d/dnf-completion.bash
Ales Kozumplik 5327059
%{_sysconfdir}/libreport/events.d/collect_dnf.conf
Ales Kozumplik 5327059
%{_mandir}/man8/dnf.8.gz
Ales Kozumplik 5327059
%{_mandir}/man8/dnf.conf.8.gz
Ales Kozumplik 5327059
%{_unitdir}/dnf-makecache.service
Ales Kozumplik 5327059
%{_unitdir}/dnf-makecache.timer
Ales Kozumplik 74edd96
%{python_sitelib}/dnf/
Ales Kozumplik 31f5920
%{py2pluginpath}
Ales Kozumplik 5327059
Ales Kozumplik 5327059
%files -n python3-dnf
Ales Kozumplik 5327059
%doc AUTHORS README.rst COPYING PACKAGE-LICENSING
Ales Kozumplik 5327059
%{_bindir}/dnf
Ales Kozumplik 74edd96
%dir %{confdir}
Ales Kozumplik 74edd96
%config(noreplace) %{confdir}/dnf.conf
Ales Kozumplik 9dfef7f
%{_sysconfdir}/libreport/events.d/collect_dnf.conf
Ales Kozumplik 23ac535
%{_mandir}/man8/dnf.8.gz
Ales Kozumplik 6365287
%{_mandir}/man8/dnf.conf.8.gz
Ales Kozumplik b5e4047
%{_unitdir}/dnf-makecache.service
Ales Kozumplik b5e4047
%{_unitdir}/dnf-makecache.timer
Ales Kozumplik 5327059
%{python3_sitelib}/dnf/
Ales Kozumplik 31f5920
%{py3pluginpath}
Ales Kozumplik b5e4047
Ales Kozumplik b5e4047
%post
Ales Kozumplik b5e4047
%systemd_post dnf-makecache.timer
Ales Kozumplik b5e4047
Ales Kozumplik b5e4047
%preun
Ales Kozumplik 0208809
%systemd_preun dnf-makecache.timer
Ales Kozumplik b5e4047
Ales Kozumplik b5e4047
%postun
Ales Kozumplik b5e4047
%systemd_postun_with_restart dnf-makecache.timer
Ales Kozumplik 74edd96
Ales Kozumplik 74edd96
%changelog
77620b5
Ales Kozumplik 6afd8c4
* Wed Mar 5 2014 Aleš Kozumplík <ales@redhat.com> - 0.4.17-1
Ales Kozumplik 6afd8c4
- doc: in the faq, warn users who might install rawhide packages on stable. (RhBug:1071677) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- cli: better format the download errors report. (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- drpm: properly report applydeltarpm errors. (RhBug:1071501) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- fixed Japanese translatated message (RhBug:1071455) (Jan Silhan)
Ales Kozumplik 6afd8c4
- generated and synchronized translations with transifex (Jan Silhan)
Ales Kozumplik 6afd8c4
- added transifex support to cmake (gettext-export, gettext-update) (Jan Silhan)
Ales Kozumplik 6afd8c4
- api: expose RepoDict.get_matching() and RepoDict.all() (RhBug:1071323) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- api: add Repo.set_progress_bar() to the API. (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- tests: test_cli_progress uses StringIO to check the output. (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- downloads: fix counting past 100% on mirror failures (RhBug:1070598) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- repo: log callback calls to librepo. (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- Add repository-packages remove-or-reinstall command. (Radek Holy)
Ales Kozumplik 6afd8c4
- Support negative filtering by new repository name in Base.reinstall. (Radek Holy)
Ales Kozumplik 6afd8c4
- Support removal N/A packages in Base.reinstall. (Radek Holy)
Ales Kozumplik 6afd8c4
- Add repository-packages remove command. (Radek Holy)
Ales Kozumplik 6afd8c4
- refactor: Reduce amount of code in repository-packages subcommands. (Radek Holy)
Ales Kozumplik 6afd8c4
- Support filtering by repository name in Base.remove. (Radek Holy)
Ales Kozumplik 6afd8c4
- remove: BaseCli.erasePkgs (Radek Holy)
Ales Kozumplik 6afd8c4
- Add repository-packages reinstall command. (Radek Holy)
Ales Kozumplik 6afd8c4
- exceptions: improve empty key handling in DownloadError.__str__(). (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- downloads: fix fatal error message return value from download_payloads() (RhBug:1071518) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- fixes problem with TypeError in Base.read_comps() in python3 (RhBug:1070710) (Tim Lauridsen)
Ales Kozumplik 6afd8c4
- fix read_comps: not throwing exceptions when repo has no repodata (RhBug:1059704) (Jan Silhan)
Ales Kozumplik 6afd8c4
- not decompressing groups when --cacheonly option is set (RhBug:1058224) (Jan Silhan)
Ales Kozumplik 6afd8c4
- added forgotten import (Jan Silhan)
Ales Kozumplik 6afd8c4
- Add repository-packages move-to command. (Radek Holy)
Ales Kozumplik 6afd8c4
- Add repository-packages reinstall-old command. (Radek Holy)
Ales Kozumplik 6afd8c4
- Support filtering by repository name in Base.reinstall. (Radek Holy)
Ales Kozumplik 6afd8c4
- tests: test effects instead of mock calls. (Radek Holy)
Ales Kozumplik 6afd8c4
- Wrap some recently added long lines. (Radek Holy)
Ales Kozumplik 6afd8c4
- remove: BaseCli.reinstallPkgs (Radek Holy)
Ales Kozumplik 6afd8c4
- repos: repos can never expire. (RhBug:1069538) (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- build: rebuild with 9d95442 (updated summaries_cache). (Ales Kozumplik)
Ales Kozumplik 6afd8c4
- doc: update summaries_cache. (Ales Kozumplik)
Ales Kozumplik 6afd8c4
Ales Kozumplik 7be62c4
* Wed Feb 26 2014 Aleš Kozumplík <ales@redhat.com> - 0.4.16-1
Ales Kozumplik 7be62c4
- fix: ensure MDPayload always has a valid progress attribute. (RhBug:1069996) (Ales Kozumplik)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs upgrade-to to a standalone class instead of reusing the UpgradeToCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- remove: BaseCli.updatePkgs (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Remove the reference to updatePkgs from UpgradeSubCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Remove the reference to updatePkgs from UpgradeCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs upgrade to a standalone class instead of reusing the UpgradeCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- remove: BaseCli.installPkgs (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Remove the reference to installPkgs from InstallSubCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Remove the reference to installPkgs from InstallCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs install to a standalone class instead of reusing the InstallCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- Revert "Support filtering by repository name in install_groupie." (Radek Holy)
Ales Kozumplik 7be62c4
- Revert "Support filtering by repository name in Base.select_group." (Radek Holy)
Ales Kozumplik 7be62c4
- Drop group filtering by repository name from installPkgs. (Radek Holy)
Ales Kozumplik 7be62c4
- Drop "repo-pkgs install @Group" support. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move CheckUpdateCommand.check_updates to BaseCli. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs check-update to a standalone class instead of reusing the CheckUpdateCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs list to a standalone class instead of reusing the ListCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- tests: Add tests of repo-pkgs info against the documentation. (Radek Holy)
Ales Kozumplik 7be62c4
- Fix "repo-pkgs info installed" behavior with respect to the documentation. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move MockBase methods to BaseStubMixin. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move repo-pkgs info to a standalone class instead of reusing the InfoCommand. (Radek Holy)
Ales Kozumplik 7be62c4
- refactor: Move InfoCommand._print_packages to BaseCli.output_packages. (Radek Holy)