Blame SPECS/osgi-core.spec

19599b
%{?scl:%scl_package osgi-core}
19599b
%{!?scl:%global pkg_name %{name}}
19599b
19599b
Name:           %{?scl_prefix}osgi-core
19599b
Version:        6.0.0
19599b
Release:        4.2%{?dist}
19599b
License:        ASL 2.0
19599b
Summary:        OSGi Core API
19599b
URL:            https://www.osgi.org
19599b
Source0:        https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}-sources.jar
19599b
Source1:        https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}.pom
19599b
BuildArch:      noarch
19599b
19599b
BuildRequires:  %{?scl_prefix}maven-local
19599b
BuildRequires:  %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
19599b
BuildRequires:  %{?scl_prefix}mvn(org.osgi:org.osgi.annotation)
19599b
19599b
%description
19599b
OSGi Core Release 6, Interfaces and Classes for use in compiling bundles.
19599b
19599b
%package javadoc
19599b
Summary:        API documentation for %{pkg_name}
19599b
19599b
%description javadoc
19599b
This package provides %{summary}.
19599b
19599b
%prep
19599b
%setup -n %{pkg_name}-%{version} -q -c
19599b
19599b
cp -p %SOURCE1 pom.xml
19599b
mkdir -p src/main/java
19599b
mv org src/main/java/
19599b
19599b
%pom_xpath_inject pom:project '
19599b
<packaging>bundle</packaging>
19599b
<properties>
19599b
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19599b
</properties>
19599b
<build>
19599b
  <plugins>
19599b
    <plugin>
19599b
      <groupId>org.apache.felix</groupId>
19599b
      <artifactId>maven-bundle-plugin</artifactId>
19599b
      <extensions>true</extensions>
19599b
      <configuration>
19599b
        <instructions>
19599b
          <Bundle-Name>${project.artifactId}</Bundle-Name>
19599b
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
19599b
        </instructions>
19599b
      </configuration>
19599b
    </plugin>
19599b
  </plugins>
19599b
</build>'
19599b
19599b
%pom_add_dep org.osgi:osgi.annotation::provided
19599b
19599b
%build
19599b
%mvn_build
19599b
19599b
%install
19599b
%mvn_install
19599b
19599b
%files -f .mfiles
19599b
%license LICENSE
19599b
%doc about.html
19599b
19599b
%files javadoc -f .mfiles-javadoc
19599b
%license LICENSE
19599b
19599b
%changelog
19599b
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 6.0.0-4.2
19599b
- Mass rebuild 2017-06-22
19599b
19599b
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 6.0.0-4.1
19599b
- Automated package import and SCL-ization
19599b
19599b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-4
19599b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
19599b
19599b
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-3
19599b
- Fix scopes of injected Maven dependencies
19599b
19599b
* Wed Oct 05 2016 Michael Simacek <msimacek@redhat.com> - 6.0.0-2
19599b
- Remove alias
19599b
19599b
* Tue Oct 04 2016 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
19599b
- Initial packaging