70 lines
2.1 KiB
RPMSpec
70 lines
2.1 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Test-YAML-Valid
|
|
Version: 0.04
|
|
Release: 3mamba
|
|
Summary: Test::YAML::Valid - Test the validity of YAML files inside (Test::Builder-based) unit tests
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
URL: https://www.cpan.org/
|
|
Source: http://www.cpan.org/modules/by-module/Test/Test-YAML-Valid-%{version}.tar.gz
|
|
License: Artistic
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
BuildRequires: perl-Test-Builder-Tester
|
|
BuildRequires: perl-YAML
|
|
BuildRequires: perl-YAML-Syck
|
|
BuildRequires: perl-YAML-LibYAML
|
|
#BuildRequires: perl-Test-More
|
|
#BuildRequires: perl-Test-Builder
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Lets you test the validity of YAML files inside your (Test::Builder-based) unit tests.
|
|
|
|
%prep
|
|
%setup -q -n Test-YAML-Valid-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
done
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Tue Mar 26 2024 Automatic Build System <autodist@openmamba.org> 0.04-3mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-2mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Wed Mar 16 2011 Automatic Build System <autodist@mambasoft.it> 0.04-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.03-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Mon Nov 12 2007 Aleph0 <aleph0@openmamba.org> 0.03-1mamba
|
|
- package created by autospec
|