%global _target x86_64-unknown-redox %global target %{_target} %global debug_package %{nil} %global commit0 a9d73bb6dacfbbdc826fea178e3a47bf7a4154b1 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) # Name of the downloaded tarball from GitHub. It matches the name of the top # level directory inside. %global tarball redox-os-binutils-gdb-%{shortcommit0} Name: %{target}-binutils Version: git20170817%{shortcommit0} Release: 2%{?dist} Summary: binutils with Redox support License: GPLv2 URL: https://github.com/redox-os/binutils-gdb Source0: https://api.github.com/repos/redox-os/binutils-gdb/tarball/%{shortcommit0}#/%{tarball}.tar.gz BuildRequires: x86_64-unknown-redox-automake BuildRequires: texinfo BuildRequires: bison BuildRequires: flex %description A fork of binutils from git://sourceware.org/git/binutils-gdb.git with Redox support %prep %autosetup -n %{tarball} %build ./configure --build=%{_host} --host=%{_host} --target=%{target} --prefix=/usr --with-sysroot=/usr/%{target} \ --disable-gdb --disable-nls --disable-werror %make_build %install %make_install rm -rf %{buildroot}/%{_infodir} %files %{_bindir}/* %{_mandir}/* %{_usr}/%{target}/* %license %doc %changelog * Sun Aug 20 2017 Agoston Szepessy - git20170817a9d73bb-2 - Get rid of infodir * Tue Aug 15 2017 Agoston Szepessy - git20170817a9d73bb-1 - Initial spec file