1 | %define perlver %(rpm -q --queryformat %%{version} perl) |
---|
2 | |
---|
3 | Summary: URI module for perl |
---|
4 | Name: perl-URI |
---|
5 | Version: 1.58 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: distributable |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://www.cpan.org/authors/id/GAAS/URI-%{version}.tar.gz |
---|
10 | Source1: filter-requires-perl-URI.sh |
---|
11 | Url: http://search.cpan.org/search?dist=URI |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | BuildArch: noarch |
---|
14 | BuildRequires: perl >= %{perlver} |
---|
15 | Requires: perl >= %{perlver} |
---|
16 | |
---|
17 | #BuildRequires: perl(Business::ISBN) |
---|
18 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4" |
---|
19 | %define __find_requires %{SOURCE1} |
---|
20 | %else |
---|
21 | %define __perl_requires %{SOURCE1} |
---|
22 | %endif |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | URI module for perl |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q -n URI-%{version} |
---|
30 | |
---|
31 | %build |
---|
32 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
33 | make |
---|
34 | |
---|
35 | %install |
---|
36 | rm -rf $RPM_BUILD_ROOT |
---|
37 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
38 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
39 | |
---|
40 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
41 | |
---|
42 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
43 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
44 | grep -v ^%{_mandir} | |
---|
45 | grep -v perllocal.pod | |
---|
46 | grep -v "\.packlist" > %{name}.files |
---|
47 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
48 | echo "ERROR: EMPTY FILE LIST" |
---|
49 | exit -1 |
---|
50 | fi |
---|
51 | |
---|
52 | %check |
---|
53 | make test |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %files -f %{name}.files |
---|
59 | %defattr(-,root,root) |
---|
60 | %doc README Changes |
---|
61 | %dir %{perl_vendorlib}/URI |
---|
62 | %dir %{perl_vendorlib}/URI/file |
---|
63 | %dir %{perl_vendorlib}/URI/urn |
---|
64 | %{_mandir}/man3/* |
---|
65 | |
---|
66 | %changelog |
---|
67 | * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 1.58-1 |
---|
68 | - new upstream release |
---|
69 | - using __perl_requires macro for VineSeed (vl6) |
---|
70 | - drop rfc2396.txt in %%files: upstream deleted |
---|
71 | |
---|
72 | * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.40-1 |
---|
73 | - new upstream release |
---|
74 | |
---|
75 | * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.35-1vl5 |
---|
76 | - rebuilt with perl-5.10.0 |
---|
77 | - applied new versioning policy |
---|
78 | |
---|
79 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.35-0vl2 |
---|
80 | - s/Copyright/License/ |
---|
81 | - changed Group to Development/Libraries |
---|
82 | - added Source1 for removing dependancy perl(Business::ISBN) |
---|
83 | |
---|
84 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.35-0vl1 |
---|
85 | - new upstream release |
---|
86 | - build on perl-5.8.6-0vl1 |
---|
87 | - define perlver macro |
---|
88 | - run 'make test' |
---|
89 | |
---|
90 | * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.27-0vl2 |
---|
91 | - built on perl-5.8.2 |
---|
92 | |
---|
93 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.27-0vl1 |
---|
94 | - new upstream version |
---|
95 | - built on perl-5.8.1 |
---|
96 | |
---|
97 | * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 1.23-0vl3 |
---|
98 | - add %%{perl_sitelib}/URI/urn directory |
---|
99 | |
---|
100 | * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.23-0vl2 |
---|
101 | - build on perl-5.8.0 |
---|
102 | |
---|
103 | * Sat Feb 15 2003 IWAI Masaharu <iwai@alib.jp> 1.23-0vl1 |
---|
104 | - update to 1.23 |
---|
105 | |
---|
106 | * Sun Apr 14 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.18-0vl1 |
---|
107 | - first build for Vine Linux |
---|
108 | |
---|