%global pkg_name weld-parent
%{?scl:%scl_package %{pkg_name}}
%{?maven_find_provides_and_requires}
Name: %{?scl_prefix}%{pkg_name}
Version: 17
Release: 9.13%{?dist}
Summary: Parent POM for Weld
License: ASL 2.0
URL: http://seamframework.org/Weld
Source0: http://repo1.maven.org/maven2/org/jboss/weld/%{pkg_name}/%{version}/%{pkg_name}-%{version}.pom
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
# Removed accessing remote repos
Patch0: weld-parent-%{version}-pom.patch
BuildArch: noarch
BuildRequires: %{?scl_prefix_java_common}javapackages-tools
BuildRequires: %{?scl_prefix}maven-local
BuildRequires: %{?scl_prefix}maven-shared
BuildRequires: %{?scl_prefix}maven-enforcer-plugin
BuildRequires: %{?scl_prefix}maven-plugin-build-helper
BuildRequires: %{?scl_prefix}maven-install-plugin
Requires: %{?scl_prefix}maven
%description
Parent POM for Weld
%prep
%setup -c -T
%{?scl:scl enable %{scl} - <<"EOF"}
set -e -x
cp %{SOURCE0} pom.xml
cp %{SOURCE1} LICENSE
%patch0 -p0
%{?scl:EOF}
%build
%{?scl:scl enable %{scl} - <<"EOF"}
set -e -x
mvn-rpmbuild install
%{?scl:EOF}
%install
%{?scl:scl enable %{scl} - <<"EOF"}
set -e -x
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
# POM
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{pkg_name}.pom
# DEPMAP
%add_maven_depmap JPP-%{pkg_name}.pom
%{?scl:EOF}
%files -f .mfiles
%doc LICENSE
%changelog
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 17-9.13
- Fix BR on maven-local & co.
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 17-9.12
- maven33 rebuild #2
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 17-9.11
- maven33 rebuild
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 17-9.10
- Mass rebuild 2015-01-13
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 17-9.9
- Migrate to .mfiles
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 17-9.8
- Mass rebuild 2015-01-06
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.7
- Mass rebuild 2014-05-26
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.6
- Mass rebuild 2014-02-19
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.5
- Mass rebuild 2014-02-18
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.4
- Remove requires on java
* Fri Feb 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.3
- SCL-ize requires and build-requires
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.2
- Rebuild to regenerate auto-requires
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17-9.1
- First maven30 software collection build
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 17-9
- Mass rebuild 2013-12-27
* Thu Jul 18 2013 Michal Srb <msrb@redhat.com> - 17-8
- Add ASL 2.0 license text
- Add missing BR: maven-plugin-build-helper, maven-install-plugin
* Tue Feb 19 2013 Marek Goldmann <mgoldman@redhat.com> - 17-7
- Added maven-shared BR
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 17-5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
* Mon Jul 23 2012 Marek Goldmann <mgoldman@redhat.com> - 17-4
- Fixed BR, removed maven plugins from R
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Mar 19 2012 Marek Goldmann <mgoldman@redhat.com> 17-2
- Added build section
* Wed Mar 14 2012 Marek Goldmann <mgoldman@redhat.com> 17-1
- Initial packaging