diff --git a/macros.perl-srpm b/macros.perl-srpm new file mode 100644 index 0000000..0283cc8 --- /dev/null +++ b/macros.perl-srpm @@ -0,0 +1,17 @@ +# Copyright (c) 2012 Petr Pisar . +# This file is distributed under the terms of GNU GPL license version 3, or +# any later version. + +# This file contains macros that can be used for building source RPM package +# from git source repository. This file must present in minimal build root to +# take effect. +# This file must not use Perl or any non-minimal-build-root package. The +# purpose is to enable bootstrapping perl. + +# Perl bootstrap For rebuild of Perl and all related packages is needed +# switch, which enable only vital build requires. This could help cyclic +# dependencies, for example: perl-Test-Minimum-Version <-> +# perl-Perl-Minimum-Version Defined for bootstraping, undefined otherwise. +# Usage: %%if !%%{defined perl_bootstrap} ... %%endif +#perl_bootstrap 1 + diff --git a/perl-srpm-macros.spec b/perl-srpm-macros.spec new file mode 100644 index 0000000..008faf1 --- /dev/null +++ b/perl-srpm-macros.spec @@ -0,0 +1,26 @@ +Name: perl-srpm-macros +Version: 1 +Release: 1%{?dist} +Summary: RPM macros for building Perl source package from source repository +Group: Development/Libraries +License: GPLv3+ +Source0: macros.perl-srpm +BuildArch: noarch +Requires: %{name}-setup + +%description +These RPM macros are used for building Perl source packages from source +repositories. They influence build-requires set into the source package. + +%install +install -m 644 -D "%{SOURCE0}" \ + "$RPM_BUILD_ROOT/%{_sysconfdir}/rpm/macros.perl-srpm" + +%files +%config %{_sysconfdir}/rpm/macros.perl-srpm + +%changelog +* Tue May 15 2012 Petr Pisar - 1-1 +- Introduce Perl SRPM macros as a standalone package + +