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