diff --git a/.devtoolset-4-osgi-annotation.metadata b/.devtoolset-4-osgi-annotation.metadata new file mode 100644 index 0000000..016a055 --- /dev/null +++ b/.devtoolset-4-osgi-annotation.metadata @@ -0,0 +1 @@ +09b256fd1357d5f8cb85e35f6c9ef460ce42cb16 SOURCES/osgi.annotation-6.0.0-sources.jar diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bdd260 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/osgi.annotation-6.0.0-sources.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/SOURCES/osgi.annotation-6.0.0.pom b/SOURCES/osgi.annotation-6.0.0.pom new file mode 100644 index 0000000..42c7d0a --- /dev/null +++ b/SOURCES/osgi.annotation-6.0.0.pom @@ -0,0 +1,34 @@ + + + 4.0.0 + org.osgi + osgi.annotation + 6.0.0 + OSGi Annotation Release 6, Annotations for use in compiling bundles. + org.osgi:osgi.annotation + http://www.osgi.org/ + + OSGi Alliance + http://www.osgi.org/ + + + + Apache License, Version 2.0 + http://opensource.org/licenses/apache2.0.php + repo + + + + https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + + + + osgi + info@osgi.org + OSGi Alliance + OSGi Alliance + + + diff --git a/SPECS/osgi-annotation.spec b/SPECS/osgi-annotation.spec new file mode 100644 index 0000000..9ec30d9 --- /dev/null +++ b/SPECS/osgi-annotation.spec @@ -0,0 +1,91 @@ +%{?scl:%scl_package osgi-annotation} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}osgi-annotation +Version: 6.0.0 +Release: 2.1%{?dist} +Summary: Annotations for use in compiling OSGi bundles + +License: ASL 2.0 +URL: http://www.osgi.org/ +# Upstream project is behind an account registration system with no anonymous +# read access, so we download the source from maven central instead +Source0: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}-sources.jar +Source1: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.pom + +BuildArch: noarch + +BuildRequires: %{?scl_prefix_java_common}maven-local + +%description +Annotations for use in compiling OSGi bundles. This package is not normally +needed at run-time. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +This package contains the API documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%setup -n %{pkg_name}-%{version} -c -q + +mkdir -p src/main/resources && mv about.html src/main/resources +mkdir -p src/main/java && mv org src/main/java +cp -p %{SOURCE1} pom.xml + +# Ensure OSGi metadata is generated +%pom_xpath_inject pom:project " + bundle + + + + org.apache.felix + maven-bundle-plugin + true + + + \${project.artifactId} + \${project.artifactId} + + + + + " + +# Known by two names in maven central, so add an alias for the older name +%mvn_alias org.osgi:osgi.annotation org.osgi:org.osgi.annotation +%{?scl:EOF} + + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_build +%{?scl:EOF} + + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_install +%{?scl:EOF} + + +%files -f .mfiles +%doc LICENSE +%dir %{_javadir}/osgi-annotation +%dir %{_mavenpomdir}/osgi-annotation + +%files javadoc -f .mfiles-javadoc +%doc LICENSE + +%changelog +* Tue Jun 23 2015 Mat Booth - 6.0.0-2.1 +- Import latest from Fedora + +* Thu Jun 18 2015 Fedora Release Engineering - 6.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Jan 26 2015 Mat Booth - 6.0.0-1 +- Initial package \ No newline at end of file