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