2da09a
Name:           osgi-compendium
2da09a
Version:        7.0.0
2da09a
Release:        4%{?dist}
2da09a
Summary:        Interfaces and Classes for use in compiling OSGi bundles
2da09a
License:        ASL 2.0
2da09a
URL:            http://www.osgi.org
2da09a
BuildArch:      noarch
2da09a
2da09a
Source0:        https://osgi.org/download/r7/osgi.cmpn-%{version}.jar
2da09a
2da09a
BuildRequires:  maven-local
2da09a
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
2da09a
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
2da09a
BuildRequires:  mvn(org.osgi:osgi.annotation)
2da09a
BuildRequires:  mvn(org.osgi:osgi.core)
2da09a
2da09a
%description
2da09a
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
2da09a
2da09a
%package javadoc
2da09a
Summary:        API documentation for %{name}
2da09a
2da09a
%description javadoc
2da09a
This package provides %{summary}.
2da09a
2da09a
%prep
2da09a
%setup -q -c
2da09a
2da09a
# Delete pre-built binaries
2da09a
rm -r org
2da09a
find -name '*.class' -delete
2da09a
2da09a
mkdir -p src/main/{java,resources}
2da09a
mv OSGI-OPT/src/org src/main/java/
2da09a
mv xmlns src/main/resources
2da09a
2da09a
# J2ME stuff
2da09a
rm -r src/main/java/org/osgi/service/io
2da09a
2da09a
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
2da09a
2da09a
%pom_xpath_inject pom:project '
2da09a
<packaging>bundle</packaging>
2da09a
<properties>
2da09a
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2da09a
</properties>
2da09a
<build>
2da09a
  <plugins>
2da09a
    <plugin>
2da09a
      <groupId>org.apache.felix</groupId>
2da09a
      <artifactId>maven-bundle-plugin</artifactId>
2da09a
      <extensions>true</extensions>
2da09a
      <configuration>
2da09a
        <instructions>
2da09a
          <Bundle-Name>${project.artifactId}</Bundle-Name>
2da09a
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
2da09a
        </instructions>
2da09a
      </configuration>
2da09a
    </plugin>
2da09a
  </plugins>
2da09a
</build>'
2da09a
2da09a
%pom_add_dep org.osgi:osgi.annotation::provided
2da09a
%pom_add_dep org.osgi:osgi.core::provided
2da09a
%pom_add_dep javax.servlet:javax.servlet-api::provided
2da09a
# Don't compile in Jax RS and JPA support when jp_minimal is activated
2da09a
rm -r src/main/java/org/osgi/service/jaxrs
2da09a
rm -r src/main/java/org/osgi/service/jpa
2da09a
rm -r src/main/java/org/osgi/service/transaction/control/jpa
2da09a
2da09a
%build
2da09a
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
2da09a
2da09a
%install
2da09a
%mvn_install
2da09a
2da09a
2da09a
%files -f .mfiles
2da09a
%license LICENSE
2da09a
%doc about.html
2da09a
2da09a
%files javadoc -f .mfiles-javadoc
2da09a
%license LICENSE
2da09a
2da09a
2da09a
%changelog
2da09a
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-4
2da09a
- Mass rebuild for javapackages-tools 201902
2da09a
2da09a
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-3
2da09a
- Mass rebuild for javapackages-tools 201901
2da09a
2da09a
* Tue Mar 19 2019 Mat Booth <mat.booth@redhat.com> - 7.0.0-2
2da09a
- Allow conditionally compiling in support for Jax RS and JPA
2da09a
2da09a
* Wed Mar 06 2019 Mat Booth <mat.booth@redhat.com> - 7.0.0-1
2da09a
- Update to OSGi R7
2da09a
2da09a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-7
2da09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2da09a
2da09a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-6
2da09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2da09a
2da09a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-5
2da09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2da09a
2da09a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-4
2da09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2da09a
2da09a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-3
2da09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2da09a
2da09a
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-2
2da09a
- Fix scopes of injected Maven dependencies
2da09a
2da09a
* Mon Oct 12 2015 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
2da09a
- Initial packaging