1 | %define _use_internal_dependency_generator 0 |
---|
2 | |
---|
3 | %define name perl-XML-Dumper |
---|
4 | %define module XML-Dumper |
---|
5 | |
---|
6 | Summary: Perl module for dumping Perl objects from/to XML |
---|
7 | Name: %{name} |
---|
8 | Version: 0.81 |
---|
9 | Release: 3%{?_dist_release} |
---|
10 | License: GPL |
---|
11 | Group: Development/Libraries |
---|
12 | URL: http://search.cpan.org/~mikewong/XML-Dumper/ |
---|
13 | |
---|
14 | Source0: http://www.cpan.org/authors/id/E/EI/EISEN/%{module}-%{version}.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
19 | BuildRequires: perl(XML::Parser) >= 2.34 |
---|
20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
21 | Requires: perl(XML::Parser) |
---|
22 | |
---|
23 | %description |
---|
24 | XML::Dumper dumps Perl data to XML format. XML::Dumper can also read |
---|
25 | XML data that was previously dumped by the module and convert it back |
---|
26 | to Perl. Perl objects are blessed back to their original packaging; |
---|
27 | if the modules are installed on the system where the perl objects are |
---|
28 | reconstituted from xml, they will behave as expected. Intuitively, if |
---|
29 | the perl objects are converted and reconstituted in the same |
---|
30 | environment, all should be well. |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q -n %{module}-%{version} |
---|
34 | |
---|
35 | %build |
---|
36 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
37 | make |
---|
38 | find ./ -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!%{__perl}|g" |
---|
39 | |
---|
40 | %clean |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | |
---|
43 | %install |
---|
44 | rm -rf $RPM_BUILD_ROOT |
---|
45 | mkdir -p $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man3} |
---|
46 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
47 | #make PREFIX=$RPM_BUILD_ROOT%{_prefix} \ |
---|
48 | # NSTALLSITEARCH=%{buildroot}%{perl_sitearch} install |
---|
49 | |
---|
50 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
51 | |
---|
52 | find $RPM_BUILD_ROOT/usr -type f -print | |
---|
53 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
54 | grep -v ^%{_mandir} | |
---|
55 | grep -v perllocal.pod | |
---|
56 | grep -v "\.packlist" > XML-Dumper-%{version}-filelist |
---|
57 | if [ "$(cat XML-Dumper-%{version}-filelist)X" = "X" ] ; then |
---|
58 | echo "ERROR: EMPTY FILE LIST" |
---|
59 | exit -1 |
---|
60 | fi |
---|
61 | install -m 644 blib/man3/* %{buildroot}%{_mandir}/man3 |
---|
62 | |
---|
63 | %files -f XML-Dumper-%{version}-filelist |
---|
64 | %defattr(-,root,root) |
---|
65 | %doc README Changes MANIFEST |
---|
66 | %{_mandir}/man3/*3pm* |
---|
67 | |
---|
68 | %changelog |
---|
69 | * Sun Nov 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.81-3 |
---|
70 | - rebuilt with perl 5.16.3 |
---|
71 | |
---|
72 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.81-2 |
---|
73 | - rebuild with perl-5.12.3 |
---|
74 | |
---|
75 | * Fri Aug 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-1 |
---|
76 | - applied new versioning policy |
---|
77 | - rebuilt with perl-5.10.0 |
---|
78 | - changed Group to Development/Libraries |
---|
79 | |
---|
80 | * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-0vl1 |
---|
81 | - new upstream release |
---|
82 | - rebuilt with perl-5.8.6 |
---|
83 | - changed Group to Development/Languages |
---|
84 | |
---|
85 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 0.71-0vl1 |
---|
86 | - new upstream release |
---|
87 | |
---|
88 | * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl2 |
---|
89 | - built on perl-5.8.2 |
---|
90 | |
---|
91 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl1 |
---|
92 | - new upstream version |
---|
93 | - built on perl-5.8.1 |
---|
94 | |
---|
95 | * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl2 |
---|
96 | - build on perl-5.8.0 |
---|
97 | |
---|
98 | * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl1 |
---|
99 | - build for VineLinux |
---|
100 | |
---|
101 | * Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
---|
102 | - automated release bump and build |
---|
103 | |
---|
104 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
105 | - automated rebuild |
---|
106 | |
---|
107 | * Mon Jul 23 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-5 |
---|
108 | - got it to work. |
---|
109 | |
---|
110 | * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-4 |
---|
111 | - imported from mandrake. tweaked man path. |
---|
112 | |
---|
113 | * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-3mdk |
---|
114 | - Fixed an error in changelog. |
---|
115 | |
---|
116 | * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-2mdk |
---|
117 | - Clean up spec. |
---|
118 | - Fixed distribution tag. |
---|
119 | - Needed by eGrail. |
---|
120 | |
---|
121 | * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 0.4-1mdk |
---|
122 | - Newly introduced for Foomatic. |
---|
123 | |
---|