Blame SPECS/felix-osgi-compendium.spec

30c923
%global pkg_name felix-osgi-compendium
30c923
%{?scl:%scl_package %{pkg_name}}
30c923
%{?maven_find_provides_and_requires}
30c923
30c923
# Prevent brp-java-repack-jars from being run.
30c923
%define __jar_repack %{nil}
30c923
30c923
%global bundle org.osgi.compendium
30c923
%global felixdir %{_javadir}/felix
30c923
%global POM %{_mavenpomdir}/JPP.felix-%{bundle}.pom
30c923
30c923
Name:    %{?scl_prefix}%{pkg_name}
30c923
Version: 1.4.0
30c923
Release: 19.12%{?dist}
30c923
Summary: Felix OSGi R4 Compendium Bundle
30c923
30c923
License: ASL 2.0
30c923
URL:     http://felix.apache.org
30c923
Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz
30c923
30c923
Patch0:         0001-Fix-servlet-api-dependency.patch
30c923
Patch1:         0002-Fix-compile-target.patch
30c923
Patch2:         0003-Add-CM_LOCATION_CHANGED-property-to-ConfigurationEve.patch
30c923
Patch3:         0004-Add-TARGET-property-to-ConfigurationPermission.patch
30c923
# This is an ugly patch that adds getResourceURL method. This prevents jbosgi-framework
30c923
# package from bundling osgi files. Once the jbosgi-framework will be updated
30c923
# to a new version without the need for this patch, REMOVE it!
30c923
Patch4:         0005-Add-getResourceURL-method-to-make-jbosgi-framework-h.patch
30c923
30c923
BuildArch:      noarch
30c923
30c923
BuildRequires: %{?scl_prefix_java_common}javapackages-tools
30c923
BuildRequires: %{?scl_prefix}maven-local
30c923
BuildRequires: %{?scl_prefix}maven-surefire-provider-junit
30c923
BuildRequires: %{?scl_prefix}felix-parent
30c923
BuildRequires: %{?scl_prefix}felix-osgi-core
30c923
BuildRequires: %{?scl_prefix}felix-osgi-foundation
30c923
BuildRequires: %{?scl_prefix_java_common}tomcat-servlet-3.0-api
30c923
30c923
%description
30c923
OSGi Service Platform Release 4 Compendium Interfaces and Classes.
30c923
30c923
%package javadoc
30c923
Summary:        Javadoc for %{pkg_name}
30c923
30c923
%description javadoc
30c923
API documentation for %{pkg_name}.
30c923
30c923
%prep
30c923
%setup -q -n %{bundle}-%{version}
30c923
%{?scl:scl enable %{scl} - <<"EOF"}
30c923
set -e -x
30c923
30c923
# fix servlet api properly
30c923
%patch0 -p1
30c923
# fix compile source/target
30c923
%patch1 -p1
30c923
# add CM_LOCATION_CHANGED property
30c923
%patch2 -p1
30c923
# add TARGET property
30c923
%patch3 -p1
30c923
# add getResourceURL method
30c923
%patch4 -p1
30c923
30c923
%mvn_file :%{bundle} "felix/%{bundle}"
30c923
%mvn_alias "org.apache.felix:%{bundle}" "org.osgi:%{bundle}"
30c923
%{?scl:EOF}
30c923
30c923
%build
30c923
%{?scl:scl enable %{scl} - <<"EOF"}
30c923
set -e -x
30c923
%mvn_build
30c923
%{?scl:EOF}
30c923
30c923
%install
30c923
%{?scl:scl enable %{scl} - <<"EOF"}
30c923
set -e -x
30c923
%mvn_install
30c923
%{?scl:EOF}
30c923
30c923
%files -f .mfiles
30c923
%doc LICENSE NOTICE
30c923
30c923
%files javadoc -f .mfiles-javadoc
30c923
%doc LICENSE NOTICE
30c923
30c923
30c923
%changelog
30c923
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.4.0-19.12
30c923
- Fix BR on maven-local & co.
30c923
30c923
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 1.4.0-19.11
30c923
- maven33 rebuild #2
30c923
30c923
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 1.4.0-19.10
30c923
- maven33 rebuild
30c923
30c923
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.4.0-19.9
30c923
- Mass rebuild 2015-01-13
30c923
30c923
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 1.4.0-19.8
30c923
- Rebuild to regenerate requires from java-common
30c923
30c923
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 1.4.0-19.7
30c923
- Mass rebuild 2015-01-06
30c923
30c923
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.6
30c923
- Mass rebuild 2014-05-26
30c923
30c923
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.5
30c923
- Mass rebuild 2014-02-19
30c923
30c923
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.4
30c923
- Mass rebuild 2014-02-18
30c923
30c923
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.3
30c923
- Remove requires on java
30c923
30c923
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.2
30c923
- Rebuild to regenerate auto-requires
30c923
30c923
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-19.1
30c923
- First maven30 software collection build
30c923
30c923
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.0-19
30c923
- Mass rebuild 2013-12-27
30c923
30c923
* Wed Sep 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-18
30c923
- Add missing BR: felix-parent
30c923
30c923
* Thu Aug 22 2013 Michal Srb <msrb@redhat.com> - 1.4.0-17
30c923
- Migrate away from mvn-rpmbuild (Resolves: rhbz#997463)
30c923
30c923
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-16
30c923
- Remove workaround for rpm bug #646523
30c923
30c923
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.0-15
30c923
- Rebuild to regenerate API documentation
30c923
- Resolves: CVE-2013-1571
30c923
30c923
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-14
30c923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
30c923
30c923
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4.0-13
30c923
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
30c923
- Replace maven BuildRequires with maven-local
30c923
30c923
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-12
30c923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30c923
30c923
* Tue Jul 03 2012 Marek Goldmann <mgoldman@redhat.com> 1.4.0-11
30c923
- Add getResourceURL method to XMLParserActivator
30c923
30c923
* Fri Jun 15 2012 Marek Goldmann <mgoldman@redhat.com> 1.4.0-10
30c923
- Add CM_LOCATION_CHANGED property to ConfigurationEvent
30c923
- Add TARGET property to ConfigurationPermission
30c923
30c923
* Wed Mar 21 2012 Alexander Kurtakov <akurtako@redhat.com> 1.4.0-9
30c923
- Move to tomcat 7.x servlet api.
30c923
30c923
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-8
30c923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
30c923
30c923
* Thu Sep 22 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.0-7
30c923
- Add org.osgi groupId to depmap
30c923
- Packaging fixes
30c923
30c923
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-6
30c923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30c923
30c923
* Wed Feb  2 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.0-5
30c923
- Fix servlet api in pom
30c923
30c923
* Mon Dec 27 2010 Mat Booth <fedora@matbooth.co.uk> 1.4.0-4
30c923
- Fix POM names RHBZ #655800.
30c923
- Versionless jars/docs, update maven plug-in BRs.
30c923
- Other misc guideline compliances.
30c923
30c923
* Mon Jul 12 2010 Victor G. Vasilyev <victor.vasilyev@sun.com> 1.4.0-3
30c923
- Avoid owning the %%{_javadir}/%%{project} directory
30c923
30c923
* Wed Jul 07 2010 Victor G. Vasilyev <victor.vasilyev@sun.com> 1.4.0-2
30c923
- Use maven instead of ant
30c923
30c923
* Tue Jun 22 2010 Victor G. Vasilyev <victor.vasilyev@sun.com> 1.4.0-1
30c923
- Release 1.4.0