Initial import (#736313).
This commit is contained in:
parent
c2720e9660
commit
477536f725
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/org.apache.felix.utils-1.1.0-project.tar.gz
|
||||
18
felix-utils-osgi-groupid.patch
Normal file
18
felix-utils-osgi-groupid.patch
Normal file
@ -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>
|
||||
78
felix-utils.spec
Normal file
78
felix-utils.spec
Normal file
@ -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@redhat.com> - 1.1.0-2
|
||||
- Moved to felix subdir
|
||||
- Minor spec file changes
|
||||
|
||||
* Wed Jul 13 2011 Jaromir Capik <jcapik@redhat.com> - 1.1.0-1
|
||||
- Initial version
|
||||
Loading…
Reference in New Issue
Block a user