perl-YAML/perl-YAML.spec

84 lines
2.2 KiB
RPMSpec
Raw Normal View History

Name: perl-YAML
2006-05-17 19:14:32 +00:00
Version: 0.39
Release: 2%{?dist}
Summary: YAML Ain't Markup Language (tm)
2006-05-17 19:14:32 +00:00
2006-05-04 16:32:39 +00:00
Group: Development/Libraries
2006-05-17 19:14:32 +00:00
License: GPL or Artistic
URL: http://search.cpan.org/dist/YAML/
2005-04-14 07:06:47 +00:00
Source0: http://www.cpan.org/authors/id/I/IN/INGY/YAML-%{version}.tar.gz
2006-05-17 19:14:32 +00:00
Patch0: %{name}-testmore054.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2006-05-17 19:14:32 +00:00
BuildArch: noarch
2006-05-17 19:14:32 +00:00
BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The YAML.pm module implements a YAML Loader and Dumper based on the
YAML 1.0 specification. http://www.yaml.org/spec/
YAML is a generic data serialization language that is optimized for
human readability. It can be used to express the data structures of
most modern programming languages, including Perl.
For information on the YAML syntax, please refer to the YAML
specification.
2006-05-17 19:14:32 +00:00
%prep
%setup -q -n YAML-%{version}
2006-05-17 19:14:32 +00:00
%patch0 -p0
%build
2005-04-14 07:06:47 +00:00
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
2006-05-17 19:14:32 +00:00
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
2006-05-17 19:14:32 +00:00
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
2006-05-17 19:14:32 +00:00
%check || :
2006-05-04 16:32:39 +00:00
make test
2006-05-17 19:14:32 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
2006-05-17 19:14:32 +00:00
%files
%defattr(-,root,root,-)
%doc Changes README
2005-04-14 07:06:47 +00:00
%{_bindir}/ysh
%{perl_vendorlib}/YAML*
2005-04-14 07:06:47 +00:00
%{_mandir}/man1/ysh.1*
%{_mandir}/man3/YAML*.3*
2006-05-04 16:32:39 +00:00
2006-05-17 19:14:32 +00:00
%changelog
2005-04-14 07:06:47 +00:00
* Thu Apr 14 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.39-2
- 0.39.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Sat May 15 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.35-0.fdr.5
- Avoid creation of the perllocal.pod file (make pure_install).
* Sun Apr 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.35-0.fdr.4
- Require perl(:MODULE_COMPAT_*).
- Cosmetic tweaks (bug 1383).
* Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.35-0.fdr.3
- Reduce directory ownership bloat.
* Tue Nov 18 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.35-0.fdr.2
- Use INSTALLARCHLIB workaround in %%install.
* Wed Sep 3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.35-0.fdr.1
- First build.