Initial import
This commit is contained in:
parent
58619bcdd9
commit
96f2fe1968
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/osgi.cmpn-6.0.0.jar
|
88
osgi-compendium.spec
Normal file
88
osgi-compendium.spec
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
Name: osgi-compendium
|
||||||
|
Version: 6.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Interfaces and Classes for use in compiling OSGi bundles
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://www.osgi.org
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Source0: https://osgi.org/download/r6/osgi.cmpn-%{version}.jar
|
||||||
|
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(javax.persistence:persistence-api)
|
||||||
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.osgi:osgi.annotation)
|
||||||
|
BuildRequires: mvn(org.osgi:osgi.core)
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
|
||||||
|
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: API documentation for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
This package provides %{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c
|
||||||
|
|
||||||
|
rm -r org
|
||||||
|
find -name '*.class' -delete
|
||||||
|
|
||||||
|
mkdir -p src/main/{java,resources}
|
||||||
|
mv OSGI-OPT/src/org src/main/java/
|
||||||
|
mv xmlns src/main/resources
|
||||||
|
|
||||||
|
# J2ME stuff
|
||||||
|
rm -r src/main/java/org/osgi/service/io
|
||||||
|
|
||||||
|
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
||||||
|
|
||||||
|
%pom_xpath_inject pom:project '
|
||||||
|
<packaging>bundle</packaging>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.felix</groupId>
|
||||||
|
<artifactId>maven-bundle-plugin</artifactId>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||||
|
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
|
||||||
|
</instructions>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>'
|
||||||
|
|
||||||
|
%pom_add_dep org.osgi:osgi.annotation
|
||||||
|
%pom_add_dep org.osgi:osgi.core
|
||||||
|
%pom_add_dep javax.servlet:javax.servlet-api
|
||||||
|
%pom_add_dep javax.persistence:persistence-api
|
||||||
|
|
||||||
|
%build
|
||||||
|
%mvn_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE
|
||||||
|
%doc about.html
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Oct 12 2015 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
|
||||||
|
- Initial packaging
|
Loading…
Reference in New Issue
Block a user