diff --git a/.gitignore b/.gitignore index e69de29..db2d70e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +felix-gogo-command-0.12.0-2.fc15.src.rpm +/org.apache.felix.gogo.command-0.12.0-project.tar.gz diff --git a/felix-gogo-command-pom.xml.patch b/felix-gogo-command-pom.xml.patch new file mode 100644 index 0000000..de51166 --- /dev/null +++ b/felix-gogo-command-pom.xml.patch @@ -0,0 +1,15 @@ +diff --git a/pom.xml b//pom.xml +index 56797d8..d2a12b3 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -37,8 +37,8 @@ + + + +- org.osgi +- org.osgi.core ++ org.apache.felix ++ org.apache.felix.framework + 4.3.0 + + diff --git a/felix-gogo-command.spec b/felix-gogo-command.spec new file mode 100644 index 0000000..b39d725 --- /dev/null +++ b/felix-gogo-command.spec @@ -0,0 +1,93 @@ +%global project felix +%global bundle org.apache.felix.gogo.command +%global groupId org.apache.felix +%global artifactId %{bundle} + +Name: %{project}-gogo-command +Version: 0.12.0 +Release: 2%{?dist} +Summary: Apache Felix Gogo Command + +Group: Development/Libraries +License: ASL 2.0 +URL: http://felix.apache.org +Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz + +Patch0: felix-gogo-command-pom.xml.patch + +BuildArch: noarch + +BuildRequires: java +BuildRequires: maven +BuildRequires: maven-dependency-plugin +BuildRequires: maven-surefire-plugin +BuildRequires: maven-surefire-provider-junit4 +BuildRequires: jpackage-utils + +BuildRequires: felix-osgi-core +BuildRequires: felix-framework +BuildRequires: felix-osgi-compendium +BuildRequires: felix-gogo-runtime +BuildRequires: felix-gogo-parent +BuildRequires: mvn(org.apache.felix:org.apache.felix.bundlerepository) + + +Requires: felix-framework +Requires: felix-osgi-compendium +Requires: felix-gogo-runtime +Requires: mvn(org.apache.felix:org.apache.felix.bundlerepository) + +%description +Provides basic shell commands for Gogo. + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} +Requires: jpackage-utils + +%description javadoc +API documentation for %{name}. + +%global POM %{_mavenpomdir}/JPP.%{project}-%{bundle}.pom + +%prep +%setup -q -n %{bundle}-%{version} +%patch0 -p1 + +%build +mvn-rpmbuild install javadoc:aggregate + +%install +# jars +install -d -m 0755 %{buildroot}%{_javadir}/%{project} +install -m 644 target/%{bundle}-%{version}.jar \ + %{buildroot}%{_javadir}/%{project}/%{bundle}.jar + +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{project}-%{bundle}.pom + +%add_maven_depmap JPP.%{project}-%{bundle}.pom %{project}/%{bundle}.jar + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} +%__cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name} + +%files +%doc LICENSE +%{_javadir}/* +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* + +%files javadoc +%doc LICENSE +%{_javadocdir}/%{name} + +%changelog +* Tue Jan 10 2012 Krzysztof Daniel 0.12.0-2 +- description formatting removed +- jar_repack removed +- license added to the javadoc + +* Tue Jan 10 2012 Krzysztof Daniel 0.12.0-1 +- Release 0.12.0 diff --git a/sources b/sources index e69de29..1eeecb5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +de755fb40d8512ba9ed261cbbcd077f3 org.apache.felix.gogo.command-0.12.0-project.tar.gz