Blame SPECS/spec-version-maven-plugin.spec

bfacd5
%global pkg_name spec-version-maven-plugin
bfacd5
%{?scl:%scl_package %{pkg_name}}
bfacd5
%{?maven_find_provides_and_requires}
bfacd5
bfacd5
Name:          %{?scl_prefix}%{pkg_name}
bfacd5
Version:       1.2
bfacd5
Release:       7.2%{?dist}
bfacd5
Summary:       Spec Version Maven Plugin
bfacd5
License:       CDDL or GPLv2 with exceptions
bfacd5
URL:           http://glassfish.java.net/
bfacd5
# svn export https://svn.java.net/svn/glassfish~svn/tags/spec-version-maven-plugin-1.2
bfacd5
# tar czf spec-version-maven-plugin-1.2-src-svn.tar.gz spec-version-maven-plugin-1.2
bfacd5
Source0:       %{pkg_name}-%{version}-src-svn.tar.gz
bfacd5
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
bfacd5
# spec-version-maven-plugin package don't include the license file
bfacd5
Source1:       glassfish-LICENSE.txt
bfacd5
bfacd5
bfacd5
BuildRequires: %{?scl_prefix}mvn(net.java:jvnet-parent:pom:)
bfacd5
BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-core)
bfacd5
BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-model)
bfacd5
BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api)
bfacd5
BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-resources)
bfacd5
bfacd5
# test dep
bfacd5
BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit)
bfacd5
BuildRequires: %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
bfacd5
bfacd5
BuildRequires: %{?scl_prefix}maven-local
bfacd5
BuildRequires: %{?scl_prefix}maven-plugin-build-helper
bfacd5
BuildRequires: %{?scl_prefix}maven-plugin-plugin
bfacd5
bfacd5
BuildArch:     noarch
bfacd5
bfacd5
%description
bfacd5
Maven Plugin to configure APIs version and
bfacd5
specs in a MANIFEST.MF file.
bfacd5
bfacd5
%package javadoc
bfacd5
Summary:       Javadoc for %{pkg_name}
bfacd5
bfacd5
%description javadoc
bfacd5
This package contains javadoc for %{pkg_name}.
bfacd5
bfacd5
%prep
bfacd5
%setup -q -n %{pkg_name}-%{version}
bfacd5
bfacd5
sed -i "s|mvn|mvn-rpmbuild|" src/main/resources/checkVersion.sh
bfacd5
bfacd5
cp -p %{SOURCE1} LICENSE.txt
bfacd5
sed -i 's/\r//' LICENSE.txt
bfacd5
bfacd5
%{?scl:scl enable %{scl} - <<"EOF"}
bfacd5
set -e -x
bfacd5
%mvn_file :%{pkg_name} %{pkg_name}
bfacd5
%{?scl:EOF}
bfacd5
bfacd5
%build
bfacd5
%{?scl:scl enable %{scl} - <<"EOF"}
bfacd5
set -e -x
bfacd5
%mvn_build
bfacd5
%{?scl:EOF}
bfacd5
bfacd5
%install
bfacd5
%{?scl:scl enable %{scl} - <<"EOF"}
bfacd5
set -e -x
bfacd5
%mvn_install
bfacd5
%{?scl:EOF}
bfacd5
bfacd5
%files -f .mfiles
bfacd5
%doc LICENSE.txt
bfacd5
bfacd5
%files javadoc -f .mfiles-javadoc
bfacd5
%doc LICENSE.txt
bfacd5
bfacd5
%changelog
bfacd5
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.2-7.2
bfacd5
- Fix BR on maven-local & co.
bfacd5
bfacd5
* Mon Jan 11 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-7.1
bfacd5
- SCL-ize package
bfacd5
bfacd5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
bfacd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bfacd5
bfacd5
* Wed Feb 11 2015 gil cattaneo <puntogil@libero.it> 1.2-6
bfacd5
- introduce license macro
bfacd5
bfacd5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
bfacd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bfacd5
bfacd5
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2-4
bfacd5
- Use Requires: java-headless rebuild (#1067528)
bfacd5
bfacd5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
bfacd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bfacd5
bfacd5
* Tue Jul 02 2013 gil cattaneo <puntogil@libero.it> 1.2-2
bfacd5
- build with XMvn
bfacd5
- minor changes to adapt to current guideline
bfacd5
bfacd5
* Wed May 22 2013 gil cattaneo <puntogil@libero.it> 1.2-1
bfacd5
- initial rpm