[599] | 1 | %define origname YAML |
---|
| 2 | |
---|
| 3 | Summary: YAML Ain't Markup Language (tm) for Perl |
---|
| 4 | Name: perl-YAML |
---|
[3120] | 5 | Version: 0.72 |
---|
[599] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: perl's |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{origname}-%{version}.tar.gz |
---|
| 10 | Source1: filter-requires-perl-YAML.sh |
---|
| 11 | Url: http://search.cpan.org/dist/YAML/ |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildArch: noarch |
---|
| 14 | BuildRequires: perl |
---|
| 15 | Requires: perl |
---|
| 16 | |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Packager: iwaim |
---|
| 20 | |
---|
[3120] | 21 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4" |
---|
[599] | 22 | %define __find_requires %{SOURCE1} |
---|
[3120] | 23 | %else |
---|
| 24 | %define __perl_requires %{SOURCE1} |
---|
| 25 | %endif |
---|
[599] | 26 | |
---|
| 27 | %description |
---|
| 28 | This module has been released to CPAN as YAML::Old, and soon YAML.pm |
---|
| 29 | will be changed to just be a frontend interface module for all the |
---|
| 30 | various Perl YAML implementation modules, including YAML::Old. |
---|
| 31 | |
---|
| 32 | If you want robust and fast YAML processing using the normal Dump/Load |
---|
| 33 | API, please consider switching to YAML::XS. It is by far the best Perl |
---|
| 34 | module for YAML at this time. It requires that you have a C compiler, |
---|
| 35 | since it is written in C. |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q -n %{origname}-%{version} |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 42 | make |
---|
| 43 | |
---|
| 44 | %install |
---|
| 45 | rm -rf $RPM_BUILD_ROOT |
---|
| 46 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 47 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 48 | |
---|
| 49 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
| 50 | |
---|
| 51 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 52 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 53 | grep -v ^%{_mandir} | |
---|
| 54 | grep -v perllocal.pod | |
---|
| 55 | grep -v "\.packlist" > %{name}.files |
---|
| 56 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 57 | echo "ERROR: EMPTY FILE LIST" |
---|
| 58 | exit -1 |
---|
| 59 | fi |
---|
| 60 | |
---|
| 61 | %check |
---|
| 62 | make test |
---|
| 63 | |
---|
| 64 | %clean |
---|
| 65 | rm -rf $RPM_BUILD_ROOT |
---|
| 66 | |
---|
| 67 | %files -f %{name}.files |
---|
| 68 | %defattr(-,root,root) |
---|
| 69 | %doc README Changes LICENSE |
---|
[3120] | 70 | %dir %{perl_vendorlib}/YAML |
---|
[599] | 71 | %{_mandir}/man3/* |
---|
| 72 | |
---|
| 73 | %changelog |
---|
[3120] | 74 | * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 0.72-1 |
---|
| 75 | - new upstream release |
---|
| 76 | - using __perl_requires macro for VineSeed (vl6) |
---|
| 77 | |
---|
| 78 | * Mon Feb 22 2010 IWAI, Masaharu <iwai@alib.jp> 0.71-1 |
---|
[599] | 79 | - first release for Vine Linux |
---|