Blame SPECS/microdnf.spec

5c5e8c
%if 0%{?rhel} && 0%{?rhel} <= 7
5c5e8c
%global buildsys cmake
5c5e8c
%global buildsys_req cmake >= 2.8.5
5c5e8c
%else
5c5e8c
%global buildsys meson
5c5e8c
%global buildsys_req meson >= 0.36.0
5c5e8c
%endif
5c5e8c
5c5e8c
Name:           microdnf
5c5e8c
Version:        2
5c5e8c
Release:        6%{?dist}
5c5e8c
Summary:        The microdnf package contains a limited functionality package manager written in C
5c5e8c
5c5e8c
License:        GPLv3+
5c5e8c
URL:            https://github.com/rpm-software-management/microdnf
5c5e8c
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
5c5e8c
Patch0001:      0001-print-downloading-packages-only-once.patch
5c5e8c
Patch0002:      0002-do-not-fail-on-empty-transactions.patch
5c5e8c
Patch0003:      35.patch
5c5e8c
5c5e8c
BuildRequires:  gcc
5c5e8c
BuildRequires:  %{buildsys_req}
5c5e8c
BuildRequires:  pkgconfig(glib-2.0) >= 2.44.0
5c5e8c
BuildRequires:  pkgconfig(gobject-2.0) >= 2.44.0
5c5e8c
BuildRequires:  pkgconfig(libpeas-1.0) >= 1.20.0
5c5e8c
BuildRequires:  pkgconfig(libdnf) >= 0.22.0
5c5e8c
5c5e8c
%description
5c5e8c
%{summary}. Supports basic commands like install, update and remove.
5c5e8c
5c5e8c
%prep
5c5e8c
%autosetup -p1
5c5e8c
5c5e8c
%if %{buildsys} == "cmake"
5c5e8c
%build
5c5e8c
mkdir %{_target_platform}
5c5e8c
pushd %{_target_platform}
5c5e8c
  %cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
5c5e8c
popd
5c5e8c
%make_build -C %{_target_platform}
5c5e8c
5c5e8c
%install
5c5e8c
%make_install -C %{_target_platform}
5c5e8c
%endif
5c5e8c
5c5e8c
%if %{buildsys} == "meson"
5c5e8c
%build
5c5e8c
%meson
5c5e8c
%meson_build
5c5e8c
5c5e8c
%install
5c5e8c
%meson_install
5c5e8c
%endif
5c5e8c
5c5e8c
%files
5c5e8c
%license COPYING
5c5e8c
%doc README.md
5c5e8c
%{_bindir}/%{name}
5c5e8c
5c5e8c
%changelog
5c5e8c
* Thu Feb 28 2019 Daniel Mach <dmach@redhat.com> - 2-6
5c5e8c
- Rebuild against libdnf >= 0.22.0 with bumped soname
5c5e8c
- Stop calling dnf_context_set_yumdb_enabled() - it was dropped from libdnf
5c5e8c
5c5e8c
* Fri May 18 2018 Daniel Mach <dmach@redhat.com> - 2-5
5c5e8c
- Rebuild on additional architectures
5c5e8c
5c5e8c
* Thu Mar 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 2-4
5c5e8c
- Unbundle libpeas
5c5e8c
5c5e8c
* Mon Mar 6 2017 Jan Silhan <jsilhan@redhat.com> - 2-3
5c5e8c
- do not fail on empty transactions + extended summary
5c5e8c
5c5e8c
* Mon Feb 20 2017 Jan Silhan <jsilhan@redhat.com> - 2-2
5c5e8c
- print downloading packages only once
5c5e8c
5c5e8c
* Mon Dec 12 2016 Jan Silhan <jsilhan@redhat.com> - 2-1
5c5e8c
- Update to 2
5c5e8c
5c5e8c
* Mon Dec 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1-1
5c5e8c
- Initial package