source: projects/specs/trunk/p/perl-Sort-Versions/perl-Sort-Versions-vl.spec @ 5859

Revision 5859, 3.6 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1Name:           perl-Sort-Versions
2Version:        1.5
3Release:        1%{?_dist_release}
4Summary:        Perl module for sorting of revision-like numbers
5License:        GPL+ or Artistic
6Group:          Development/Libraries
7URL:            http://search.cpan.org/dist/Sort-Versions/
8Source0:        http://www.cpan.org/modules/by-module/Sort/Sort-Versions-%{version}.tar.gz
9BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
10
11BuildArch:      noarch
12BuildRequires:  perl(ExtUtils::MakeMaker)
13BuildRequires:  perl(Test::More)
14Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
15
16%description
17A perl 5 module for sorting of revision-like numbers
18
19Sort::Versions allows easy sorting of mixed non-numeric and numeric strings,
20like the 'version numbers' that many shared library systems and revision
21control packages use. This is quite useful if you are trying to deal with
22shared libraries. It can also be applied to applications that intersperse
23variable-width numeric fields within text. Other applications can
24undoubtedly be found.
25
26%prep
27%setup -q -n Sort-Versions-%{version}
28for f in Changes Versions.pm; do
29        iconv -f iso-8859-1 -t utf-8 <$f >${f}_ &&
30        touch -r $f ${f}_ &&
31        mv ${f}_ $f
32done
33
34%build
35%{__perl} Makefile.PL INSTALLDIRS=vendor
36make %{?_smp_mflags}
37
38%install
39rm -rf %{buildroot}
40make pure_install PERL_INSTALL_ROOT=%{buildroot}
41find %{buildroot} -depth \
42        -type f -name .packlist -exec rm -f {} ';' -o \
43        -type d -empty -exec rmdir {} ';'
44chmod -R u+w %{buildroot}/*
45
46%clean
47rm -rf %{buildroot}
48
49%check
50make test
51
52%files
53%defattr(-,root,root,-)
54%doc Changes
55%{perl_vendorlib}/Sort
56%{_mandir}/man3/*
57
58%changelog
59* Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.5-1
60- initial build for Vine Linux
61
62* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-18
63- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
64
65* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.5-17
66- Perl mass rebuild
67
68* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-16
69- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
70
71* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5-15
72- 661697 rebuild for fixing problems with vendorach/lib
73
74* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5-14
75- Mass rebuild with perl-5.12.0
76
77* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.5-13
78- rebuild against perl 5.10.1
79
80* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-12
81- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
82
83* Thu Mar 19 2009 Stepan Kasal <skasal@redhat.com> - 1.5-11
84- fix timestamps of the recoded text files
85
86* Mon Mar 16 2009 Stepan Kasal <skasal@redhat.com> - 1.5-10
87- Recode as UTF-8, fix argument order find with -depth (both by Paul Howarth)
88- Other minor cleanups
89
90* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9
91- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
92
93* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5-8
94- rebuild for new perl
95
96* Fri Aug 17 2007 Ralf Corsépius <rc040203@freenet.de> - 1.5-7
97- Add BR: perl(Test::More).
98
99* Fri Aug 17 2007 Ralf Corsépius <rc040203@freenet.de> - 1.5-6
100- Update license tag.
101- Reflect perl split.
102
103* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.5-5
104- Mass rebuild.
105
106* Tue Feb 28 2006 Ralf Corsépius <rc040203@freenet.de> - 1.5-4
107- Rebuild for perl-5.8.8.
108
109* Wed Aug 17 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-3
110- Spec cleanup.
111
112* Wed Aug 10 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-2
113- FE re-submission.
114
115* Fri Jul 01 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-1
116- FE submission.
Note: See TracBrowser for help on using the repository browser.