[java-sig-commits] [felix-utils] Initial import (#736313).

Jaromír Cápík jcapik at fedoraproject.org
Fri Sep 9 13:59:16 UTC 2011


commit 477536f725b754bbb15ca4ba021023741cd45ecd
Author: Jaromir Capik <jcapik at redhat.com>
Date:   Fri Sep 9 15:58:25 2011 +0200

    Initial import (#736313).

 .gitignore                     |    1 +
 felix-utils-osgi-groupid.patch |   18 +++++++++
 felix-utils.spec               |   78 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 4 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..552b953 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/org.apache.felix.utils-1.1.0-project.tar.gz
diff --git a/felix-utils-osgi-groupid.patch b/felix-utils-osgi-groupid.patch
new file mode 100644
index 0000000..c20dcdf
--- /dev/null
+++ b/felix-utils-osgi-groupid.patch
@@ -0,0 +1,18 @@
+diff -Naur org.apache.felix.utils-1.1.0.orig/pom.xml org.apache.felix.utils-1.1.0/pom.xml
+--- org.apache.felix.utils-1.1.0.orig/pom.xml	2010-11-03 22:46:40.000000000 +0100
++++ org.apache.felix.utils-1.1.0/pom.xml	2011-09-05 19:55:42.050738227 +0200
+@@ -30,12 +30,12 @@
+   <artifactId>org.apache.felix.utils</artifactId>
+   <dependencies>
+     <dependency>
+-      <groupId>org.osgi</groupId>
++      <groupId>org.apache.felix</groupId>
+       <artifactId>org.osgi.core</artifactId>
+       <version>4.1.0</version>
+     </dependency>
+     <dependency>
+-      <groupId>org.osgi</groupId>
++      <groupId>org.apache.felix</groupId>
+       <artifactId>org.osgi.compendium</artifactId>
+       <version>4.1.0</version>
+     </dependency>
diff --git a/felix-utils.spec b/felix-utils.spec
new file mode 100644
index 0000000..84c23df
--- /dev/null
+++ b/felix-utils.spec
@@ -0,0 +1,78 @@
+%global site_name org.apache.felix.utils
+%global grp_name  felix
+
+Name:             felix-utils
+Version:          1.1.0
+Release:          2%{?dist}
+Summary:          Utility classes for OSGi
+License:          ASL 2.0
+Group:            Development/Libraries
+URL:              http://felix.apache.org
+
+Source0:          http://www.fightrice.com/mirrors/apache/felix/%{site_name}-%{version}-project.tar.gz
+
+Patch0:           %{name}-osgi-groupid.patch
+
+BuildArch:        noarch
+
+BuildRequires:    java-devel
+BuildRequires:    maven
+BuildRequires:    jpackage-utils
+BuildRequires:    felix-osgi-compendium
+BuildRequires:    maven-surefire-provider-junit4
+
+Requires:         jpackage-utils
+Requires:         java
+Requires:         felix-osgi-compendium
+Requires:         felix-osgi-core
+
+%description
+Utility classes for OSGi
+
+%package javadoc
+Summary:          API documentation for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{site_name}-%{version}
+
+%patch0 -p1
+
+%build
+# one of the tests fails in mock (local build is ok)
+mvn-rpmbuild install javadoc:aggregate -Dmaven.test.failure.ignore=true
+
+%install
+# jars
+install -Dpm 644 target/%{site_name}-%{version}.jar %{buildroot}%{_javadir}/%{grp_name}/%{name}.jar
+
+# pom
+install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{grp_name}-%{name}.pom
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%add_maven_depmap JPP.%{grp_name}-%{name}.pom %{grp_name}/%{name}.jar
+
+%files
+%doc LICENSE NOTICE DEPENDENCIES
+%{_javadir}/%{grp_name}/%{name}.jar
+%{_mavenpomdir}/JPP.%{grp_name}-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Wed Sep 08 2011 Jaromir Capik <jcapik at redhat.com> - 1.1.0-2
+- Moved to felix subdir
+- Minor spec file changes
+
+* Wed Jul 13 2011 Jaromir Capik <jcapik at redhat.com> - 1.1.0-1
+- Initial version
diff --git a/sources b/sources
index e69de29..09bcb1b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+135fd4186cf24f391171ae87b0decbf9  org.apache.felix.utils-1.1.0-project.tar.gz


More information about the java-sig-commits mailing list