1 | # Utilize Business::ISBN that needs gd library
|
---|
2 | %bcond_with perl_URI_enables_Business_ISBN
|
---|
3 |
|
---|
4 | Name: perl-URI
|
---|
5 | Version: 1.71
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: A Perl module implementing URI parsing and manipulation
|
---|
8 | Group: Development/Libraries
|
---|
9 | License: GPL+ or Artistic
|
---|
10 | URL: http://search.cpan.org/dist/URI/
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 | Source0: http://www.cpan.org/authors/id/E/ET/ETHER/URI-%{version}.tar.gz
|
---|
13 | BuildArch: noarch
|
---|
14 | # Module Build
|
---|
15 | BuildRequires: coreutils
|
---|
16 | BuildRequires: findutils
|
---|
17 | BuildRequires: make
|
---|
18 | BuildRequires: perl
|
---|
19 | BuildRequires: perl-generators
|
---|
20 | #BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
---|
21 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
22 | BuildRequires: perl(utf8)
|
---|
23 | # Module Runtime
|
---|
24 | BuildRequires: perl(Carp)
|
---|
25 | BuildRequires: perl(constant)
|
---|
26 | BuildRequires: perl(Cwd)
|
---|
27 | BuildRequires: perl(Data::Dumper)
|
---|
28 | BuildRequires: perl(Encode)
|
---|
29 | BuildRequires: perl(Exporter) >= 5.57
|
---|
30 | BuildRequires: perl(integer)
|
---|
31 | BuildRequires: perl(MIME::Base64) >= 2
|
---|
32 | BuildRequires: perl(Net::Domain)
|
---|
33 | BuildRequires: perl(overload)
|
---|
34 | BuildRequires: perl(parent)
|
---|
35 | BuildRequires: perl(Scalar::Util)
|
---|
36 | BuildRequires: perl(strict)
|
---|
37 | BuildRequires: perl(warnings)
|
---|
38 | # Test Suite
|
---|
39 | BuildRequires: perl(Config)
|
---|
40 | BuildRequires: perl(File::Spec::Functions)
|
---|
41 | BuildRequires: perl(File::Temp)
|
---|
42 | BuildRequires: perl(Storable)
|
---|
43 | BuildRequires: perl(Test)
|
---|
44 | #BuildRequires: perl(Test::More) >= 0.96
|
---|
45 | # Runtime
|
---|
46 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
47 | Requires: perl(Cwd)
|
---|
48 | Requires: perl(Data::Dumper)
|
---|
49 | Requires: perl(Encode)
|
---|
50 | Requires: perl(MIME::Base64) >= 2
|
---|
51 | Requires: perl(Net::Domain)
|
---|
52 |
|
---|
53 | # Optional Functionality
|
---|
54 | %if %{with perl_URI_enables_Business_ISBN}
|
---|
55 | # Business::ISBN pulls in gd and X libraries for barcode support, hence this soft dependency (#1380152)
|
---|
56 | # Business::ISBN Test::Pod Pod::Simple HTML::Entities (HTML::Parser) URI
|
---|
57 | %if 0%{!?perl_bootstrap:1}
|
---|
58 | BuildRequires: perl(Business::ISBN)
|
---|
59 | %endif
|
---|
60 | Suggests: perl(Business::ISBN)
|
---|
61 | %endif
|
---|
62 |
|
---|
63 | %description
|
---|
64 | This module implements the URI class. Objects of this class represent
|
---|
65 | "Uniform Resource Identifier references" as specified in RFC 2396 (and
|
---|
66 | updated by RFC 2732).
|
---|
67 |
|
---|
68 | %prep
|
---|
69 | %setup -q -n URI-%{version}
|
---|
70 | chmod -c 644 uri-test
|
---|
71 |
|
---|
72 | %build
|
---|
73 | perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=true
|
---|
74 | make %{?_smp_mflags}
|
---|
75 | make manifypods
|
---|
76 |
|
---|
77 | %install
|
---|
78 | make pure_install DESTDIR=%{buildroot}
|
---|
79 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
80 | %{_fixperms} %{buildroot}
|
---|
81 |
|
---|
82 | %check
|
---|
83 | #make test
|
---|
84 |
|
---|
85 | %files
|
---|
86 | %license LICENSE
|
---|
87 | %doc Changes README uri-test
|
---|
88 | %{perl_privlib}/URI.pm
|
---|
89 | %{perl_privlib}/URI/
|
---|
90 | %{_mandir}/man3/URI.3*
|
---|
91 | %{_mandir}/man3/URI.Escape.3*
|
---|
92 | %{_mandir}/man3/URI.Heuristic.3*
|
---|
93 | %{_mandir}/man3/URI.QueryParam.3*
|
---|
94 | %{_mandir}/man3/URI.Split.3*
|
---|
95 | %{_mandir}/man3/URI.URL.3*
|
---|
96 | %{_mandir}/man3/URI.WithBase.3*
|
---|
97 | %{_mandir}/man3/URI._punycode.3*
|
---|
98 | %{_mandir}/man3/URI.data.3*
|
---|
99 | %{_mandir}/man3/URI.file.3*
|
---|
100 | %{_mandir}/man3/URI.ldap.3*
|
---|
101 |
|
---|
102 | %changelog
|
---|
103 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.71-1
|
---|
104 | - initial version
|
---|