| 1 | %define _use_internal_dependency_generator 0 |
|---|
| 2 | %define module XML-Encoding |
|---|
| 3 | |
|---|
| 4 | Summary: A module for parsing encoded map XML files. |
|---|
| 5 | Name: perl-%{module} |
|---|
| 6 | Version: 2.08 |
|---|
| 7 | Release: 2%{?_dist_release} |
|---|
| 8 | License: Artistic and GPL |
|---|
| 9 | Group: Development/Libraries |
|---|
| 10 | URL: http://search.cpan.org/~shay/XML-Encoding/ |
|---|
| 11 | |
|---|
| 12 | Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/%{module}-%{version}.tar.gz |
|---|
| 13 | |
|---|
| 14 | BuildArch: noarch |
|---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 16 | BuildRequires: perl-XML-Parser |
|---|
| 17 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 18 | Requires: perl-XML-Parser |
|---|
| 19 | |
|---|
| 20 | Vendor: Project Vine |
|---|
| 21 | Distribution: Vine Linux |
|---|
| 22 | |
|---|
| 23 | %description |
|---|
| 24 | This module, which is built as a subclass of XML::Parser, provides a |
|---|
| 25 | parser for encoding map files, which are XML files. The file |
|---|
| 26 | maps/encmap.dtd in the distribution describes the structure of these |
|---|
| 27 | files. |
|---|
| 28 | |
|---|
| 29 | %prep |
|---|
| 30 | %setup -q -n %{module}-%{version} |
|---|
| 31 | |
|---|
| 32 | %build |
|---|
| 33 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
|---|
| 34 | make |
|---|
| 35 | #make test || /bin/true |
|---|
| 36 | |
|---|
| 37 | %clean |
|---|
| 38 | rm -rf $RPM_BUILD_ROOT |
|---|
| 39 | |
|---|
| 40 | %install |
|---|
| 41 | rm -rf $RPM_BUILD_ROOT |
|---|
| 42 | |
|---|
| 43 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 44 | |
|---|
| 45 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
|---|
| 46 | |
|---|
| 47 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
|---|
| 48 | |
|---|
| 49 | find $RPM_BUILD_ROOT/usr -type f -print | |
|---|
| 50 | sed "s@^$RPM_BUILD_ROOT@@g" | |
|---|
| 51 | grep -v perllocal.pod | |
|---|
| 52 | grep -v "\.packlist" > XML-Encoding-%{version}-filelist |
|---|
| 53 | if [ "$(cat XML-Encoding-%{version}-filelist)X" = "X" ] ; then |
|---|
| 54 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 55 | exit -1 |
|---|
| 56 | fi |
|---|
| 57 | |
|---|
| 58 | %check |
|---|
| 59 | make test |
|---|
| 60 | |
|---|
| 61 | %files -f XML-Encoding-%{version}-filelist |
|---|
| 62 | %defattr(-,root,root) |
|---|
| 63 | |
|---|
| 64 | %changelog |
|---|
| 65 | * Wed Nov 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.08-2 |
|---|
| 66 | - rebuilt with perl 5.16.3 |
|---|
| 67 | |
|---|
| 68 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.08-1 |
|---|
| 69 | - new upstream release |
|---|
| 70 | - add Vendor and Distribution tags |
|---|
| 71 | |
|---|
| 72 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.07-1 |
|---|
| 73 | - new upstream release |
|---|
| 74 | - updated URL |
|---|
| 75 | - changed Group to Development/Libraries |
|---|
| 76 | |
|---|
| 77 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-24vl5 |
|---|
| 78 | - applied new versioning policy |
|---|
| 79 | |
|---|
| 80 | * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-23vl6 |
|---|
| 81 | - changed Group to Development/Languages |
|---|
| 82 | |
|---|
| 83 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.01-23vl5 |
|---|
| 84 | - build on perl-5.8.6-0vl1 |
|---|
| 85 | |
|---|
| 86 | * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl4 |
|---|
| 87 | - rebuilt on perl-5.8.2 |
|---|
| 88 | |
|---|
| 89 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl3 |
|---|
| 90 | - rebuilt on perl-5.8.1 |
|---|
| 91 | |
|---|
| 92 | * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl2 |
|---|
| 93 | - build on perl-5.8.0 |
|---|
| 94 | |
|---|
| 95 | * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl1 |
|---|
| 96 | - build for VineLinux |
|---|
| 97 | |
|---|
| 98 | * Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
|---|
| 99 | - automated release bump and build |
|---|
| 100 | |
|---|
| 101 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
|---|
| 102 | - automated rebuild |
|---|
| 103 | |
|---|
| 104 | * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.01-2 |
|---|
| 105 | - imported from mandrake. tweaked man path. |
|---|
| 106 | |
|---|
| 107 | * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 1.01-1mdk |
|---|
| 108 | - Newly introduced for Foomatic. |
|---|
| 109 | |
|---|