File radare2-acr.spec of Package radare2-acr

#
# spec file for package radare2-acr
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define pkgname acr

Name:           radare2-%{pkgname}
Version:        2.1.4
Release:        0
Summary:        Auto Conf Replacement
License:        GPL-2.0
URL:            https://github.com/radareorg/%{pkgname}
Source0:        https://github.com/radareorg/%{pkgname}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
ACR tries to replace autoconf functionality generating a full-compatible
'configure' script (runtime flags). But using shell-script instead of
m4. This means that ACR is faster, smaller and easy to use.

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build

sh autogen.sh
./configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}

%install
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/%{pkgname} %{buildroot}%{_docdir}/%{name} 

%files
%doc README.md SUPPORT.md
%license LICENSE
%{_bindir}/*
%dir %{_datadir}/%{pkgname}
%{_datadir}/%{pkgname}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_docdir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by