diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..951e739 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/osgi.cmpn-6.0.0.jar diff --git a/.rh-maven35-osgi-compendium.metadata b/.rh-maven35-osgi-compendium.metadata new file mode 100644 index 0000000..3b333db --- /dev/null +++ b/.rh-maven35-osgi-compendium.metadata @@ -0,0 +1 @@ +a3a5269424e5ea6488d30dedce8fabca11efbc3d SOURCES/osgi.cmpn-6.0.0.jar diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/osgi-compendium.spec b/SPECS/osgi-compendium.spec new file mode 100644 index 0000000..4faeb2b --- /dev/null +++ b/SPECS/osgi-compendium.spec @@ -0,0 +1,98 @@ +%{?scl:%scl_package osgi-compendium} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}osgi-compendium +Version: 6.0.0 +Release: 3.2%{?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: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(javax.persistence:persistence-api) +BuildRequires: %{?scl_prefix}mvn(javax.servlet:javax.servlet-api) +BuildRequires: %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: %{?scl_prefix}mvn(org.osgi:osgi.annotation) +BuildRequires: %{?scl_prefix}mvn(org.osgi:osgi.core) + +%description +OSGi Compendium, Interfaces and Classes for use in compiling bundles. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +This package provides %{summary}. + +%prep +%setup -n %{pkg_name}-%{version} -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 ' +bundle + + UTF-8 + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.artifactId} + + + + +' + +%pom_add_dep org.osgi:osgi.annotation::provided +%pom_add_dep org.osgi:osgi.core::provided +%pom_add_dep javax.servlet:javax.servlet-api::provided +%pom_add_dep javax.persistence:persistence-api::provided + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE +%doc about.html + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Thu Jun 22 2017 Michael Simacek - 6.0.0-3.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 6.0.0-3.1 +- Automated package import and SCL-ization + +* Sat Feb 11 2017 Fedora Release Engineering - 6.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Oct 10 2016 Mikolaj Izdebski - 6.0.0-2 +- Fix scopes of injected Maven dependencies + +* Mon Oct 12 2015 Michael Simacek - 6.0.0-1 +- Initial packaging