Blob Blame History Raw
Name: glassfish-dtd-parser
Version: 1.2
Release: 0.4.20120120svn%{?dist}
Summary: Library for parsing XML DTDs
Group: Development/Libraries
License: CDDL 1.1 and GPLv2 with exceptions

# svn export glassfish-dtd-parser-1.2-SNAPSHOT
# find glassfish-dtd-parser-1.2-SNAPSHOT/ -name '*.jar' -delete
# tar czf glassfish-dtd-parser-1.2-SNAPSHOT-src-svn.tar.gz glassfish-dtd-parser-1.2-SNAPSHOT
Source0: %{name}-%{version}-SNAPSHOT-src-svn.tar.gz

BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: bsf
BuildRequires: maven
BuildRequires: maven-compiler-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: sonatype-oss-parent

Requires: jpackage-utils

BuildArch: noarch

Library for parsing XML DTDs.

%package javadoc
Group: Development/Libraries
Summary: Javadoc for %{name}
Requires: jpackage-utils

%description javadoc
This package contains javadoc for %{name}.

%setup -q -n glassfish-dtd-parser-1.2-SNAPSHOT

mvn-rpmbuild install javadoc:aggregate

install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
install -d -m 755 %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir}

install -m 644 target/dtd-parser-1.2-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar

cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/.

cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%add_maven_depmap JPP-%{name}.pom %{name}.jar

%doc LICENSE.txt

%files javadoc
%doc LICENSE.txt

* Thu Jul 19 2012 Fedora Release Engineering <> - 1.2-0.4.20120120svn
- Rebuilt for

* Mon Feb 13 2012 Juan Hernandez <> 1.2-0.3.20120120svn
- Fixed the release number

* Mon Feb 13 2012 Juan Hernandez <> 1.2-0.2.20120120svn
- Updated license reference

* Mon Feb 13 2012 Juan Hernandez <> 1.2-0.1.20120120svn
- Initial packaging