# define macrosdir to the old location for EPEL 5 and 6. Use the new location everywhere else %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) Name: rpm-build-reb00t Version: 0.1.7 Release: 1.n0i.25%{?dist} Summary: Reb00t RPM Development Tools Group: Development/Tools License: GPL+ or Artistic URL: https://www.reb00t.com/ Source0: https://linux.reb00t.com/conf/macros.reb00t Source1: https://linux.reb00t.com/conf/macros.reb00t.perl Source2: https://linux.reb00t.com/conf/macros.reb00t.ruby Source3: https://linux.reb00t.com/conf/Changes Source4: https://linux.reb00t.com/conf/LICENSE Source5: https://linux.reb00t.com/conf/README BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %{?_with_download_sources:1}0 BuildRequires: gawk curl %endif Requires: rpm-build Requires: coreutils Requires: file Requires: findutils Requires: glibc-common Requires: grep Requires: make Requires: sed %description RPM macros and support files for building Reb00t RPM packages. %package perl Summary: Reb00t Perl RPM Development Tools Group: Development/Tools Requires: %{name} >= %{version} Obsoletes: reb00t-rpmdevtools <= 0.0.10 Provides: reb00t-rpmdevtools = %{version} Requires: perl(ExtUtils::MakeMaker) Requires: perl(Module::Build) %if 0%{?rhel} > 6 || 0%{?fedora} > 0 Requires: perl-macros %endif %if 0%{?fedora} >= 27 Requires: perl-generators %endif %description perl RPM macros and support files for building Reb00t Perl RPM packages. %package ruby Summary: Reb00t Ruby RPM Development Tools Group: Development/Tools Requires: %{name} >= %{version} Requires: ruby >= 1.8.2 Requires: rubygems >= 0.9.1 %description ruby RPM macros and support files for building Reb00t Ruby RPM packages. %prep %setup -q -c -T %if %{?_with_download_sources:1}0 # hehe, nasty crap - *always* download original sources ;-) %{__awk} '/^Source[0-9]+:/ {print $2}' %{_specdir}/%{name}.spec \ | while read url ; do curl -O "$url" ; done %{__cp} * %{_sourcedir} %else %{__cp} %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} . %endif %build %install %{__install} -d -m0755 %{buildroot}%{macrosdir} %{__install} -m0644 macros.* %{buildroot}%{macrosdir} %files %defattr(-,root,root,-) %{macrosdir}/macros.reb00t %doc Changes LICENSE README %files perl %defattr(-,root,root,-) %{macrosdir}/macros.reb00t.perl %files ruby %defattr(-,root,root,-) %{macrosdir}/macros.reb00t.ruby %changelog * Tue Apr 29 2025 Marius FERARU - 0.1.7-1.n0i.26 - perl: drop custom filtering b/c since F41 it triggers shell fork bombs - build for F42 * Tue Oct 29 2024 Marius FERARU - 0.1.6-10.n0i.25 - rebuild for F41 * Thu Apr 25 2024 Marius FERARU - 0.1.6-9.n0i.24 - rebuild for F40 * Mon Dec 04 2023 Marius FERARU - 0.1.6-8.n0i.23 - rebuild for F39 * Tue Jun 06 2023 Marius FERARU - 0.1.6-7.n0i.22 - rebuild for F38 * Tue Nov 15 2022 Marius FERARU - 0.1.6-6.n0i.21 - rebuild for F37 * Wed Jun 22 2022 Marius FERARU - 0.1.6-5.n0i.20 - rebuild for F36 * Tue Nov 02 2021 Marius FERARU - 0.1.6-4.n0i.19 - rebuild for F35 * Wed Apr 28 2021 Marius FERARU - 0.1.6-3.n0i.18 - rebuild for F34 * Wed Apr 29 2020 Marius FERARU - 0.1.6-2.n0i.17 - rebuild for F32 * Sat Oct 13 2018 Marius FERARU - 0.1.6-1.n0i.16 - version 0.1.6 - drop %%clean * Mon Jan 15 2018 Marius FERARU - 0.1.5-1.n0i.15 - Fedora 27 compatibility (they changed their Perl RPM organization) * Mon Aug 01 2016 Marius FERARU - 0.1.4-2.n0i.14 - use local sources by default - download original sources --with download_sources - unmark macros as config - use "modern" location for macros when possible * Tue Nov 06 2012 Marius FERARU - 0.1.4-1.n0i.13 - version 0.1.4 * Mon Oct 31 2011 Marius FERARU - 0.1.3-1.n0i.12 - version 0.1.3 * Mon Oct 17 2011 Marius FERARU - 0.1.2-1.n0i.11 - version 0.1.2 * Sun Nov 18 2007 Marius FERARU - 0.1.1-1.n0i.10 - version 0.1.1 * Fri Sep 28 2007 Marius FERARU - 0.1.0-1.n0i.9 - version 0.1.0 * Sat Sep 22 2007 Marius FERARU - 0.0.10-1.n0i.8 - version 0.0.10 - changed license to Artistic 2.0 (to make Fedora folks happy) * Tue May 29 2007 Marius FERARU - 0.0.7-1.n0i.7 - version 0.0.7 - flooded with paranoid "requires" * Fri May 18 2007 Marius FERARU - 0.0.6-1.n0i.6 - version 0.0.6 * Thu May 17 2007 Marius FERARU - 0.0.5-1.n0i.5 - version 0.0.5 * Wed Jan 24 2007 Marius FERARU - 0.0.4-1.n0i.4 - version 0.0.4 * Mon Nov 27 2006 Marius FERARU - 0.0.3-1.n0i.3 - version 0.0.3 * Mon Jul 17 2006 Marius FERARU - 0.0.2-1.n0i.2 - version 0.0.2 * Sun Jul 16 2006 Marius FERARU - 0.0.1-1.n0i.1 - version 0.0.1