Blame SPECS/glassfish-annotation-api.spec

f128dc
%global pkg_name glassfish-annotation-api
f128dc
%{?scl:%scl_package %{pkg_name}}
f128dc
%{?maven_find_provides_and_requires}
f128dc
f128dc
%global namedreltag %{nil}
f128dc
%global namedversion %{version}%{?namedreltag}
f128dc
%global oname javax.annotation-api
f128dc
f128dc
Name:          %{?scl_prefix}%{pkg_name}
f128dc
Version:       1.2
f128dc
Release:       9.2%{?dist}
f128dc
Summary:       Common Annotations API Specification (JSR 250)
f128dc
License:       CDDL or GPLv2 with exceptions
f128dc
# http://jcp.org/en/jsr/detail?id=250
f128dc
URL:           http://glassfish.java.net/
f128dc
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.annotation-api-1.2/ glassfish-annotation-api-1.2
f128dc
# tar czf glassfish-annotation-api-1.2-src-svn.tar.gz glassfish-annotation-api-1.2
f128dc
Source0:       %{pkg_name}-%{namedversion}-src-svn.tar.gz
f128dc
f128dc
BuildRequires: %{?scl_prefix}jvnet-parent
f128dc
BuildRequires: %{?scl_prefix}glassfish-legal
f128dc
f128dc
BuildRequires: %{?scl_prefix}maven-local
f128dc
BuildRequires: %{?scl_prefix}maven-plugin-bundle
f128dc
BuildRequires: %{?scl_prefix}maven-remote-resources-plugin
f128dc
BuildRequires: %{?scl_prefix}maven-source-plugin
f128dc
BuildRequires: %{?scl_prefix}spec-version-maven-plugin
f128dc
f128dc
BuildArch:     noarch
f128dc
f128dc
%description
f128dc
Common Annotations APIs for the Java Platform (JSR 250).
f128dc
f128dc
%package javadoc
f128dc
Summary:       Javadoc for %{pkg_name}
f128dc
f128dc
%description javadoc
f128dc
This package contains javadoc for %{pkg_name}.
f128dc
f128dc
%prep
f128dc
%setup -q -n %{pkg_name}-%{namedversion}
f128dc
f128dc
%{?scl:scl enable %{scl} - <<"EOF"}
f128dc
set -e -x
f128dc
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
f128dc
%mvn_file :%{oname} %{pkg_name}
f128dc
%{?scl:EOF}
f128dc
f128dc
%build
f128dc
%{?scl:scl enable %{scl} - <<"EOF"}
f128dc
set -e -x
f128dc
%mvn_build
f128dc
%{?scl:EOF}
f128dc
f128dc
sed -i 's/\r//' target/classes/META-INF/LICENSE.txt
f128dc
cp -p target/classes/META-INF/LICENSE.txt .
f128dc
f128dc
%install
f128dc
%{?scl:scl enable %{scl} - <<"EOF"}
f128dc
set -e -x
f128dc
%mvn_install
f128dc
%{?scl:EOF}
f128dc
f128dc
%files -f .mfiles
f128dc
%doc LICENSE.txt
f128dc
f128dc
%files javadoc -f .mfiles-javadoc
f128dc
%doc LICENSE.txt
f128dc
f128dc
%changelog
f128dc
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.2-9.2
f128dc
- Fix BR on maven-local & co.
f128dc
f128dc
* Mon Jan 11 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-9.1
f128dc
- SCL-ize package
f128dc
f128dc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-9
f128dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f128dc
f128dc
* Tue Feb 03 2015 gil cattaneo <puntogil@libero.it> 1.2-8
f128dc
- introduce license macro
f128dc
f128dc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
f128dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f128dc
f128dc
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2-6
f128dc
- Use Requires: java-headless rebuild (#1067528)
f128dc
f128dc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
f128dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f128dc
f128dc
* Mon Jul 08 2013 gil cattaneo <puntogil@libero.it> 1.2-4
f128dc
- switch to XMvn
f128dc
- minor changes to adapt to current guideline
f128dc
f128dc
* Sun May 26 2013 gil cattaneo <puntogil@libero.it> 1.2-3
f128dc
- rebuilt with spec-version-maven-plugin support
f128dc
f128dc
* Wed May 22 2013 gil cattaneo <puntogil@libero.it> 1.2-2
f128dc
- fixed manifest
f128dc
f128dc
* Tue May 07 2013 gil cattaneo <puntogil@libero.it> 1.2-1
f128dc
- update to 1.2
f128dc
f128dc
* Tue Apr 02 2013 gil cattaneo <puntogil@libero.it> 1.2-0.1.b04
f128dc
- initial rpm