71e258
Name:           osgi-compendium
71e258
Version:        6.0.0
71e258
Release:        5%{?dist}
71e258
Summary:        Interfaces and Classes for use in compiling OSGi bundles
71e258
License:        ASL 2.0
71e258
URL:            http://www.osgi.org
71e258
BuildArch:      noarch
71e258
71e258
Source0:        https://osgi.org/download/r6/osgi.cmpn-%{version}.jar
71e258
71e258
BuildRequires:  maven-local
71e258
BuildRequires:  mvn(javax.persistence:persistence-api)
71e258
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
71e258
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
71e258
BuildRequires:  mvn(org.osgi:osgi.annotation)
71e258
BuildRequires:  mvn(org.osgi:osgi.core)
71e258
71e258
71e258
%description
71e258
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
71e258
71e258
71e258
%package javadoc
71e258
Summary:        API documentation for %{name}
71e258
71e258
%description javadoc
71e258
This package provides %{summary}.
71e258
71e258
71e258
%prep
71e258
%setup -q -c
71e258
71e258
rm -r org
71e258
find -name '*.class' -delete
71e258
71e258
mkdir -p src/main/{java,resources}
71e258
mv OSGI-OPT/src/org src/main/java/
71e258
mv xmlns src/main/resources
71e258
71e258
# J2ME stuff
71e258
rm -r src/main/java/org/osgi/service/io
71e258
71e258
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
71e258
71e258
%pom_xpath_inject pom:project '
71e258
<packaging>bundle</packaging>
71e258
<properties>
71e258
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
71e258
</properties>
71e258
<build>
71e258
  <plugins>
71e258
    <plugin>
71e258
      <groupId>org.apache.felix</groupId>
71e258
      <artifactId>maven-bundle-plugin</artifactId>
71e258
      <extensions>true</extensions>
71e258
      <configuration>
71e258
        <instructions>
71e258
          <Bundle-Name>${project.artifactId}</Bundle-Name>
71e258
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
71e258
        </instructions>
71e258
      </configuration>
71e258
    </plugin>
71e258
  </plugins>
71e258
</build>'
71e258
71e258
%pom_add_dep org.osgi:osgi.annotation::provided
71e258
%pom_add_dep org.osgi:osgi.core::provided
71e258
%pom_add_dep javax.servlet:javax.servlet-api::provided
71e258
%pom_add_dep javax.persistence:persistence-api::provided
71e258
71e258
%build
71e258
%mvn_build
71e258
71e258
%install
71e258
%mvn_install
71e258
71e258
71e258
%files -f .mfiles
71e258
%license LICENSE
71e258
%doc about.html
71e258
71e258
%files javadoc -f .mfiles-javadoc
71e258
%license LICENSE
71e258
71e258
71e258
%changelog
71e258
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-5
71e258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71e258
71e258
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-4
71e258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
71e258
71e258
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-3
71e258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71e258
71e258
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-2
71e258
- Fix scopes of injected Maven dependencies
71e258
71e258
* Mon Oct 12 2015 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
71e258
- Initial packaging