| 1 | Summary: a simple generic namespace support class for perl |
|---|
| 2 | Name: perl-XML-NamespaceSupport |
|---|
| 3 | Version: 1.09 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | License: distributable |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | Source0: http://www.cpan.org/authors/id/R/RB/RBERJON/XML-NamespaceSupport-%{version}.tar.gz |
|---|
| 8 | Url: http://search.cpan.org/search?dist=XML-NamespaceSupport |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 10 | BuildArch: noarch |
|---|
| 11 | BuildRequires: perl >= 5.004 |
|---|
| 12 | Requires: perl >= 5.004 |
|---|
| 13 | |
|---|
| 14 | %description |
|---|
| 15 | This module offers a simple to process namespaced XML names |
|---|
| 16 | (unames) from within any application that may need them. It |
|---|
| 17 | also helps maintain a prefix to namespace URI map, and provides |
|---|
| 18 | a number of basic checks. |
|---|
| 19 | |
|---|
| 20 | %prep |
|---|
| 21 | %setup -q -n XML-NamespaceSupport-%{version} |
|---|
| 22 | |
|---|
| 23 | %build |
|---|
| 24 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
|---|
| 25 | make OPTIMIZE="$RPM_OPT_FLAGS" |
|---|
| 26 | |
|---|
| 27 | %install |
|---|
| 28 | rm -rf $RPM_BUILD_ROOT |
|---|
| 29 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 30 | |
|---|
| 31 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
|---|
| 32 | |
|---|
| 33 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
|---|
| 34 | sed "s@^$RPM_BUILD_ROOT@@g" | |
|---|
| 35 | grep -v ^%{_mandir} | |
|---|
| 36 | grep -v perllocal.pod | |
|---|
| 37 | grep -v "\.packlist" > %{name}.files |
|---|
| 38 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
|---|
| 39 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 40 | exit -1 |
|---|
| 41 | fi |
|---|
| 42 | |
|---|
| 43 | %check |
|---|
| 44 | make test |
|---|
| 45 | |
|---|
| 46 | %clean |
|---|
| 47 | rm -rf $RPM_BUILD_ROOT |
|---|
| 48 | |
|---|
| 49 | %files -f %{name}.files |
|---|
| 50 | %defattr(-,root,root) |
|---|
| 51 | %doc README Changes |
|---|
| 52 | %{_mandir}/man?/* |
|---|
| 53 | |
|---|
| 54 | %changelog |
|---|
| 55 | * Sun May 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.09-2 |
|---|
| 56 | - rebuild with perl-5.12.3 |
|---|
| 57 | |
|---|
| 58 | * Fri May 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.09-1 |
|---|
| 59 | - new upsteram release |
|---|
| 60 | - used vendor_perl dir |
|---|
| 61 | - changed Group to Development/Libraries |
|---|
| 62 | - rebuilt with perl 5.10.0-2 |
|---|
| 63 | |
|---|
| 64 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.08-0vl2 |
|---|
| 65 | - build on perl-5.8.6-0vl1 |
|---|
| 66 | |
|---|
| 67 | * Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 1.08-0vl1 |
|---|
| 68 | - new upstream version |
|---|
| 69 | - changed to License |
|---|
| 70 | |
|---|
| 71 | * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.04-0vl1 |
|---|
| 72 | - first build for Vine Linux |
|---|