source: projects/specs/trunk/p/perl-MIME-Types/perl-MIME-Types-vl.spec @ 12120

Revision 12120, 4.4 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

Line 
1%bcond_with Mojolicious
2Name:           perl-MIME-Types
3Version:        2.17
4Release:        1%{?_dist_release}
5Summary:        MIME types module for Perl
6
7License:        GPL or Artistic
8Group:          Development/Libraries
9URL:            http://search.cpan.org/dist/MIME-Types/
10Source0:        http://www.cpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
11BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
13Vendor:        Project Vine
14Distribution:  Vine Linux
15
16BuildArch:      noarch
17BuildRequires:  perl(ExtUtils::MakeMaker)
18BuildRequires:  perl(Test::MinimumVersion)
19BuildRequires:  perl(Test::More)
20BuildRequires:  perl(Test::Pod)
21Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
22
23%description
24MIME types are used in MIME compliant lines, for instance as part of
25e-mail and HTTP traffic, to indicate the type of content which is
26transmitted. Sometimes real knowledge about a mime-type is need.
27This module maintains a set of MIME::Type objects, which each describe
28one known mime type. There are many types defined by RFCs and vendors,
29so the list is long but not complete. Please don't hestitate to ask to
30add additional information.
31
32%prep
33%setup -q -n MIME-Types-%{version}
34
35%build
36%{__perl} Makefile.PL INSTALLDIRS=vendor
37make %{?_smp_mflags}
38
39
40%install
41rm -rf %{buildroot}
42make pure_install PERL_INSTALL_ROOT=%{buildroot}
43find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
44find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
45chmod -R u+w %{buildroot}/*
46
47%if %{without Mojolicious}
48rm -rf %{buildroot}%{perl_vendorlib}/MojoX/
49rm -rf %{buildroot}%{_mandir}/man3/Mojo*
50%endif
51
52%check
53make test
54make test TEST_FILES="xt/*.t"
55
56%clean
57rm -rf %{buildroot}
58
59%files
60%defattr(-,root,root,-)
61%doc ChangeLog README
62%{perl_vendorlib}/MIME/
63%if %{with Mojolicious}
64%{perl_vendorlib}/MojoX/
65%endif
66%{_mandir}/man3/*.3*
67
68
69%changelog
70* Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.17-1
71- new upstream release.
72- rebuilt with perl-5.26.
73
74* Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.0.4-1
75- update to 2.0.4
76
77* Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.31-1
78- updated to 1.31
79
80* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.19-3
81- rebuild with perl-5.12.3
82
83* Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.19-2vl1
84- Initial build for Vine Linux
85
86* Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-2
87- BuildRequire perl(Test::More).
88
89* Mon Mar 26 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-1
90- 1.19.
91- BuildRequire perl(ExtUtils::MakeMaker).
92
93* Wed Nov 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.18-1
94- 1.18.
95
96* Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-2
97- Rebuild.
98
99* Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-1
100- 1.17.
101
102* Sun Oct  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-1
103- 1.16.
104
105* Fri Apr  1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.15-2
106- 1.15.
107
108* Tue May 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.3
109- Require perl(:MODULE_COMPAT_*) (bug 1649).
110
111* Mon May 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.2
112- Sync with IANA 20040517.
113- Require perl >= 1:5.6.1 for vendor install dir support.
114- Use pure_install to avoid perllocal.pod workarounds.
115
116* Sat Apr 24 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1
117- Update to 1.13 + IANA 20040424.
118
119* Sun Feb  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.2
120- Reduce directory ownership bloat.
121
122* Wed Jan 21 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1
123- Update to 1.12.
124
125* Wed Jan 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1
126- Update to 1.11.
127
128* Wed Dec 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.2
129- BuildRequires perl(Test::More).
130
131* Fri Dec 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1
132- Update to 1.10.
133
134* Thu Nov  6 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1
135- Update to 1.09.
136
137* Tue Nov  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1
138- Update to 1.08.
139
140* Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.2
141- Install into vendor dirs.
142- Don't use fedora-rpm-helper.
143- Specfile cleanup.
144
145* Wed Jul 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1
146- Update to 1.07.
147- Use fedora-rpm-helper.
148
149* Tue Jun 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1
150- First build.
Note: See TracBrowser for help on using the repository browser.