Blame SPECS/nekohtml.spec

b3b90d
%global pkg_name nekohtml
b3b90d
%{?scl:%scl_package %{pkg_name}}
b3b90d
%{?java_common_find_provides_and_requires}
b3b90d
b3b90d
# Copyright (c) 2000-2009, JPackage Project
b3b90d
# All rights reserved.
b3b90d
#
b3b90d
# Redistribution and use in source and binary forms, with or without
b3b90d
# modification, are permitted provided that the following conditions
b3b90d
# are met:
b3b90d
#
b3b90d
# 1. Redistributions of source code must retain the above copyright
b3b90d
#    notice, this list of conditions and the following disclaimer.
b3b90d
# 2. Redistributions in binary form must reproduce the above copyright
b3b90d
#    notice, this list of conditions and the following disclaimer in the
b3b90d
#    documentation and/or other materials provided with the
b3b90d
#    distribution.
b3b90d
# 3. Neither the name of the JPackage Project nor the names of its
b3b90d
#    contributors may be used to endorse or promote products derived
b3b90d
#    from this software without specific prior written permission.
b3b90d
#
b3b90d
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
b3b90d
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
b3b90d
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
b3b90d
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
b3b90d
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
b3b90d
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
b3b90d
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
b3b90d
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
b3b90d
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
b3b90d
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
b3b90d
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
b3b90d
#
b3b90d
b3b90d
Name:           %{?scl_prefix}%{pkg_name}
b3b90d
Version:        1.9.14
b3b90d
Release:        13.14%{?dist}
b3b90d
Epoch:          0
b3b90d
Summary:        HTML scanner and tag balancer
b3b90d
License:        ASL 2.0
b3b90d
URL:            http://nekohtml.sourceforge.net/
b3b90d
Source0:        http://downloads.sourceforge.net/%{pkg_name}/%{pkg_name}-%{version}.tar.gz
b3b90d
# http://www.jpackage.org/cgi-bin/viewvc.cgi/*checkout*/rpms/devel/nekohtml/nekohtml-filter.sh?root=jpackage&content-type=text%2Fplain
b3b90d
Source1:        %{pkg_name}-filter.sh
b3b90d
Source2:        nekohtml-component-info.xml
b3b90d
Source3:        http://repo1.maven.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.14/nekohtml-1.9.14.pom
b3b90d
Patch0:         %{pkg_name}-crosslink.patch
b3b90d
Patch1:         %{pkg_name}-jars.patch
b3b90d
# Add proper attributes to MANIFEST.MF file so bundle can be used by other OSGI bundles.
b3b90d
Patch2:         %{pkg_name}-osgi.patch
b3b90d
Requires:       %{?scl_prefix}bcel
b3b90d
Requires:       %{?scl_prefix}javapackages-tools >= 0:1.6
b3b90d
Requires:       %{?scl_prefix}xerces-j2 >= 0:2.7.1
b3b90d
Requires:       %{?scl_prefix}xml-commons-apis
b3b90d
BuildRequires:  %{?scl_prefix}javapackages-tools
b3b90d
BuildRequires:  %{?scl_prefix}ant
b3b90d
BuildRequires:  %{?scl_prefix}ant-junit
b3b90d
BuildRequires:  %{?scl_prefix}bcel
b3b90d
BuildRequires:  %{?scl_prefix}bcel-javadoc
b3b90d
BuildRequires:  %{?scl_prefix}xerces-j2 >= 0:2.7.1
b3b90d
BuildRequires:  %{?scl_prefix}xerces-j2-javadoc
b3b90d
BuildRequires:  %{?scl_prefix}xml-commons-apis
b3b90d
BuildArch:      noarch
b3b90d
b3b90d
%description
b3b90d
NekoHTML is a simple HTML scanner and tag balancer that enables
b3b90d
application programmers to parse HTML documents and access the
b3b90d
information using standard XML interfaces. The parser can scan HTML
b3b90d
files and "fix up" many common mistakes that human (and computer)
b3b90d
authors make in writing HTML documents.  NekoHTML adds missing parent
b3b90d
elements; automatically closes elements with optional end tags; and
b3b90d
can handle mismatched inline element tags.
b3b90d
NekoHTML is written using the Xerces Native Interface (XNI) that is
b3b90d
the foundation of the Xerces2 implementation. This enables you to use
b3b90d
the NekoHTML parser with existing XNI tools without modification or
b3b90d
rewriting code.
b3b90d
b3b90d
%package javadoc
b3b90d
Summary:        Javadoc for %{pkg_name}
b3b90d
b3b90d
%description javadoc
b3b90d
Javadoc for %{pkg_name}.
b3b90d
b3b90d
%package demo
b3b90d
Summary:        Demo for %{pkg_name}
b3b90d
Requires:       %{name} = %{epoch}:%{version}-%{release}
b3b90d
b3b90d
%description demo
b3b90d
Demonstrations and samples for %{pkg_name}.
b3b90d
b3b90d
%prep
b3b90d
%setup -q -n %{pkg_name}-%{version}
b3b90d
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b3b90d
set -e -x
b3b90d
%patch0 -p1
b3b90d
%patch1 -p1
b3b90d
%patch2
b3b90d
find . -name "*.jar" | xargs -t %{__rm}
b3b90d
%{__perl} -pi -e 's/\r$//g' *.txt doc/*.html
b3b90d
%{__rm} -r doc/javadoc
b3b90d
%{?scl:EOF}
b3b90d
b3b90d
%build
b3b90d
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b3b90d
set -e -x
b3b90d
export CLASSPATH=$(build-classpath bcel xerces-j2)
b3b90d
%{ant} \
b3b90d
    -Dbuild.sysclasspath=first \
b3b90d
    -Dlib.dir=%{_javadir} \
b3b90d
    -Djar.file=%{pkg_name}.jar \
b3b90d
    -Djar.xni.file=%{pkg_name}-xni.jar \
b3b90d
    -Djar.samples.file=%{pkg_name}-samples.jar \
b3b90d
    -Dbcel.javadoc=%{_javadocdir}/bcel \
b3b90d
    -Dj2se.javadoc=%{_javadocdir}/java \
b3b90d
    -Dxni.javadoc=%{_javadocdir}/xerces-j2-xni \
b3b90d
    -Dxerces.javadoc=%{_javadocdir}/xerces-j2-impl \
b3b90d
    clean jar jar-xni doc 
b3b90d
# test - disabled because it makes the build failing
b3b90d
%{?scl:EOF}
b3b90d
b3b90d
%install
b3b90d
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b3b90d
set -e -x
b3b90d
# Jars
b3b90d
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
b3b90d
install -p -m 644 %{pkg_name}{,-samples,-xni}.jar $RPM_BUILD_ROOT%{_javadir}/
b3b90d
b3b90d
# Scripts
b3b90d
install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{pkg_name}-filter
b3b90d
b3b90d
# POM
b3b90d
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
b3b90d
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{pkg_name}.pom
b3b90d
%add_maven_depmap -a nekohtml:nekohtml
b3b90d
b3b90d
# Javadocs
b3b90d
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
b3b90d
cp -a build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
b3b90d
%{?scl:EOF}
b3b90d
b3b90d
%files -f .mfiles
b3b90d
%doc LICENSE.txt README.txt doc/*.html
b3b90d
%attr(755,root,root) %{_bindir}/%{pkg_name}-filter
b3b90d
%{_javadir}/%{pkg_name}-xni.jar
b3b90d
b3b90d
%files javadoc
b3b90d
%{_javadocdir}/%{name}
b3b90d
b3b90d
%files demo
b3b90d
%{_javadir}/%{pkg_name}-samples.jar
b3b90d
b3b90d
%changelog
b3b90d
* Fri Jan 16 2015 Mat Booth <mat.booth@redhat.com> - 0:1.9.14-13.14
b3b90d
- Add osgi manifest patch from Fedora
b3b90d
b3b90d
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 0:1.9.14-13.13
b3b90d
- Mass rebuild 2015-01-13
b3b90d
b3b90d
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 0:1.9.14-13.12
b3b90d
- Mass rebuild 2015-01-09
b3b90d
b3b90d
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 1.9.14-13.11
b3b90d
- Migrate to .mfiles
b3b90d
b3b90d
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.10
b3b90d
- Migrate requires and build-requires to rh-java-common
b3b90d
b3b90d
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.9
b3b90d
- Mass rebuild 2014-12-15
b3b90d
b3b90d
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.8
b3b90d
- Rebuild for rh-java-common collection
b3b90d
b3b90d
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.7
b3b90d
- Mass rebuild 2014-05-26
b3b90d
b3b90d
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.6
b3b90d
- Mass rebuild 2014-02-19
b3b90d
b3b90d
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.5
b3b90d
- Mass rebuild 2014-02-18
b3b90d
b3b90d
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.4
b3b90d
- Remove requires on java
b3b90d
b3b90d
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.3
b3b90d
- SCL-ize build-requires
b3b90d
b3b90d
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.2
b3b90d
- Rebuild to regenerate auto-requires
b3b90d
b3b90d
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-13.1
b3b90d
- First maven30 software collection build
b3b90d
b3b90d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.9.14-13
b3b90d
- Mass rebuild 2013-12-27
b3b90d
b3b90d
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-12
b3b90d
- Rebuild to regenerate API documentation
b3b90d
- Resolves: CVE-2013-1571
b3b90d
b3b90d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.14-11
b3b90d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b3b90d
b3b90d
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.9.14-10
b3b90d
- Add addiotional depmap
b3b90d
b3b90d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.14-9
b3b90d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b3b90d
b3b90d
* Tue Jun 12 2012 Bill Nottingham <notting@redhat.com> 0:1.9.14-7
b3b90d
- Update buildreqs to packages that currently exist
b3b90d
b3b90d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.14-7
b3b90d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b3b90d
b3b90d
* Tue Nov 1 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.14-6
b3b90d
- Adapt to current guidelines.
b3b90d
b3b90d
* Mon Oct 10 2011 Andy Grimm <agrimm@gmail.com> - 0:1.9.14-5
b3b90d
- Add POM file (BZ #735521)
b3b90d
b3b90d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.14-4
b3b90d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b3b90d
b3b90d
* Wed Oct 6 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.14-3
b3b90d
- Drop gcj support and rpeolib.
b3b90d
b3b90d
* Mon Jul 19 2010 James Laska <jlaska@redhat.com> 0:1.9.14-2
b3b90d
- Disable gcj_support
b3b90d
- Updated nekohtml-jars.patch
b3b90d
b3b90d
* Mon Jul 15 2010 James Laska <jlaska@redhat.com> 0:1.9.14-1
b3b90d
- Update to 1.9.14
b3b90d
b3b90d
* Wed May 13 2009 Martha Benitez <mbenitez@redhat.com> 0:1.9.11-2.2
b3b90d
- Build without aot-compile
b3b90d
b3b90d
* Thu Mar 19 2009 David Walluck <dwalluck@redhat.com> 0:1.9.11-2.1
b3b90d
- BuildRequires: bcel
b3b90d
- force use of xalan-j2
b3b90d
b3b90d
* Wed Feb 11 2009 David Walluck <dwalluck@redhat.com> 0:1.9.11-2
b3b90d
- add repolib
b3b90d
b3b90d
* Wed Feb 11 2009 David Walluck <dwalluck@redhat.com> 0:1.9.11-1
b3b90d
- 1.9.6.1
b3b90d
b3b90d
* Mon Feb 12 2007 Jeff Johnston <jjohnstn@redhat.com> - 0:0.9.5-4jpp.1
b3b90d
- Update to address Fedora review comments.
b3b90d
b3b90d
* Mon May 08 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-4jpp
b3b90d
- First JPP-1.7 release
b3b90d
b3b90d
* Tue Oct 11 2005 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-3jpp
b3b90d
- Patch to JAXP13
b3b90d
b3b90d
* Mon Aug  1 2005 Ville Skyttä <scop at jpackage.org> - 0:0.9.5-2jpp
b3b90d
- Fix unversioned xni jar symlink (#10).
b3b90d
b3b90d
* Wed Jul  6 2005 Ville Skyttä <scop at jpackage.org> - 0:0.9.5-1jpp
b3b90d
- 0.9.5.
b3b90d
b3b90d
* Wed Dec 15 2004 Ville Skyttä <scop at jpackage.org> - 0:0.9.4-1jpp
b3b90d
- Update to 0.9.4.
b3b90d
b3b90d
* Tue Aug 24 2004 Fernando Nasser <fnasser@redhat.com> - 0:0.9.3-2jpp
b3b90d
- Rebuild with Ant 1.6.2
b3b90d
b3b90d
* Sat Jul  3 2004 Ville Skyttä <scop at jpackage.org> - 0:0.9.3-1jpp
b3b90d
- Update to 0.9.3.
b3b90d
- Add nekohtml-filter script.
b3b90d
b3b90d
* Thu Apr  1 2004 Ville Skyttä <scop at jpackage.org> - 0:0.9.2-1jpp
b3b90d
- Update to 0.9.2.
b3b90d
b3b90d
* Sat Dec 13 2003 Ville Skyttä <scop at jpackage.org> - 0:0.8.3-1jpp
b3b90d
- Update to 0.8.3.
b3b90d
b3b90d
* Sat Nov 15 2003 Ville Skyttä <scop at jpackage.org> - 0:0.8.2-1jpp
b3b90d
- Update to 0.8.2.
b3b90d
b3b90d
* Wed Oct  1 2003 Ville Skyttä <scop at jpackage.org> - 0:0.8.1-1jpp
b3b90d
- Update to 0.8.1.
b3b90d
- Crosslink with local J2SE and XNI javadocs.
b3b90d
- Save .spec in UTF-8.
b3b90d
b3b90d
* Thu Jun 26 2003 Ville Skyttä <scop at jpackage.org> - 0:0.7.7-1jpp
b3b90d
- Update to 0.7.7.
b3b90d
b3b90d
* Sun May 11 2003 David Walluck <david@anti-microsoft.org> 0:0.7.6-1jpp
b3b90d
- 0.7.6
b3b90d
- update for JPackage 1.5
b3b90d
b3b90d
* Sat Mar 29 2003 Ville Skyttä <scop at jpackage.org> - 0.7.4-2jpp
b3b90d
- Rebuilt for JPackage 1.5.
b3b90d
b3b90d
* Tue Mar  4 2003 Ville Skyttä <scop at jpackage.org> - 0.7.4-1jpp
b3b90d
- Update to 0.7.4.
b3b90d
b3b90d
* Mon Feb 24 2003 Ville Skyttä <scop at jpackage.org> - 0.7.3-1jpp
b3b90d
- Update to 0.7.3.
b3b90d
- Built with IBM's 1.3.1 SR3 and xerces-j2 2.3.0.
b3b90d
b3b90d
* Sat Jan 11 2003 Ville Skyttä <scop at jpackage.org> - 0.7.2-1jpp
b3b90d
- Update to 0.7.2.
b3b90d
- Run unit tests when building.
b3b90d
b3b90d
* Tue Dec 10 2002 Ville Skyttä <scop at jpackage.org> - 0.7.1-1jpp
b3b90d
- Update to 0.7.1.
b3b90d
b3b90d
* Sun Nov  3 2002 Ville Skyttä <scop at jpackage.org> - 0.6.8-1jpp
b3b90d
- 0.6.8, first JPackage release.