Blame SPECS/geronimo-osgi-support.spec

7ace47
%global pkg_name geronimo-osgi-support
7ace47
%{?scl:%scl_package %{pkg_name}}
7ace47
%{?maven_find_provides_and_requires}
7ace47
7ace47
%global registry geronimo-osgi-registry
7ace47
%global locator geronimo-osgi-locator
7ace47
7ace47
Name:             %{?scl_prefix}%{pkg_name}
7ace47
Version:          1.0
7ace47
Release:          15.13%{?dist}
7ace47
Summary:          OSGI spec bundle support
7ace47
License:          ASL 2.0 and W3C
7ace47
URL:              http://geronimo.apache.org/
7ace47
7ace47
Source0:          http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.tar.gz
7ace47
# Use parent pom files instead of unavailable 'genesis-java5-flava'
7ace47
Patch1:           use_parent_pom.patch
7ace47
# Remove itests due to unavailable dependencies
7ace47
Patch2:           remove-itests.patch
7ace47
BuildArch:        noarch
7ace47
7ace47
BuildRequires:    %{?scl_prefix_java_common}javapackages-tools
7ace47
BuildRequires:    %{?scl_prefix}maven-local
7ace47
BuildRequires:    %{?scl_prefix}felix-osgi-core
7ace47
BuildRequires:    %{?scl_prefix}felix-osgi-compendium
7ace47
BuildRequires:    %{?scl_prefix}geronimo-parent-poms
7ace47
BuildRequires:    %{?scl_prefix}maven-resources-plugin
7ace47
BuildRequires:    %{?scl_prefix}maven-surefire-provider-junit
7ace47
7ace47
7ace47
%description
7ace47
This project is a set of bundles and integration tests for implementing
7ace47
OSGi-specific lookup in the Geronimo spec projects.
7ace47
7ace47
7ace47
%package javadoc
7ace47
Summary:          Javadoc for %{pkg_name}
7ace47
7ace47
%description javadoc
7ace47
This package contains the API documentation for %{pkg_name}.
7ace47
7ace47
%prep
7ace47
%setup -q -n %{pkg_name}-%{version}
7ace47
%{?scl:scl enable %{scl} - <<"EOF"}
7ace47
set -e -x
7ace47
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
7ace47
sed -i 's/\r//' LICENSE NOTICE
7ace47
%patch1 -p0
7ace47
%patch2 -p0
7ace47
7ace47
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-bundle-plugin']]
7ace47
                       /pom:configuration/pom:instructions" "
7ace47
    <Export-Package>!*</Export-Package>" geronimo-osgi-locator
7ace47
7ace47
%mvn_file :%{registry} %{registry}
7ace47
%mvn_file :%{locator} %{locator}
7ace47
%{?scl:EOF}
7ace47
7ace47
%build
7ace47
%{?scl:scl enable %{scl} - <<"EOF"}
7ace47
set -e -x
7ace47
%mvn_build
7ace47
%{?scl:EOF}
7ace47
7ace47
%install
7ace47
%{?scl:scl enable %{scl} - <<"EOF"}
7ace47
set -e -x
7ace47
%mvn_install
7ace47
%{?scl:EOF}
7ace47
7ace47
%files -f .mfiles
7ace47
%dir %{_mavenpomdir}/%{pkg_name}
7ace47
%doc LICENSE NOTICE
7ace47
7ace47
%files javadoc -f .mfiles-javadoc
7ace47
%doc LICENSE NOTICE
7ace47
7ace47
%changelog
7ace47
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.0-15.13
7ace47
- Fix BR on maven-local & co.
7ace47
7ace47
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 1.0-15.12
7ace47
- maven33 rebuild #2
7ace47
7ace47
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 1.0-15.11
7ace47
- maven33 rebuild
7ace47
7ace47
* Thu Jan 15 2015 Michal Srb <msrb@redhat.com> - 1.0-15.10
7ace47
- Fix directory ownership
7ace47
7ace47
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.0-15.9
7ace47
- Mass rebuild 2015-01-13
7ace47
7ace47
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 1.0-15.8
7ace47
- Mass rebuild 2015-01-06
7ace47
7ace47
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.7
7ace47
- Mass rebuild 2014-05-26
7ace47
7ace47
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.6
7ace47
- Mass rebuild 2014-02-19
7ace47
7ace47
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.5
7ace47
- Mass rebuild 2014-02-18
7ace47
7ace47
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.4
7ace47
- Remove requires on java
7ace47
7ace47
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.3
7ace47
- SCL-ize build-requires
7ace47
7ace47
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.2
7ace47
- Rebuild to regenerate auto-requires
7ace47
7ace47
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-15.1
7ace47
- First maven30 software collection build
7ace47
7ace47
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-15
7ace47
- Mass rebuild 2013-12-27
7ace47
7ace47
* Fri Aug 23 2013 Michal Srb <msrb@redhat.com> - 1.0-14
7ace47
- Migrate away from mvn-rpmbuild (Resolves: #997485)
7ace47
7ace47
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-13
7ace47
- Rebuild to regenerate API documentation
7ace47
- Resolves: CVE-2013-1571
7ace47
7ace47
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-12
7ace47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7ace47
7ace47
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-11
7ace47
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
7ace47
- Replace maven BuildRequires with maven-local
7ace47
7ace47
* Fri Dec 07 2012 Jaromir Capik <jcapik@redhat.com> 1.0-10
7ace47
- Depmap removed (not needed anymore)
7ace47
- Removing EOL whitespaces in the spec file
7ace47
7ace47
* Thu Aug 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-9
7ace47
- Fix license tag
7ace47
- Install NOTICE files
7ace47
7ace47
* Mon Aug  6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-8
7ace47
- Add explicit OSGi export, resolves 812827
7ace47
7ace47
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
7ace47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7ace47
7ace47
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
7ace47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7ace47
7ace47
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-5
7ace47
- Build with maven 3 - site-plugin no longer works with maven2.
7ace47
- Adapt to current guidelines.
7ace47
7ace47
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
7ace47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7ace47
7ace47
* Mon Aug 2 2010 Chris Spike <chris.spike@arcor.de> 1.0-3
7ace47
- Removed W3C from 'License:' field (XMLSchema.dtd not existent)
7ace47
7ace47
* Thu Jul 29 2010 Chris Spike <chris.spike@arcor.de> 1.0-2
7ace47
- Fixed wrong EOL encoding in LICENSE
7ace47
- Fixed LICENSE file-not-utf8 
7ace47
- Added W3C to 'License:' field
7ace47
- Added patch explanations
7ace47
7ace47
* Mon Jul 26 2010 Chris Spike <chris.spike@arcor.de> 1.0-1
7ace47
- Initial version of the package