[packages/perl-Alien-patch] - new
qboosh
qboosh at pld-linux.org
Sat Sep 20 17:17:16 CEST 2025
commit 25badef9a2711be2425e40a2a5a567f77d4cf7eb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 20 17:20:09 2025 +0200
- new
perl-Alien-patch.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
---
diff --git a/perl-Alien-patch.spec b/perl-Alien-patch.spec
new file mode 100644
index 0000000..b0a7dd1
--- /dev/null
+++ b/perl-Alien-patch.spec
@@ -0,0 +1,85 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir Alien
+%define pnam patch
+Summary: Alien::patch - Find or build patch
+Summary(pl.UTF-8): Alien::patch - znajdowanie lub budowanie polecenia patch
+Name: perl-Alien-patch
+Version: 0.15
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: https://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e2b98465b8b5cfd4662abbb7d236035b
+URL: https://metacpan.org/dist/Alien-patch
+BuildRequires: patch
+BuildRequires: perl-Alien-Build >= 0.32
+BuildRequires: perl-Capture-Tiny
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.52
+BuildRequires: perl-File-chdir
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl-Alien-Base >= 0.038
+BuildRequires: perl-Test-Alien
+BuildRequires: perl-Test2-Suite >= 0.000060
+%endif
+Requires: patch
+Requires: perl-Alien-Base >= 0.038
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# no binary code, but installs to platform dependent directories
+%define _enable_debug_packages 0
+
+%description
+Many environments provide the patch command, but a few do not. Using
+this module in your alienfile (or elsewhere) you can make sure that
+patch will be available. If the system provides it, then great, this
+module is a no-op. If it does not, then it will download and install
+it into a private location so that it can be added to the PATH when
+this module is used.
+
+%description -l pl.UTF-8
+Wiele środowisk zapewnia polecenie patch, ale niektóre nie. Przy
+użyciu tego modułu w pliku alienfile (lub innym miejscu) można upewnić
+się, że program patch jest dostępny. Jeśli system go zapewnia -
+świetnie, ten moduł nic nie robi. Jeśli nie, moduł pobierze go i
+zainstaluje w prywatnej lokalizacji, która może być dodana do PATH,
+kiedy ten moduł jest używany.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# useless: only for building from source on foreign platform
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/share/dist/Alien-patch/_alien/patch/msys2-patch-2.7.1.patch
+rmdir $RPM_BUILD_ROOT%{perl_vendorarch}/auto/share/dist/Alien-patch/_alien/patch
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorarch}/Alien/patch.pm
+%{perl_vendorarch}/auto/Alien/patch
+%{perl_vendorarch}/auto/share/dist/Alien-patch
+%{_mandir}/man3/Alien::patch.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Alien-patch.git/commitdiff/25badef9a2711be2425e40a2a5a567f77d4cf7eb
More information about the pld-cvs-commit
mailing list