[cbi-plugins: 1/3] Initial Commit

Krzysztof Daniel kdaniel at fedoraproject.org
Thu Feb 21 13:52:55 UTC 2013


commit 81b2a03fa811538f064e6cd5a220164a484d7ea8
Author: Krzysztof Daniel <kdaniel at redhat.com>
Date:   Thu Feb 21 11:37:31 2013 +0100

    Initial Commit

 eclipse-cbi-parent.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/eclipse-cbi-parent.spec b/eclipse-cbi-parent.spec
new file mode 100644
index 0000000..ef8f1a4
--- /dev/null
+++ b/eclipse-cbi-parent.spec
@@ -0,0 +1,60 @@
+Name:           eclipse-cbi-parent
+Version:        1.0.1-SNAPSHOT
+Release:        1%{?dist}
+Summary:        
+
+Group:          Development/Libraries
+License:        
+URL:            
+Source0:        #FIXME
+BuildArch: noarch
+
+
+%description
+
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q #You may need to update this according to your Source0
+
+%build
+mvn-rpmbuild \
+        -e \
+        install javadoc:javadoc
+
+%install
+# jars
+install -d -m 0755 %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar   %{buildroot}%{_javadir}/%{name}.jar
+
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml \
+    %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
+
+%add_maven_depmap JPP.%{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
+rm -rf target/site/api*
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+
+#FIXME


More information about the scm-commits mailing list