From f095a160893224dea589d514ab6efeb7d3922388 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 11 Feb 2022 17:03:46 +0100 Subject: [PATCH] Import syntax --- .gitattributes | 1 + perl-syntax.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++ syntax-0.004.tar.gz | 3 +++ 3 files changed, 66 insertions(+) create mode 100644 .gitattributes create mode 100644 perl-syntax.spec create mode 100644 syntax-0.004.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/perl-syntax.spec b/perl-syntax.spec new file mode 100644 index 0000000..176671d --- /dev/null +++ b/perl-syntax.spec @@ -0,0 +1,62 @@ +Name: perl-syntax +Version: 0.004 +Release: 1%{?dist} +Summary: Activate syntax extensions +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/syntax/ +Source0: http://www.cpan.org/authors/id/P/PH/PHAYLON/syntax-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Carp) +BuildRequires: perl(Data::OptList) >= 0.104 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(FindBin) +BuildRequires: perl(namespace::clean) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(warnings) +Requires: perl(Carp) +Requires: perl(Data::OptList) >= 0.104 +Requires: perl(namespace::clean) +Requires: perl(strict) +Requires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module activates community provided syntax extensions to Perl. You +pass it a feature name, and optionally a scalar with arguments, and the +dispatching system will load and install the extension in your package. + +%prep +%setup -q -n syntax-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes dist.ini LICENSE META.json README weaver.ini +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Feb 11 2022 Daniel Berteaud 0.004-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/syntax-0.004.tar.gz b/syntax-0.004.tar.gz new file mode 100644 index 0000000..d5a10d2 --- /dev/null +++ b/syntax-0.004.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe19b6da8a8f43a5aa2ee571441bc0e339fb156d0081c157a1a24e9812c7d365 +size 11759