Browse Source

NEW: latexml, perl-Parse-RecDescent, perl-XML-LibXSLT; update: perl-XML-LibXML

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1566 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
eb0b2ac11e

+ 61 - 0
l/latexml/latexml-vl.spec

@@ -0,0 +1,61 @@
+%define pkgname LaTeXML
+
+Name:           latexml
+Version:        0.7.0
+Release:        1%{?_dist_release}
+Summary:        LaTeX to XML Converter
+
+Group:          Development/Libraries
+License:        public domain
+Url:            http://dlmf.nist.gov/LaTeXML/
+Source0:        http://dlmf.nist.gov/LaTeXML/releases/%{pkgname}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildArch:	noarch
+
+BuildRequires:	perl(Parse::RecDescent)
+BuildRequires:	perl(Image::Magick)
+BuildRequires:	perl(XML::LibXML) >= 1.70
+BuildRequires:	perl(XML::LibXSLT) >= 1.70
+BuildRequires:	perl(DB_File)
+BuildRequires:	perl(Test::Simple)
+
+Distribution:	Vine
+Vendor:		Project Vine
+Packager:	munepi
+
+%description
+latexml is a program, written in Perl, that attempts to faithfully mimic TeX's behaviour, but produces XML instead of dvi. The document model of the target XML makes explicit the model implied by LaTeX. The processing and model are both extensible; you can define the mapping between TeX constructs and the XML fragments to be created. A postprocessor, latexmlpost converts this XML into other formats such as HTML or XHTML, with options to convert the math into MathML (currently only presentation) or images.
+#'
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+%__perl Makefile.PL TEXMF=%{_datadir}/texmf INSTALLDIRS=vendor
+%__make
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist | xargs %__rm -f
+
+%check
+%__make test ||:
+
+%files
+%defattr(-,root,root)
+%{_bindir}/latexml
+%{_bindir}/latexmlfind
+%{_bindir}/latexmlmath
+%{_bindir}/latexmlpost
+%{_datadir}/texmf/tex/latex/latexml/latexml.sty
+%dir %{_datadir}/texmf/tex/latex/latexml
+%{_mandir}/man*/*.*
+%{perl_vendorlib}/LaTeXML.pm
+%{perl_vendorlib}/LaTeXML/*
+%dir %{perl_vendorlib}/LaTeXML
+
+%changelog
+* Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-1
+- initial build

+ 180 - 0
p/perl-Parse-RecDescent/perl-Parse-RecDescent-vl.spec

@@ -0,0 +1,180 @@
+Name:           perl-Parse-RecDescent
+Version:        1.964
+Release:        1%{?_dist_release}
+Summary:        Parse-RecDescent Perl module
+
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/Parse-RecDescent/
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker), perl(version), perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Text::Balanced)
+
+Distribution:	Vine
+Vendor:		Project Vine
+Packager:	munepi
+
+%{?perl_default_filter}
+
+%description
+Parse::RecDescent incrementally generates top-down recursive-descent
+text parsers from simple yacc-like grammar specifications. It
+provides:
+    * Regular expressions or literal strings as terminals (tokens),
+    * Multiple (non-contiguous) productions for any rule,
+    * Repeated and optional subrules within productions,
+    * Full access to Perl within actions specified as part of the
+      grammar,
+    * Simple automated error reporting during parser generation and
+      parsing,
+    * The ability to commit to, uncommit to, or reject particular
+      productions during a parse,
+    * The ability to pass data up and down the parse tree ("down" via
+      subrule argument lists, "up" via subrule return values)
+    * Incremental extension of the parsing grammar (even during a
+      parse),
+    * Precompilation of parser objects,
+
+User-definable reduce-reduce conflict resolution via "scoring" of
+matching productions.
+
+
+%prep
+%setup -q -n Parse-RecDescent-%{version}
+
+chmod a-x demo/* tutorial/*
+%{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/*
+%{__perl} -pi -e 's|^#!\s?/opt/local/bin/perl5\.10\.0\b|#!%{__perl}|' demo/*
+for f in Changes demo/demo_dot.pl; do
+  iconv -f iso-8859-1 -t utf-8 < "$f" > "${f}_" && %__mv -f "${f}_" "$f"
+done
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%__make %{?_smp_mflags}
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec %__rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec %__rmdir {} 2>/dev/null ';'
+%__chmod -R u+w $RPM_BUILD_ROOT/*
+
+
+%check
+%__make test
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%{perl_vendorlib}/Parse/
+%{_mandir}/man3/*.3*
+%doc Changes README demo/ tutorial/
+
+
+%changelog
+* Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.964-1
+- initial build
+
+* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.964-2
+- Mass rebuild with perl-5.12.0
+
+* Fri Feb 19 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.964-1
+- update, fix previous issue and https://rt.cpan.org/Public/Bug/Display.html?id=53948
+
+* Tue Feb 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.963-2
+- apply upstream patch https://rt.cpan.org/Public/Bug/Display.html?id=54457
+  which should fix problems with rebuilds of other modules
+
+* Tue Feb  9 2010 Paul Howarth <paul@city-fan.org> 1.963-1
+- update to 1.963 (fix subtle bug in leftop and rightop due to removal of $&)
+- recode Changes as utf-8
+- more script interpreter fixes
+
+* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.962.2-1
+- updated for latest GA SQL::Translator
+- add default filtering
+- auto-update to 1.962.2 (by cpan-spec-update 0.01)
+- added a new br on perl(Text::Balanced) (version 0)
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Feb  2 2009 Stepan Kasal <skasal@redhat.com> - 1.96-1
+- new upstream version
+
+* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-5
+- Rebuild for perl 5.10 (again)
+
+* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-4
+- rebuild for new perl
+
+* Wed Nov 14 2007 Robin Norwood <rnorwood@redhat.com> - 1.95.1-3
+- Apply fixes from package review:
+  - Remove BR: perl
+  - Use iconv to convert file to utf-8
+  - Include BR: perl(Test::Pod)
+  - Fix old changelog entry
+- Resolves: bz#226274
+
+* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-2
+- add BR: perl(version), perl(Test::More)
+
+* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-1
+- bump to 1.95.1
+- correct license tag (now under perl license)
+- add BR: perl(ExtUtils::MakeMaker)
+
+* Fri Jul 20 2007 Robin Norwood <rnorwood@redhat.com> - 1.94-6.fc8
+- Bring fixes from EPEL build into F8
+- Fix minor specfile issues
+- Package the docs as well
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.94-5.2.1
+- rebuild
+
+* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.94-5.2
+- rebuild for new perl-5.8.8
+
+* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt for new gcc
+
+* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt for new gcj
+
+* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.94-5
+- #155620
+- Bring up to date with current Fedora.Extras perl spec template.
+
+* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.94-4
+- rebuild
+
+* Tue Feb 17 2004 Chip Turner <cturner@redhat.com> 1.94-2
+- fix rm to not be interactive (bz115997)
+
+* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.94-1
+- update to 1.94
+
+* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
+- automated release bump and build
+
+* Sat Jul 20 2002 Chip Turner <cturner@localhost.localdomain>
+- remove Text::Balanced modules since they are now in core perl
+
+* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
+- description update
+
+* Fri Jun 07 2002 cturner@redhat.com
+- Specfile autogenerated

+ 59 - 19
p/perl-XML-LibXML/perl-XML-LibXML-vl.spec

@@ -1,19 +1,28 @@
 Summary: Perl interface to the libxml2 library
 Name: perl-XML-LibXML
-Version: 1.66
+# NOTE: also update perl-XML-LibXSLT to the same version, see
+# https://bugzilla.redhat.com/show_bug.cgi?id=469480
+Version: 1.70
 Release: 1%{?_dist_release}
-License: GPL or Artistic
+License: GPL+ or Artistic
 Group: Development/Libraries
 URL: http://search.cpan.org/dist/XML-LibXML/
-Source0: XML-LibXML-%{version}.tar.gz
+Source0: http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+Requires:       %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
+Requires:       %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
+Requires:       %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildRequires: perl >= 2:5.8.0
-BuildRequires: perl-XML-LibXML-Common
-BuildRequires: perl-XML-NamespaceSupport
-BuildRequires: perl-XML-SAX
+BuildRequires: perl(XML::NamespaceSupport)
+BuildRequires: perl(XML::SAX)
+BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More)
 BuildRequires: libxml2-devel
-Requires: perl >= %(perl -MConfig -e 'print $Config{version}')
+
+Provides:       perl-XML-LibXML-Common = %{version}
+Obsoletes:      perl-XML-LibXML-Common <= 0.13
 
 %description
 This module implements a Perl interface to the GNOME libxml2 library
@@ -25,32 +34,33 @@ validating XML parser and the high performance DOM implementation.
 %setup -q -n XML-LibXML-%{version}
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" SKIP_SAX_INSTALL=1 perl Makefile.PL INSTALLDIRS=vendor
-make OPTIMIZE="$RPM_OPT_FLAGS"
+%__perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%__make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install \
+%__rm -rf $RPM_BUILD_ROOT
+%__make install \
   PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
   INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
 find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
-  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
+  -o \( -name '*.bs' -a -empty \) \) -exec %__rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec %__rmdir {} 2>/dev/null ';'
+%__chmod -R u+w $RPM_BUILD_ROOT/*
 
 for i in Changes; do
-  /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i
+  /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && %__mv -f $i.conv $i
 done
 
-%check || :
-make test
+%check
+%__make test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
 
 %triggerin -- perl-XML-SAX
 for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
-  perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" || :
+  perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \
+    2>/dev/null || :
 done
 
 %preun
@@ -69,6 +79,36 @@ fi
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.70-1
+- new upstream release
+
+* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.70-5
+- Mass rebuild with perl-5.12.0
+
+* Fri Jan  8 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-4
+- remove BR XML::LibXML::Common
+
+* Mon Nov 30 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-3
+- corrected version of obsoletes
+
+* Thu Nov 26 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-2
+- 541605 this package now contains XML::LibXML::Common
+
+* Fri Nov 20 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-1
+- update to fix 539102
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Dec 11 2008 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.69-1
+- update to 1.69
+
+* Fri Aug 01 2008 Lubomir Rintel <lkundrak@v3.sk> - 1:1.66-2
+- Supress warning about nonexistent file in perl-XML-SAX install trigger
+
 * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.66-1
 - new upsteream release
 - built with perl-5.10.0-2

+ 155 - 0
p/perl-XML-LibXSLT/perl-XML-LibXSLT-vl.spec

@@ -0,0 +1,155 @@
+%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
+
+Name:		perl-XML-LibXSLT
+
+# NOTE: also update perl-XML-LibXML to a compatible version.  See below why.
+Version:	1.70
+Release:	1%{?_dist_release}
+
+Summary:	Perl module for interfacing to GNOME's libxslt
+
+#'
+
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/XML-LibXSLT/
+Source0:	http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXSLT-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	libxslt-devel >= 1.1.18, gdbm-devel
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# the package shares code with perl-XML-LibXML, we have to require a compatible version
+# see https://bugzilla.redhat.com/show_bug.cgi?id=469480
+# for testing is needed the same version of XML::LibXML
+BuildRequires:	perl(XML::LibXML) >= 1.70
+Requires:	perl(XML::LibXML) >= 1.70
+
+Distribution:	Vine
+Vendor:		Project Vine
+Packager:	munepi
+
+%description
+This module is a fast XSLT library, based on the Gnome libxslt engine
+that you can find at http://www.xmlsoft.org/XSLT/
+
+%prep
+%setup -q -n XML-LibXSLT-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%__make %{?_smp_mflags}
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec %__rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec %__rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec %__rmdir {} 2>/dev/null ';'
+%__chmod -R u+w $RPM_BUILD_ROOT/*
+
+%check
+%__make test
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README benchmark.pl example
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/XML
+%exclude %{perl_vendorarch}/XML/benchmark.pl
+%{_mandir}/man3/*.3*
+
+%changelog
+* Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.70-1
+- initial build
+
+* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.70-4
+- Mass rebuild with perl-5.12.0
+
+* Thu Mar 11 2010 Paul Howarth <paul@city-fan.org> - 1.70-3
+- rebuild for new gdbm
+
+* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.70-2
+- rebuild against perl 5.10.1
+
+* Fri Nov 20 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-1
+- update to fix 539102
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.68-4
+- rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Mar 18 2009 Stepan Kasal <skasal@redhat.com> - 1.68-3
+- patch to fix a refcounting bug leading to segfaults (#490781)
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.68-2
+- rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Dec 20 2008 Paul Howarth <paul@city-fan.org> - 1.68-1
+- update to 1.68
+- relax hard version requirement on XML::LibXML, which is at 1.69 upstream
+  but 1.67 or above will suffice (care will still have to be taken to keep
+  the packages in sync, particularly when XML::LibXML is updated)
+- specify $RPM_OPT_FLAGS once rather than twice
+- drop historical perl version requirement, which is met even by EL-3
+- explicitly buildreq ExtUtils::MakeMaker rather than just perl-devel
+
+* Mon Nov  3 2008 Stepan Kasal <skasal@redhat.com> - 1.66-2
+- require XML::LibXML of the same version
+
+* Fri Aug  8 2008 Zing <zing@fastmail.fm> - 1.66-1
+- update to 1.66
+
+* Sat May 31 2008 Zing <zing@fastmail.fm> - 1.63-6
+- rpm check stage barfs on || :
+
+* Mon Mar  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.63-5
+- rebuild for new perl (again)
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.63-4
+- Autorebuild for GCC 4.3
+
+* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.63-3
+- rebuild for new perl
+
+* Sat Jan 19 2008 Zing <zing@fastmail.fm> - 1.63-2
+- build requires gdbm-devel
+
+* Fri Jan 18 2008 Zing <zing@fastmail.fm> - 1.63-1
+- update to 1.63
+
+* Sat Aug 11 2007 Zing <zing@fastmail.fm> - 1.62-2
+- require perl-devel
+
+* Tue Aug  7 2007 Zing <zing@fastmail.fm> - 1.62-1
+- update to 1.62
+- Conform to Fedora Licensing Guideline
+
+* Fri Sep  8 2006 Zing <zing@fastmail.fm> - 1.58-3
+- rebuild for FE6
+
+* Tue Feb 14 2006 Zing <shishz@hotpop.com> - 1.58-2
+- rebuild for FE5
+
+* Wed Aug 17 2005 Zing <shishz@hotpop.com> - 1.58-1
+- new upstream
+- use dist macro
+
+* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
+- rebuilt
+
+* Sat Mar  5 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.57-3
+- Drop pre-FC2 LD_RUN_PATH hack.
+- Install benchmark.pl only as %%doc.
+
+* Fri Feb 26 2005 Zing <shishz@hotpop.com> - 1.57-2
+- QA from Ville Skyttä
+-	BuildRequires XML::LibXML >= 1.57
+-	BuildRequires libxslt-devel
+-	put benchmark.pl in %%doc
+
+* Fri Feb 25 2005 Zing <shishz@hotpop.com> - 1.57-1
+- First build.
+