File project.diff of Package felix-gogo-command
--- felix-gogo-command.spec.orig
+++ felix-gogo-command.spec
@@ -30,6 +30,7 @@ BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:gogo-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.felix:org.apache.felix.gogo.runtime)
+BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.osgi:org.osgi.service.log)
BuildRequires: mvn(org.osgi:osgi.annotation)
BuildRequires: mvn(org.osgi:osgi.core)
@@ -41,6 +42,16 @@ line shell for OSGi. It is used in many
This package implements a set of basic commands.
+%package sources
+Summary: Sources for %{name}
+Group: Development/Libraries/Java
+
+%description sources
+Apache Felix Gogo is a subproject of Apache Felix implementing a command
+line shell for OSGi. It is used in many OSGi runtimes and servers.
+
+This package contains the sources artifact.
+
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
@@ -59,6 +70,18 @@ This package contains API documentation
%pom_change_dep :junit :::test
%pom_change_dep :mockito-core :::test
+%pom_add_plugin "org.apache.maven.plugins:maven-source-plugin:3.3.0" . "
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>"
+
+%mvn_package :::sources: sources
+
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
@@ -70,6 +93,9 @@ This package contains API documentation
%files -f .mfiles
%license LICENSE NOTICE
+%files sources -f .mfiles-sources
+%license LICENSE NOTICE
+
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE