diff --git a/Git-Repository-1.325.tar.gz b/Git-Repository-1.325.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0b71c4e29086874c13e1385277d23ab8330f05fa Binary files /dev/null and b/Git-Repository-1.325.tar.gz differ diff --git a/perl-Git-Repository.spec b/perl-Git-Repository.spec new file mode 100644 index 0000000000000000000000000000000000000000..7b0ec0913ca990c3cf30422896a4768088ab92c9 --- /dev/null +++ b/perl-Git-Repository.spec @@ -0,0 +1,102 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Git-Repository +Version: 1.325 +Release: 1 +Summary: Perl interface to Git repositories +License: GPL-1.0-only OR Artistic-1.0-Perl +Group: Development/Libraries +URL: http://search.cpan.org/dist/Git-Repository/ +Source0: http://www.cpan.org/authors/id/B/BO/BOOK/Git-Repository-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Cwd) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Git::Version::Compare) >= 1.001 +BuildRequires: perl(namespace::clean) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(System::Command) >= 1.118 +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Requires::Git) >= 1.005 +BuildRequires: perl(warnings) +Requires: perl(Carp) +Requires: perl(Cwd) +Requires: perl(Exporter) +Requires: perl(File::Spec) +Requires: perl(File::Spec::Functions) +Requires: perl(File::Temp) +Requires: perl(Git::Version::Compare) >= 1.001 +Requires: perl(namespace::clean) +Requires: perl(Scalar::Util) +Requires: perl(strict) +Requires: perl(System::Command) >= 1.118 +Requires: perl(Test::Builder) +Requires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Git::Repository is a Perl interface to Git, for scripted interactions with +repositories. It's a low-level interface that allows calling any Git +command, whether porcelain or plumbing, including bidirectional commands +such as git commit-tree. + +%prep +%setup -q -n Git-Repository-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +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/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%{_mandir}/* + +%changelog +* Wed Mar 27 2024 Xu Jin 1.325-1 +- Package init. diff --git a/perl-Git-Repository.yaml b/perl-Git-Repository.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6a460d565a2d7c2b0398e3a658a93dd7cc5a058f --- /dev/null +++ b/perl-Git-Repository.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: Git-Repository +tag_prefix: "^" +separator: "."