72 lines
1.6 KiB
RPMSpec
72 lines
1.6 KiB
RPMSpec
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
%global buildsys cmake
|
|
%global buildsys_req cmake >= 2.8.5
|
|
%else
|
|
%global buildsys meson
|
|
%global buildsys_req meson >= 0.36.0
|
|
%endif
|
|
|
|
Name: microdnf
|
|
Version: 2
|
|
Release: 3%{?dist}
|
|
Summary: Micro DNF
|
|
|
|
License: GPLv3+
|
|
URL: https://github.com/rpm-software-management/microdnf
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0001: 0001-print-downloading-packages-only-once.patch
|
|
Patch0002: 0002-do-not-fail-on-empty-transactions.patch
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: %{buildsys_req}
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.44.0
|
|
BuildRequires: pkgconfig(libpeas-1.0) >= 1.20.0
|
|
BuildRequires: pkgconfig(libdnf) >= 0.7.0
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%if %{buildsys} == "cmake"
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
popd
|
|
%make_build -C %{_target_platform}
|
|
|
|
%install
|
|
%make_install -C %{_target_platform}
|
|
%endif
|
|
|
|
%if %{buildsys} == "meson"
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
%endif
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|
|
* Fri May 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 2-3
|
|
- Apply few patches from upstream
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Thu Feb 02 2017 Igor Gnatenko <ignatenko@redhat.com> - 2-1
|
|
- Update to 2
|
|
|
|
* Mon Dec 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1-1
|
|
- Initial package
|