initial import
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
a867e365a6
commit
2345fbcd5c
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/microdnf-1.tar.gz
|
||||
59
microdnf.spec
Normal file
59
microdnf.spec
Normal file
@ -0,0 +1,59 @@
|
||||
%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: 1
|
||||
Release: 1%{?dist}
|
||||
Summary: Micro DNF
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://github.com/rpm-software-management/microdnf
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
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.15.0
|
||||
BuildRequires: pkgconfig(libdnf) >= 0.7.0
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%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
|
||||
* Mon Dec 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1-1
|
||||
- Initial package
|
||||
Loading…
Reference in New Issue
Block a user