[5791] | 1 | Summary: XML-SAX Perl module |
---|
| 2 | Name: perl-XML-SAX |
---|
| 3 | Version: 0.99 |
---|
[5793] | 4 | Release: 2%{?_dist_release} |
---|
[521] | 5 | |
---|
[5791] | 6 | Group: Development/Libraries |
---|
| 7 | License: GPL+ or Artistic |
---|
| 8 | URL: http://search.cpan.org/dist/XML-SAX/ |
---|
| 9 | Source0: http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
[521] | 11 | |
---|
[5791] | 12 | BuildArch: noarch |
---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 14 | BuildRequires: perl(XML::NamespaceSupport) >= 0.03 |
---|
| 15 | # The following creates circular dependency, but they are not needed for build. |
---|
| 16 | #BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common) |
---|
| 17 | # XML::SAX::Base became independent package, BR just for test |
---|
| 18 | BuildRequires: perl(XML::SAX::Base) |
---|
[521] | 19 | |
---|
[5791] | 20 | Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}')) |
---|
| 21 | Requires: perl(XML::LibXML) perl(XML::LibXML::Common) |
---|
[521] | 22 | |
---|
| 23 | %description |
---|
| 24 | XML::SAX consists of several framework classes for using and building |
---|
| 25 | Perl SAX2 XML parsers, filters, and drivers. It is designed around the |
---|
| 26 | need to be able to "plug in" different SAX parsers to an application |
---|
| 27 | without requiring programmer intervention. Those of you familiar with |
---|
| 28 | the DBI will be right at home. Some of the designs come from the Java |
---|
| 29 | JAXP specification (SAX part), only without the javaness. |
---|
| 30 | |
---|
[5791] | 31 | |
---|
[521] | 32 | %prep |
---|
[5791] | 33 | %setup -q -n XML-SAX-%{version} |
---|
[521] | 34 | |
---|
[5791] | 35 | %if %{_dist_release} > "vl6" |
---|
| 36 | %{?perl_default_filter: |
---|
| 37 | %filter_from_provides /^perl(XML::SAX::PurePerl)$/d |
---|
| 38 | %filter_from_requires /^perl(XML::SAX::PurePerl::\(DTDDecls\|DocType\|EncodingDetect\|XMLDecl\|NoUnicodeExt\|UnicodeExt\|Reader::NoUnicodeExt\))/d |
---|
| 39 | %perl_default_filter} |
---|
| 40 | %global __provides_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(XML::SAX::PurePerl\\) |
---|
| 41 | %global __requires_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::SAX::PurePerl::(DTDDecls|DocType|EncodingDetect|XMLDecl|NoUnicodeExt|UnicodeExt|Reader::NoUnicodeExt)\\) |
---|
[521] | 42 | |
---|
[5791] | 43 | %{?perl_default_subpackage_tests} |
---|
[521] | 44 | |
---|
[5791] | 45 | %else |
---|
| 46 | cat << \EOF > %{name}-prov |
---|
| 47 | #!/bin/sh |
---|
| 48 | %{__perl_provides} $* |\ |
---|
| 49 | sed -e '/perl(XML::SAX::PurePerl)/d' |
---|
| 50 | EOF |
---|
[521] | 51 | |
---|
[5791] | 52 | %global __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov |
---|
| 53 | chmod +x %{__perl_provides} |
---|
| 54 | |
---|
| 55 | cat << \EOF > %{name}-req |
---|
| 56 | #!/bin/sh |
---|
| 57 | %{__perl_requires} $* |\ |
---|
| 58 | sed -e '/perl(XML::SAX::PurePerl::\(DTDDecls\|DocType\|EncodingDetect\|XMLDecl\|NoUnicodeExt\|UnicodeExt\|Reader::NoUnicodeExt\))/d' |
---|
| 59 | EOF |
---|
| 60 | |
---|
| 61 | %global __perl_requires %{_builddir}/XML-SAX-%{version}/%{name}-req |
---|
| 62 | chmod +x %{__perl_requires} |
---|
| 63 | %endif |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %build |
---|
| 67 | echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 68 | make %{?_smp_mflags} |
---|
| 69 | |
---|
[521] | 70 | %install |
---|
[5791] | 71 | rm -rf %{buildroot} |
---|
| 72 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 73 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 74 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 75 | chmod -R u+w %{buildroot}/* |
---|
[521] | 76 | |
---|
[5791] | 77 | touch %{buildroot}%{perl_vendorlib}/XML/SAX/ParserDetails.ini |
---|
[521] | 78 | |
---|
[5791] | 79 | %check |
---|
| 80 | make test |
---|
[521] | 81 | |
---|
[5791] | 82 | %clean |
---|
| 83 | rm -rf %{buildroot} |
---|
[521] | 84 | |
---|
[5791] | 85 | |
---|
[521] | 86 | %post |
---|
[5791] | 87 | if [ ! -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" ] ; then |
---|
| 88 | perl -MXML::SAX -e \ |
---|
| 89 | 'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null || : |
---|
| 90 | else |
---|
| 91 | cp -p "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" |
---|
| 92 | fi |
---|
[521] | 93 | |
---|
[5791] | 94 | %triggerun -- perl-XML-LibXML < 1.58-8 |
---|
| 95 | if [ -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" ] ; then |
---|
| 96 | mv "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" |
---|
| 97 | fi |
---|
| 98 | |
---|
[521] | 99 | %preun |
---|
[5791] | 100 | # create backup of ParserDetails.ini, therefore user's configuration is used |
---|
| 101 | if [ $1 -eq 0 ] ; then |
---|
[521] | 102 | perl -MXML::SAX -e \ |
---|
[5791] | 103 | 'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()' || : |
---|
[521] | 104 | fi |
---|
[5791] | 105 | [ -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" ] && \ |
---|
| 106 | rm -rf "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" || : |
---|
[521] | 107 | |
---|
[5791] | 108 | %files |
---|
| 109 | %doc Changes LICENSE README |
---|
[521] | 110 | %dir %{perl_vendorlib}/XML |
---|
| 111 | %{perl_vendorlib}/XML/SAX.pm |
---|
| 112 | %dir %{perl_vendorlib}/XML/SAX |
---|
| 113 | %{perl_vendorlib}/XML/SAX/*.pm |
---|
| 114 | %{perl_vendorlib}/XML/SAX/*.pod |
---|
| 115 | %{perl_vendorlib}/XML/SAX/PurePerl |
---|
[5791] | 116 | %{_mandir}/man3/XML::*.3pm* |
---|
[521] | 117 | %ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini |
---|
| 118 | |
---|
[5791] | 119 | |
---|
[521] | 120 | %changelog |
---|
[5793] | 121 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.99-2 |
---|
| 122 | - rebuild |
---|
| 123 | |
---|
[5791] | 124 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.99-1 |
---|
| 125 | - updated to 0.99 |
---|
| 126 | - revamped spec in accordance with Fedora's 0.99-2 |
---|
| 127 | - previous Vine changelogs as follows: |
---|
[3153] | 128 | |
---|
[5791] | 129 | - Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.16-3 |
---|
| 130 | - drebuild with perl-5.12.3 |
---|
| 131 | - using __perl_requires macro for VineSeed (vl6) |
---|
| 132 | |
---|
| 133 | - Sun Jun 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16-2 |
---|
| 134 | - added Requires(post,preun): perl-XML-LibXML |
---|
| 135 | |
---|
| 136 | - Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16-1 |
---|
| 137 | - new upstream release |
---|
| 138 | - built with perl-5.10.0-2 |
---|
| 139 | - added SOURCE1, 2 for avoiding unwanted dependancies |
---|
| 140 | |
---|
| 141 | - Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 0.12-0vl2 |
---|
| 142 | - build on perl-5.8.6-0vl1 |
---|
| 143 | |
---|
| 144 | - Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 0.12-0vl1 |
---|
| 145 | - new upstream version |
---|
| 146 | - updated patch0 to perl-XML-SAX-0.12-makefile.patch |
---|
| 147 | |
---|
| 148 | - Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.10-0vl1 |
---|
| 149 | - first build for Vine Linux |
---|
[521] | 150 | |
---|
[5791] | 151 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-2 |
---|
| 152 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
[521] | 153 | |
---|
[5791] | 154 | * Fri Oct 07 2011 Marcela Mašláňová <mmaslano@redhat.com> 0.99-1 |
---|
| 155 | - update to 0.99 |
---|
[521] | 156 | |
---|
[5791] | 157 | * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.96-15 |
---|
| 158 | - Perl mass rebuild |
---|
[521] | 159 | |
---|
[5791] | 160 | * Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-14 |
---|
| 161 | - fix macros to work with new macros |
---|
| 162 | - clean spec |
---|
| 163 | |
---|
| 164 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-13 |
---|
| 165 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 166 | |
---|
| 167 | * Mon Jan 24 2011 Adrian Reber <adrian@lisas.de> - 0.96-12 |
---|
| 168 | - rebuild for ppc |
---|
| 169 | |
---|
| 170 | * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.96-11 |
---|
| 171 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 172 | |
---|
| 173 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.96-10 |
---|
| 174 | - Mass rebuild with perl-5.12.0 |
---|
| 175 | |
---|
| 176 | * Fri Feb 5 2010 Stepan Kasal <skasal@redhat.com> - 0.96-9 |
---|
| 177 | - anchor the filtering regexps |
---|
| 178 | |
---|
| 179 | * Fri Feb 5 2010 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-8 |
---|
| 180 | - XML-LibXML use triggers for XML::SAX update. Deleting of settings in |
---|
| 181 | ParserDetails.ini is solved by post and preun part, which create backup. |
---|
| 182 | |
---|
| 183 | * Thu Nov 12 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-7 |
---|
| 184 | - instead of path into post used perl_vendorlib macro |
---|
| 185 | - rebuilt will be needed for perl-5.10.1 |
---|
| 186 | |
---|
| 187 | * Thu Nov 12 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-6 |
---|
| 188 | - post scriptlet needs to check whether the file is installed. When it isn't, |
---|
| 189 | then it's needed call for adding PurePerl parser |
---|
| 190 | http://perl-xml.sourceforge.net/faq/#parserdetails.ini |
---|
| 191 | |
---|
| 192 | * Mon Oct 19 2009 Stepan Kasal <skasal@redhat.com> - 0.96-5 |
---|
| 193 | - use the filtering macros |
---|
| 194 | |
---|
| 195 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-4 |
---|
| 196 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 197 | |
---|
| 198 | * Tue Apr 28 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-3 |
---|
| 199 | - 478905 fix scriptlets |
---|
| 200 | |
---|
| 201 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-2 |
---|
| 202 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 203 | |
---|
| 204 | * Thu Dec 11 2008 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-1 |
---|
| 205 | - update to 0.96, big leap in versioning |
---|
| 206 | |
---|
| 207 | * Sun Mar 2 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-5 |
---|
| 208 | - Re-enable XML::LibXML BuildRequires |
---|
| 209 | |
---|
| 210 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-4 |
---|
| 211 | - Rebuild for perl 5.10 (again) |
---|
| 212 | |
---|
| 213 | * Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-3.1 |
---|
| 214 | - temporarily disable BR against perl-XML-LibXML |
---|
| 215 | |
---|
| 216 | * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-3 |
---|
| 217 | - rebuild for new perl |
---|
| 218 | |
---|
| 219 | * Sat Jul 07 2007 Robin Norwood <rnorwood@redhat.com> - 0.16-2 |
---|
| 220 | - Resolves: rhbz#247213 |
---|
| 221 | - Fix provides and requires scripts. |
---|
| 222 | |
---|
| 223 | * Mon Jul 02 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.16-1 |
---|
| 224 | - Update to 0.16. |
---|
| 225 | - Brings specfile closer to Fedora Perl template. |
---|
| 226 | - Corrects Source0 URL (upstream maintainer has changed). |
---|
| 227 | - Move Requires filter into spec, and add Provides filter. |
---|
| 228 | |
---|
| 229 | * Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.15-1 |
---|
| 230 | - New version: 0.15 |
---|
| 231 | |
---|
| 232 | * Fri Jun 09 2006 Jason Vas Dias <jvdias@redhat.com> - 0.14-2 |
---|
| 233 | - fix bug 194706: fails to build under (new!) mock |
---|
| 234 | |
---|
| 235 | * Mon Jun 05 2006 Jason Vas Dias <jvdias@redhat.com> - 0.14-1 |
---|
| 236 | - upgrade to 0.14 |
---|
| 237 | |
---|
| 238 | * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.13-1.1 |
---|
| 239 | - rebuild for new perl-5.8.8 |
---|
| 240 | |
---|
| 241 | * Mon Dec 19 2005 Jason Vas Dias <jvdias@redhat.com> - 0.13-1 |
---|
| 242 | - upgrade to 0.13 |
---|
| 243 | |
---|
| 244 | * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 245 | - rebuilt for new gcc |
---|
| 246 | |
---|
| 247 | * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 248 | - rebuilt for new gcj |
---|
| 249 | |
---|
| 250 | * Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0.12-7 |
---|
| 251 | - #121167 |
---|
| 252 | - Handle ParserDetails.ini parser registration. |
---|
| 253 | - Require perl(:MODULE_COMPAT_*). |
---|
| 254 | - Own installed directories. |
---|
| 255 | |
---|
| 256 | * Wed Oct 22 2003 Chip Turner <cturner@redhat.com> - 0.12-1 |
---|
| 257 | - Specfile autogenerated. |
---|
| 258 | |
---|