[perl-srpm-macros] Import

Petr Pisar ppisar at fedoraproject.org
Wed May 16 13:23:33 UTC 2012


commit 42be503513c981a7d3ccab24f9397adb28ffe18c
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed May 16 15:21:20 2012 +0200

    Import

 macros.perl-srpm      |   17 +++++++++++++++++
 perl-srpm-macros.spec |   26 ++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)
---
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 <ppisar at 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
+
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 <ppisar at redhat.com> - 1-1
+- Introduce Perl SRPM macros as a standalone package
+
+


More information about the scm-commits mailing list