[swt-chart] Initial commit of swt-chart package.
Roland Grunberg
rgrunber at fedoraproject.org
Mon Apr 2 16:51:41 UTC 2012
commit 3c9a0e512c08cd1f5f7c517da1399e049a85e5e9
Author: Roland Grunberg <rgrunber at redhat.com>
Date: Mon Apr 2 12:46:45 2012 -0400
Initial commit of swt-chart package.
.gitignore | 1 +
sources | 1 +
swt-chart.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..feebc61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/swt-chart-0.8.0.tar.xz
diff --git a/sources b/sources
index e69de29..da10922 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f6c82db32fd2efbe0e73d5e84e8a31fc swt-chart-0.8.0.tar.xz
diff --git a/swt-chart.spec b/swt-chart.spec
new file mode 100644
index 0000000..00e1b4b
--- /dev/null
+++ b/swt-chart.spec
@@ -0,0 +1,78 @@
+%global eclipse_base %{_libdir}/eclipse
+
+Name: swt-chart
+Version: 0.8.0
+Release: 2%{?dist}
+Summary: SWTChart Feature
+
+Group: Development/Tools
+License: EPL
+URL: http://www.swtchart.org/
+# svn export https://swt-chart.svn.sourceforge.net/svnroot/swt-chart/tags/%%{version}/ %%{name}-%%{version}
+# pushd %%{name}-%%{version} && rm -rf org.swtchart.{examples{,.ext},ext} && popd
+# tar -cJf %%{name}-%%{version}.tar.xz %%{name}-%%{version}
+Source0: %{name}-%{version}.tar.xz
+
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel >= 1.5
+BuildRequires: tycho >= 0.14.0
+
+Requires: jpackage-utils
+Requires: java >= 1.5
+Requires: eclipse-platform >= 3.4.0
+
+%description
+SWTChart is a light-weight charting component for SWT.
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+
+Requires: jpackage-utils
+
+%description javadoc
+%{summary}.
+
+%prep
+%setup -q
+# Create the poms
+mvn-rpmbuild org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=org.swtchart -Dtycho.targetPlatform=%{eclipse_base}
+
+%build
+mvn-rpmbuild -Dtycho.targetPlatform=%{eclipse_base} install javadoc:aggregate
+
+%install
+install -d -m 755 %{buildroot}%{_javadir}
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+
+# Pom
+install -p -m 644 org.swtchart/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# Jar
+install -p -m 644 org.swtchart/target/org.swtchart-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar
+ln -sf %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/org.swtchart_%{version}.jar
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# Javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
+
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Mon Apr 2 2012 Roland Grunberg <rgrunber at redhat.com> 0.8.0-2
+- Explicitly require java/java-devel >= 1.5 as per manifest.
+
+* Sat Mar 6 2012 Roland Grunberg <rgrunber at redhat.com> 0.8.0-1
+- Initial packaging of SWTChart.
+
More information about the scm-commits
mailing list