Blame SPECS/jboss-transaction-1.1-api.spec

641cc3
%global namedreltag .Final
641cc3
%global namedversion %{version}%{?namedreltag}
641cc3
641cc3
Name:             jboss-transaction-1.1-api
641cc3
Version:          1.0.1
220e09
Release:          8%{?dist}
641cc3
Summary:          Transaction 1.1 API
641cc3
Group:            Development/Libraries
641cc3
License:          CDDL or GPLv2 with exceptions
641cc3
Url:              http://www.jboss.org
641cc3
641cc3
# git clone git://github.com/jboss/jboss-transaction-api_spec.git jboss-transaction-1.1-api
641cc3
# cd jboss-transaction-1.1-api/ && git archive --format=tar --prefix=jboss-transaction-1.1-api/ jboss-transaction-api_1.1_spec-1.0.1.Final | xz > jboss-transaction-1.1-api-1.0.1.Final.tar.xz
641cc3
Source0:          %{name}-%{namedversion}.tar.xz
641cc3
641cc3
BuildRequires:    java-devel
641cc3
BuildRequires:    jboss-specs-parent
641cc3
BuildRequires:    jpackage-utils
641cc3
BuildRequires:    maven-local
641cc3
BuildRequires:    maven-compiler-plugin
641cc3
BuildRequires:    maven-install-plugin
641cc3
BuildRequires:    maven-jar-plugin
641cc3
BuildRequires:    maven-javadoc-plugin
641cc3
BuildRequires:    maven-enforcer-plugin
641cc3
BuildRequires:    maven-dependency-plugin
641cc3
BuildRequires:    maven-ear-plugin
641cc3
BuildRequires:    maven-clean-plugin
641cc3
BuildRequires:    maven-ejb-plugin
641cc3
641cc3
Requires:         jpackage-utils
641cc3
Requires:         java
641cc3
BuildArch:        noarch
641cc3
641cc3
%description
641cc3
The Java Transaction 1.1 API classes.
641cc3
641cc3
%package javadoc
641cc3
Summary:          Javadocs for %{name}
641cc3
Group:            Development/Libraries
641cc3
Requires:         jpackage-utils
641cc3
641cc3
%description javadoc
641cc3
This package contains the API documentation for %{name}.
641cc3
641cc3
%prep
641cc3
%setup -q -n jboss-transaction-1.1-api
641cc3
641cc3
%build
641cc3
mvn-rpmbuild install javadoc:aggregate
641cc3
641cc3
%install
641cc3
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
641cc3
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
641cc3
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
641cc3
641cc3
# JAR
641cc3
install -pm 644 target/jboss-transaction-api_1.1_spec-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
641cc3
641cc3
# POM
641cc3
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
641cc3
641cc3
# DEPMAP
641cc3
%add_maven_depmap JPP-%{name}.pom %{name}.jar
641cc3
641cc3
# APIDOCS
641cc3
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
641cc3
641cc3
%files
641cc3
%{_javadir}/*
641cc3
%{_mavenpomdir}/*
641cc3
%{_mavendepmapfragdir}/*
641cc3
%doc README LICENSE.txt
641cc3
641cc3
%files javadoc
641cc3
%{_javadocdir}/%{name}
641cc3
%doc LICENSE.txt
641cc3
641cc3
%changelog
220e09
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.1-8
220e09
- Mass rebuild 2013-12-27
220e09
220e09
* Fri Dec 13 2013 Ade Lee <alee@redhat.com> 1.0.1-7
220e09
- Fix spec file dist tag for rpmlint
220e09
220e09
* Wed Nov 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.1-6
220e09
- Remove unneeded BR: maven-plugin-cobertura
220e09
641cc3
* Thu May 9 2013 Ade Lee <alee@redhat.com> 1.0.1-5
641cc3
- Resolves #961465 - Removed unneeded maven-checkstyle-plugin BR
641cc3
641cc3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
641cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
641cc3
641cc3
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.1-3
641cc3
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
641cc3
- Replace maven BuildRequires with maven-local
641cc3
641cc3
* Thu Nov 15 2012 Ade Lee <alee@redhat.com> 1.0.1-2
641cc3
- Removed maven-eclipse-plugin-dependency
641cc3
- Added maven-clean-plugin
641cc3
641cc3
* Fri Jul 20 2012 Marek Goldmann <mgoldman@redhat.com> 1.0.1-1
641cc3
- Upstream release 1.0.1.Final
641cc3
- Fixed BR
641cc3
641cc3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-0.2.20120309git3970b8
641cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
641cc3
641cc3
* Fri Mar 09 2012 Marek Goldmann <mgoldman@redhat.com> 1.0.1-0.1.20120309git3970b8
641cc3
- Packaging after license cleanup upstream
641cc3
641cc3
* Mon Oct 24 2011 Marek Goldmann <mgoldman@redhat.com> 1.0.0-2
641cc3
- Fixed apidocs issue
641cc3
641cc3
* Thu Aug 11 2011 Marek Goldmann <mgoldman@redhat.com> 1.0.0-1
641cc3
- Initial packaging