Blame SPECS/osgi-compendium.spec

8b76cd
%bcond_with bootstrap
8b76cd
8b76cd
Name:           osgi-compendium
8b76cd
Version:        7.0.0
8b76cd
Release:        12%{?dist}
8b76cd
Summary:        Interfaces and Classes for use in compiling OSGi bundles
8b76cd
License:        ASL 2.0
8b76cd
URL:            http://www.osgi.org
8b76cd
BuildArch:      noarch
8b76cd
8b76cd
Source0:        https://osgi.org/download/r7/osgi.cmpn-%{version}.jar
8b76cd
8b76cd
BuildRequires:  maven-local
8b76cd
%if %{with bootstrap}
8b76cd
BuildRequires:  javapackages-bootstrap
8b76cd
%else
8b76cd
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
8b76cd
BuildRequires:  mvn(org.osgi:osgi.annotation)
8b76cd
BuildRequires:  mvn(org.osgi:osgi.core)
8b76cd
%endif
8b76cd
8b76cd
%description
8b76cd
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
8b76cd
8b76cd
%package javadoc
8b76cd
Summary:        API documentation for %{name}
8b76cd
8b76cd
%description javadoc
8b76cd
This package provides %{summary}.
8b76cd
8b76cd
%prep
8b76cd
%setup -q -c
8b76cd
8b76cd
# Delete pre-built binaries
8b76cd
rm -r org
8b76cd
find -name '*.class' -delete
8b76cd
8b76cd
mkdir -p src/main/{java,resources}
8b76cd
mv OSGI-OPT/src/org src/main/java/
8b76cd
mv xmlns src/main/resources
8b76cd
8b76cd
# J2ME stuff
8b76cd
rm -r src/main/java/org/osgi/service/io
8b76cd
8b76cd
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
8b76cd
8b76cd
%pom_xpath_inject pom:project '
8b76cd
<packaging>bundle</packaging>
8b76cd
<properties>
8b76cd
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8b76cd
</properties>
8b76cd
<build>
8b76cd
  <plugins>
8b76cd
    <plugin>
8b76cd
      <groupId>org.apache.felix</groupId>
8b76cd
      <artifactId>maven-bundle-plugin</artifactId>
8b76cd
      <extensions>true</extensions>
8b76cd
      <configuration>
8b76cd
        <instructions>
8b76cd
          <Bundle-Name>${project.artifactId}</Bundle-Name>
8b76cd
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
8b76cd
        </instructions>
8b76cd
      </configuration>
8b76cd
    </plugin>
8b76cd
  </plugins>
8b76cd
</build>'
8b76cd
8b76cd
%pom_add_dep org.osgi:osgi.annotation::provided
8b76cd
%pom_add_dep org.osgi:osgi.core::provided
8b76cd
# Don't compile in Servlet, Jax RS and JPA support
8b76cd
rm -r src/main/java/org/osgi/service/http
8b76cd
rm -r src/main/java/org/osgi/service/jaxrs
8b76cd
rm -r src/main/java/org/osgi/service/jpa
8b76cd
rm -r src/main/java/org/osgi/service/transaction/control/jpa
8b76cd
8b76cd
%build
8b76cd
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
8b76cd
8b76cd
%install
8b76cd
%mvn_install
8b76cd
8b76cd
8b76cd
%files -f .mfiles
8b76cd
%license LICENSE
8b76cd
%doc about.html
8b76cd
8b76cd
%files javadoc -f .mfiles-javadoc
8b76cd
%license LICENSE
8b76cd
8b76cd
8b76cd
%changelog
8b76cd
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 7.0.0-12
8b76cd
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8b76cd
  Related: rhbz#1991688
8b76cd
8b76cd
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-11
8b76cd
- Rebuild to workaround DistroBaker issue
8b76cd
8b76cd
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-10
8b76cd
- Bootstrap Maven for CentOS Stream 9
8b76cd
8b76cd
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-9
8b76cd
- Bootstrap build
8b76cd
- Non-bootstrap build
8b76cd
8b76cd
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-8
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8b76cd
8b76cd
* Wed Nov 25 2020 Mat Booth <mat.booth@redhat.com> - 7.0.0-7
8b76cd
- Rebuild to regenerate OSGi metadata
8b76cd
8b76cd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-6
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8b76cd
8b76cd
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 7.0.0-5
8b76cd
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
8b76cd
8b76cd
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-4
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8b76cd
8b76cd
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-4
8b76cd
- Mass rebuild for javapackages-tools 201902
8b76cd
8b76cd
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-3
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8b76cd
8b76cd
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.0.0-3
8b76cd
- Mass rebuild for javapackages-tools 201901
8b76cd
8b76cd
* Tue Mar 19 2019 Mat Booth <mat.booth@redhat.com> - 7.0.0-2
8b76cd
- Allow conditionally compiling in support for Jax RS and JPA
8b76cd
8b76cd
* Wed Mar 06 2019 Mat Booth <mat.booth@redhat.com> - 7.0.0-1
8b76cd
- Update to OSGi R7
8b76cd
8b76cd
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-7
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8b76cd
8b76cd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-6
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8b76cd
8b76cd
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-5
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8b76cd
8b76cd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-4
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8b76cd
8b76cd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-3
8b76cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8b76cd
8b76cd
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-2
8b76cd
- Fix scopes of injected Maven dependencies
8b76cd
8b76cd
* Mon Oct 12 2015 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
8b76cd
- Initial packaging