source: projects/specs/trunk/p/perl-Data-Phrasebook-Loader-YAML/perl-Data-Phrasebook-Loader-YAML-vl.spec @ 5894

Revision 5894, 1.5 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1%define real_name Data-Phrasebook-Loader-YAML
2
3Summary:        Absract your phrases with YAML
4Name:           perl-%{real_name}
5Version:        0.09
6Release:        1%{?_dist_release}
7License:        Artistic or GPL+
8Group:          Development/Libraries
9URL:            http://search.cpan.org/dist/Data-Phrasebook-Loader-YAML/
10Source0:        http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-Loader-YAML-%{version}.tar.gz
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
12
13BuildArch:      noarch
14BuildRequires:  perl
15BuildRequires:  perl(ExtUtils::MakeMaker)
16BuildRequires:  perl(Data::Phrasebook) >= 0.18
17BuildRequires:  perl(Test::More) >= 0.47
18BuildRequires:  perl(YAML) >= 0.35
19
20%description
21Absract your phrases with YAML.
22
23%prep
24%setup -q -n %{real_name}-%{version}
25
26%build
27CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
28make %{?_smp_mflags} OPTIMIZE="%{optflags}"
29
30%install
31rm -rf %{buildroot}
32make pure_install PERL_INSTALL_ROOT=%{buildroot}
33find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
34find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
35find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
36chmod -R u+w %{buildroot}/*
37
38%clean
39rm -rf %{buildroot}
40
41%files
42%defattr(-, root, root, -)
43%doc Artistic COPYING Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README examples
44%{_mandir}/man3/*
45%{perl_vendorlib}/*
46
47%changelog
48* Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.09-1
49- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.