[521] | 1 | %define _use_internal_dependency_generator 0 |
---|
| 2 | |
---|
| 3 | Name: perl-XML-Twig |
---|
[8730] | 4 | Version: 3.48 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | Summary: A perl module for processing huge XML documents in tree mode. |
---|
| 7 | License: distributable |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | URL: http://search.cpan.org/~mirod/XML-Twig/ |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | BuildRequires: perl >= 5.8.2, perl-XML-Parser >= 2.23 |
---|
| 12 | Requires: perl >= 5.8.2, perl-XML-Parser >= 2.23 |
---|
| 13 | Buildarch: noarch |
---|
| 14 | Source0: XML-Twig-%{version}.tar.gz |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | This module provides a way to process XML documents. It is build on |
---|
| 18 | top of XML::Parser. XML::Twig offers a tree interface to the |
---|
| 19 | document, while allowing you to output the parts of it that have been |
---|
| 20 | completely processed. It allows minimal resource (CPU and memory) |
---|
| 21 | usage by building the tree only for the parts of the documents that |
---|
| 22 | need actual processing, through the use of the twig_roots and |
---|
| 23 | twig_print_outside_roots options. |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n XML-Twig-%{version} |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor <<_OPT_ |
---|
| 30 | y |
---|
| 31 | _OPT_ |
---|
| 32 | make |
---|
| 33 | |
---|
| 34 | %install |
---|
| 35 | rm -rf $RPM_BUILD_ROOT |
---|
| 36 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 37 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 38 | |
---|
| 39 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 40 | |
---|
| 41 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
| 42 | |
---|
| 43 | find $RPM_BUILD_ROOT/usr -type f -print | \ |
---|
| 44 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
| 45 | grep -v perllocal.pod | \ |
---|
| 46 | grep -v %{_mandir} | \ |
---|
| 47 | grep -v "\.packlist" > XML-Twig-%{version}-filelist |
---|
| 48 | if [ "$(cat XML-Twig-%{version}-filelist)X" = "X" ] ; then |
---|
| 49 | echo "ERROR: EMPTY FILE LIST" |
---|
| 50 | exit 1 |
---|
| 51 | fi |
---|
| 52 | |
---|
| 53 | #%check |
---|
| 54 | #make test || /bin/true |
---|
| 55 | |
---|
| 56 | %clean |
---|
| 57 | rm -rf $RPM_BUILD_ROOT |
---|
| 58 | |
---|
| 59 | %files -f XML-Twig-%{version}-filelist |
---|
| 60 | %defattr(-,root,root) |
---|
| 61 | %{_mandir}/man1/xml*.1* |
---|
| 62 | %{_mandir}/man3/*3pm* |
---|
| 63 | |
---|
| 64 | %changelog |
---|
[8730] | 65 | * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.48-1 |
---|
| 66 | - new upstream release. |
---|
| 67 | |
---|
[3740] | 68 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.29-3 |
---|
| 69 | - fix typo |
---|
| 70 | |
---|
[3739] | 71 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.29-2 |
---|
[3740] | 72 | - rebuilt with perl-5.12.3 |
---|
[3739] | 73 | |
---|
[521] | 74 | * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-1 |
---|
| 75 | - rebuilt with perl-5.10.0 |
---|
| 76 | - applied new versioning policy |
---|
| 77 | |
---|
| 78 | * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-0vl1 |
---|
| 79 | - new upstream |
---|
| 80 | - changed Group to Development/Libraries |
---|
| 81 | |
---|
| 82 | * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.15-0vl2 |
---|
| 83 | - rebuilt for VineSeed (4.0) |
---|
| 84 | - changed Group to Development/Languages |
---|
| 85 | |
---|
| 86 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 3.15-0vl1 |
---|
| 87 | - new upstream release |
---|
| 88 | - build on perl-5.8.6-0vl1 |
---|
| 89 | |
---|
| 90 | * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl2 |
---|
| 91 | - built on perl-5.8.2 |
---|
| 92 | |
---|
| 93 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl1 |
---|
| 94 | - new updtream version |
---|
| 95 | - built on perl-5.8.1 |
---|
| 96 | |
---|
| 97 | * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl2 |
---|
| 98 | - build on perl-5.8.0 |
---|
| 99 | |
---|
| 100 | * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl1 |
---|
| 101 | - build for VineLinux |
---|
| 102 | |
---|
| 103 | * Tue Dec 10 2002 Chip Turner <cturner@redhat.com> |
---|
| 104 | - update to latest version from CPAN |
---|
| 105 | |
---|
| 106 | * Mon Aug 26 2002 Chip Turner <cturner@redhat.com> |
---|
| 107 | - rebuild for build failure |
---|
| 108 | |
---|
| 109 | * Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
---|
| 110 | - automated release bump and build |
---|
| 111 | |
---|
| 112 | * Wed May 29 2002 cturner@redhat.com |
---|
| 113 | - Specfile autogenerated |
---|
| 114 | |
---|