source: projects/specs/trunk/p/perl-Pod-PerldocJp/perl-Pod-PerldocJp-vl.spec @ 9146

Revision 9146, 2.5 KB checked in by inagaki, 9 years ago (diff)

2014-12-12 Ryoichi INAGAKI <ryo1@…>

  • perl-Image-{Base, Size}, perl-Net-{CIDR, DBus, Frame}, perl-Pod-{Coverage-TrustPod?, PerldocJp?}: updated
  • perl-Net-{DBus-GLib, Frame-Simple, IPv4Addr, IPv6Addr, Interface, MAC}: rebuilt


RevLine 
[4922]1%define pkgname Pod-PerldocJp
2
3# Basic Information
4Name:           perl-%{pkgname}
[9146]5Version:        0.16
6Release:        1%{?_dist_release}
[4922]7License:        Artistic or GPL
[9146]8Group:          Development/Libraries
9URL:            http://search.cpan.org/~ishigaki/Pod-PerldocJp/
10
[4922]11Source0:        http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
[9146]12
[4922]13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
[6516]14BuildArch:      noarch
[4922]15
16Vendor:         Project Vine
17Distribution:   Vine Linux
18Packager:       yasumichi
19
20Summary:        perldoc that also checks perldoc.jp
21Summary(ja):    日本語対応の perldoc
22
23# Dependency
24Requires:       perl
25Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
26
27BuildRequires:  perl
[6516]28BuildRequires:  perl-Path-Extended
29BuildRequires:  perl-Term-Encoding
30BuildRequires:  perl-Test-Pod
31BuildRequires:  perl-Test-Pod-Coverage
32BuildRequires:  perl-Test-UseAllModules
[4922]33
34%description
35This is a drop-in-replacement for perldoc for Japanese people. Usage is the
36same, except it can look for a translation at http://perldoc.jp with -J
37option.
38
39%description -l ja
40perldocjp は、日本人のために perldoc を置き換えます。使い方は、-J オプション
41を利用して http://perldoc.jp にある翻訳を探すことができる以外は、perldoc と
42同様です。
43
44%prep
[9146]45%setup -q -n Pod-PerldocJp-%{version}
[4922]46
47%build
[6516]48%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
49%{__make} %{?_smp_mflags}
[4922]50
51%install
52%{__rm} -rf ${RPM_BUILD_ROOT}
[6516]53%{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
[4922]54
[6516]55# remove unnecessary files.
56find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
57find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
58find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
59find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
60
61# generate file list
[4922]62find $RPM_BUILD_ROOT%{_prefix} -type f -print |
[6516]63        sed "s@^$RPM_BUILD_ROOT@@g"  > %{name}.files
64
[4922]65if [ "$(cat %{name}.files)X" = "X" ] ; then
66        echo "ERROR: EMPTY FILE LIST"
67        exit -1
68fi
69
70%clean
71%{__rm} -rf ${RPM_BUILD_ROOT}
72
[6516]73%check
74make test
[4922]75
76%files -f %{name}.files
77%defattr(-,root,root)
78%doc Changes README
[6516]79%dir %{perl_vendorlib}/Pod/PerldocJp
[4922]80
[6516]81%changelog
[9146]82* Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.16-1
83- updated to 0.16
84- built with perl 5.16.3
85- moved to Development/Libraries Group
86- added URL tag
87
[6516]88* Wed Jul 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-2
89- apply wiki:Development/PerlModulePackaging
90- exclude man pages
[4922]91
92* Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-1
93- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.