%define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_files COPYING Summary: Work out BuildRequires for rpmbuild automatically Name: auto-buildrequires Version: 1.2 Release: 6%{?dist} License: GPLv2+ URL: http://people.redhat.com/~rjones/auto-buildrequires/ Source0: http://people.redhat.com/~rjones/auto-buildrequires/files/%{name}-%{version}.tar.gz BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl-podlators Requires: rpm-build Requires: perl-String-ShellQuote %description Auto-BuildRequires is a simple set of scripts for automatically suggesting BuildRequires lines for programs. %prep %setup -q %build %configure %make_build %install %make_install %files %if 0%{?doc_license} %license %{license_files} %else %doc %{license_files} %endif %doc README %{_bindir}/auto-br %{_bindir}/auto-br-rpmbuild %{_libexecdir}/auto-br-analyze.pl %{_libexecdir}/%{name}-preload.so %{_mandir}/man1/autobuildrequires.1* %{_mandir}/man1/auto-br.1* %{_mandir}/man1/auto-br-rpmbuild.1* %changelog * Thu Nov 16 2017 Tomasz Tomasik - 1.2-6 - SPEC file cleanups - Use license macro - Rebuilt for EL7 * Wed Aug 02 2017 Fedora Release Engineering - 1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 13 2015 Richard W.M. Jones - 1.2-1 - New upstream version 1.2. - Add man pages. - Make explicit the BuildRequires on perl, pod2man. - Modernize the spec file. * Wed Jun 17 2015 Fedora Release Engineering - 1.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Aug 19 2014 Richard W.M. Jones - 1.1-10 - Fix URLs (thanks David Woodhouse). * Fri Aug 15 2014 Fedora Release Engineering - 1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.1-6 - Perl 5.18 rebuild * Wed Feb 13 2013 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 9 2009 Richard W.M. Jones - 1.1-1 - New upstream version 1.1. - Fixes bug when LANG != C (RHBZ#545867). * Fri Jul 24 2009 Fedora Release Engineering - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Mar 9 2009 Richard W.M. Jones - 1.0-3 - New upstream version 1.0: . Fixes 32-bit platforms. . Add a missing runtime requires for a Perl library. - High release number is so that we are larger than the release number in the upstream specfile. * Fri Mar 6 2009 Orcan Ogetbil - 0.9-2 - Prepared the SPEC file for Review Request submission * Fri Mar 6 2009 Richard Jones - 0.9-1 - Imported to git and rebuilt. * Thu Nov 6 2008 Richard Jones - 0.1-2 - Initial build.