Blame SPECS/glassfish-master-pom.spec

87bae5
%global pkg_name glassfish-master-pom
87bae5
%{?scl:%scl_package %{pkg_name}}
87bae5
%{?maven_find_provides_and_requires}
87bae5
87bae5
Name:          %{?scl_prefix}%{pkg_name}
87bae5
Version:       8
87bae5
Release:       7.3%{?dist}
87bae5
Summary:       Master POM for Glassfish Maven projects
87bae5
License:       CDDL or GPLv2 with exceptions
87bae5
URL:           http://glassfish.java.net/
87bae5
# svn export https://svn.java.net/svn/glassfish~svn/tags/master-pom-8/ glassfish-master-pom-8
87bae5
# tar czf glassfish-master-pom-8-src-svn.tar.gz glassfish-master-pom-8
87bae5
Source0:       %{pkg_name}-%{version}-src-svn.tar.gz
87bae5
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
87bae5
# glassfish-master-pom package don't include the license file
87bae5
Source1:       glassfish-LICENSE.txt
87bae5
87bae5
BuildRequires: %{?scl_prefix}maven-local
87bae5
BuildArch:     noarch
87bae5
87bae5
%description
87bae5
This is a shared POM parent for Glassfish Maven projects.
87bae5
87bae5
%prep
87bae5
%setup -q -n %{pkg_name}-%{version}
87bae5
%{?scl:scl enable %{scl} - <<"EOF"}
87bae5
set -e -x
87bae5
# remove wagon-webdav
87bae5
%pom_xpath_remove pom:build/pom:extensions
87bae5
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-compiler-plugin']" "<groupId>org.apache.maven.plugins</groupId><version>2.5.1</version>"
87bae5
cp -p %{SOURCE1} LICENSE.txt
87bae5
sed -i 's/\r//' LICENSE.txt
87bae5
%{?scl:EOF}
87bae5
87bae5
%build
87bae5
%{?scl:scl enable %{scl} - <<"EOF"}
87bae5
set -e -x
87bae5
%mvn_build
87bae5
%{?scl:EOF}
87bae5
87bae5
%install
87bae5
%{?scl:scl enable %{scl} - <<"EOF"}
87bae5
set -e -x
87bae5
%mvn_install
87bae5
%{?scl:EOF}
87bae5
87bae5
%files -f .mfiles
87bae5
%dir %{_mavenpomdir}/%{pkg_name}
87bae5
%doc LICENSE.txt
87bae5
87bae5
%changelog
87bae5
* Thu Apr 14 2016 Michal Srb <msrb@redhat.com> - 8-7.3
87bae5
- Fix directory ownership (Resolves: rhbz#1325866)
87bae5
87bae5
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 8-7.2
87bae5
- Fix BR on maven-local & co.
87bae5
87bae5
* Mon Jan 11 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 8-7.1
87bae5
- SCL-ize package
87bae5
87bae5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-7
87bae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
87bae5
87bae5
* Tue Feb 03 2015 gil cattaneo <puntogil@libero.it> 8-6
87bae5
- introduce license macro
87bae5
87bae5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-5
87bae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
87bae5
87bae5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-4
87bae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
87bae5
87bae5
* Fri Jul 05 2013 gil cattaneo <puntogil@libero.it> 8-3
87bae5
- switch to XMvn
87bae5
- minor changes to adapt to current guideline
87bae5
87bae5
* Thu May 02 2013 gil cattaneo <puntogil@libero.it> 8-2
87bae5
- fixed license tag
87bae5
87bae5
* Sat Aug 25 2012 gil cattaneo <puntogil@libero.it> 8-1
87bae5
- initial rpm