This commit is contained in:
Petr Písař 2012-05-16 15:21:20 +02:00
parent d16b3c70d0
commit 42be503513
2 changed files with 43 additions and 0 deletions

17
macros.perl-srpm Normal file
View File

@ -0,0 +1,17 @@
# Copyright (c) 2012 Petr Pisar <ppisar@redhat.com>.
# 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

26
perl-srpm-macros.spec Normal file
View File

@ -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 <ppisar@redhat.com> - 1-1
- Introduce Perl SRPM macros as a standalone package