Genericise for CentOS 6 as well as 5
[ZOOM-Perl-moved-to-github.git] / modules / orig / perl-MARC-Record.spec
1 %define module  MARC-Record
2 %define name    perl-%{module}
3 %define version 2.0.2
4 %define release 1.indexdata
5
6 Name:           %{name}
7 Version:        %{version}
8 Release:        %{release}
9 Summary:        %{module} module for perl
10 License:        GPLv2+ or Artistic
11 Group:          Development/Perl
12 Source:         %{module}-%{version}.tar.gz
13 Url:            http://search.cpan.org/dist/%{module}/
14
15 BuildArch:      noarch
16 BuildRoot:      %{_tmppath}/%{name}-root
17
18 %description
19 Module for handling MARC records as objects.
20 The file-handling stuff is in MARC::File::*.
21
22 %prep
23 %setup -q -n %{module}-%{version}
24
25 %build
26 %{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=$RPM_BUILD_ROOT/usr
27 %{__make}
28
29 %check
30 %{__make} test
31
32 %clean 
33 rm -rf $RPM_BUILD_ROOT
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make pure_install
38 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
39 #chmod 644  $RPM_BUILD_ROOT/%{perl_vendorlib}/MARC/Record.pm
40 #chmod 644  $RPM_BUILD_ROOT/%{perl_vendorlib}/MARC/Field.pm
41
42 %files
43 %defattr(-,root,root)
44 %{_bindir}/marcdump
45 %doc Changes README
46 %{perl_vendorlib}/MARC
47 %{_mandir}/*/*
48
49
50
51
52 %changelog
53 * Fri May 07 2010 Stéphane Téletchéa <steletch@mandriva.org> 2.0.2-1mdv2010.1
54 + Revision: 543146
55 - Update to 2.0.2
56
57 * Fri Sep 04 2009 Thierry Vignaud <tv@mandriva.org> 2.0.0-5mdv2010.0
58 + Revision: 430498
59 - rebuild
60
61 * Thu Jul 31 2008 Thierry Vignaud <tv@mandriva.org> 2.0.0-4mdv2009.0
62 + Revision: 257751
63 - rebuild
64
65 * Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 2.0.0-3mdv2009.0
66 + Revision: 245821
67 - rebuild
68
69 * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 2.0.0-1mdv2008.1
70 + Revision: 140691
71 - restore BuildRoot
72
73   + Thierry Vignaud <tv@mandriva.org>
74     - kill re-definition of %%buildroot on Pixel's request
75
76
77 * Wed Feb 14 2007 Stéphane Téletchéa <steletch@mandriva.org> 2.0.0-1mdv2007.0
78 + Revision: 120948
79 - Update to 2.0.0
80 - MARC::Lint is now in a separate module
81 - Import perl-MARC-Record
82
83 * Thu May 04 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.38-2mdk
84 - Fix According to perl Policy
85         - Source URL
86
87 * Thu May 04 2006 Jerome Soyer <saispo@mandriva.org> 1.38-1mdk
88 - From Stéphane Téletchéa <steletch@mandriva.org>
89 - Initial Mandriva release
90