Blame SPECS/txw2.spec

483f59
Name: txw2
483f59
Version: 20110809
483f59
Release: 7%{?dist}
483f59
Summary: Typed XML writer for Java
483f59
Group: Development/Libraries
483f59
License: CDDL and GPLv2 with exceptions
483f59
URL: https://txw.dev.java.net
483f59
483f59
# svn export https://svn.java.net/svn/jaxb~version2/tags/txw2-project-20110809/ txw2-20110809
483f59
# tar -zcvf txw2-20110809.tar.gz txw2-20110809
483f59
Source0: %{name}-%{version}.tar.gz
483f59
483f59
# Remove the reference to the parent net.java:jvnet-parent, as no package
483f59
# contains that artifact:
483f59
Patch0: %{name}-%{version}-pom.patch
483f59
483f59
# Update to use the version of args4j available in the distribution:
483f59
Patch1: %{name}-%{version}-args4j.patch
483f59
483f59
BuildArch: noarch
483f59
483f59
BuildRequires: jpackage-utils
483f59
BuildRequires: java-devel
483f59
BuildRequires: maven-local
483f59
483f59
BuildRequires: maven-compiler-plugin
483f59
BuildRequires: maven-install-plugin
483f59
BuildRequires: maven-jar-plugin
483f59
BuildRequires: maven-javadoc-plugin
483f59
BuildRequires: maven-release-plugin
483f59
BuildRequires: maven-resources-plugin
483f59
BuildRequires: maven-surefire-plugin
483f59
BuildRequires: maven-surefire-provider-junit4
483f59
BuildRequires: maven-shared
483f59
BuildRequires: args4j
483f59
BuildRequires: xsom
483f59
BuildRequires: rngom
483f59
BuildRequires: codemodel
483f59
483f59
Requires: jpackage-utils
483f59
Requires: java
483f59
Requires: args4j
483f59
Requires: xsom
483f59
Requires: rngom
483f59
Requires: codemodel
483f59
483f59
483f59
%description
483f59
Typed XML writer for Java.
483f59
483f59
483f59
%package javadoc
483f59
Summary: Javadocs for %{name}
483f59
Group: Documentation
483f59
Requires: jpackage-utils
483f59
483f59
483f59
%description javadoc
483f59
This package contains the API documentation for %{name}.
483f59
483f59
483f59
%prep
483f59
%setup -q
483f59
%patch0 -p1
483f59
%patch1 -p1
483f59
483f59
483f59
%build
483f59
mvn-rpmbuild \
483f59
  -Dproject.build.sourceEncoding=UTF-8 \
483f59
  install \
483f59
  javadoc:aggregate
483f59
483f59
483f59
%install
483f59
483f59
# Jar files:
483f59
install -d -m 755 %{buildroot}%{_javadir}
483f59
cp -p runtime/target/txw2-%{version}.jar %{buildroot}%{_javadir}/txw2.jar
483f59
cp -p compiler/target/txwc2-%{version}.jar %{buildroot}%{_javadir}/txwc2.jar
483f59
483f59
# POM files:
483f59
install -d -m 755 %{buildroot}%{_mavenpomdir}
483f59
cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-txw2-project.pom
483f59
cp -p runtime/pom.xml %{buildroot}%{_mavenpomdir}/JPP-txw2.pom
483f59
cp -p compiler/pom.xml %{buildroot}%{_mavenpomdir}/JPP-txwc2.pom
483f59
483f59
# Dependencies map:
483f59
%add_maven_depmap JPP-txw2-project.pom
483f59
%add_maven_depmap JPP-txw2.pom txw2.jar
483f59
%add_maven_depmap JPP-txwc2.pom txwc2.jar
483f59
483f59
# Javadoc files:
483f59
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
483f59
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
483f59
483f59
483f59
%files
483f59
%{_mavenpomdir}/*
483f59
%{_mavendepmapfragdir}/*
483f59
%{_javadir}/*
483f59
%doc license.txt
483f59
483f59
483f59
%files javadoc
483f59
%{_javadocdir}/%{name}
483f59
%doc license.txt
483f59
483f59
483f59
%changelog
483f59
* Fri Feb 22 2013 Juan Hernandez <juan.hernandez@redhat.com> - 20110809-7
483f59
- Add build dependency on maven-shared (rhbz 914555)
483f59
483f59
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110809-6
483f59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
483f59
483f59
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 20110809-5
483f59
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
483f59
- Replace maven BuildRequires with maven-local
483f59
483f59
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110809-4
483f59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
483f59
483f59
* Fri Mar 2 2012 Juan Hernandez <juan.hernandez@redhat.com> 20110809-3
483f59
- Use the jar names from upstream
483f59
- Add comments describing the patches
483f59
483f59
* Fri Feb 17 2012 Juan Hernandez <juan.hernandez@redhat.com> 20110809-2
483f59
- Cleanup of the spec file
483f59
483f59
* Mon Jan 16 2012 Marek Goldmann <mgoldman@redhat.com> 20110809-1
483f59
- Initial packaging