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

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