Blame SPECS/microdnf.spec

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