diff --git a/.devtoolset-3-swt-chart.metadata b/.devtoolset-3-swt-chart.metadata new file mode 100644 index 0000000..8301a77 --- /dev/null +++ b/.devtoolset-3-swt-chart.metadata @@ -0,0 +1 @@ +2d17a9197393ca5df471f3ef4dd921ef54e0900a SOURCES/swt-chart-0.9.0.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a11272b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/swt-chart-0.9.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/swt-chart.spec b/SPECS/swt-chart.spec new file mode 100644 index 0000000..05ddc78 --- /dev/null +++ b/SPECS/swt-chart.spec @@ -0,0 +1,110 @@ +%{?scl:%scl_package swt-chart} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}swt-chart +Version: 0.9.0 +Release: 1%{?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: %{pkg_name}-%{version}.tar.xz + +BuildArch: noarch + +BuildRequires: tycho >= 0.14.0 +BuildRequires: maven-local +BuildRequires: %{?scl_prefix}eclipse-swt >= 3.4.0 + +Requires: jpackage-utils +Requires: java >= 1.5 +Requires: %{?scl_prefix}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 -n %{pkg_name}-%{version} +# Create the poms +scl enable %{scl} - <<"EOF" +xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=org.swtchart +EOF + +%build +scl enable %{scl} - <<"EOF" +xmvn -o install org.apache.maven.plugins:maven-javadoc-plugin:aggregate +EOF + +%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-%{pkg_name}.pom + +# Jar +install -p -m 644 org.swtchart/target/org.swtchart-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{pkg_name}.jar + +scl enable %{scl} - <<"EOF" +%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar +EOF + +# Javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{pkg_name} +cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{pkg_name} + + +%files +%{_javadir}/* +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/%{pkg_name} + +%files javadoc +%doc %{_javadocdir}/%{pkg_name} + +%changelog +* Thu May 22 2014 Jeff Johnston 0.8.0-11 +- Update to rawhide 0.9.0 release + +* Fri Oct 25 2013 Roland Grunberg 0.8.0-10 +- Resolves: bug 1023473. + +* Wed Apr 17 2013 Krzysztof Daniel 0.8.0-9 +- Add build dependency to JDT. + +* Wed Apr 17 2013 Krzysztof Daniel 0.8.0-8 +- Rebuild to get proper dist macro value. + +* Fri Dec 7 2012 Alexander Kurtakov 0.8.0-7 +- SCL-ize. + +* Thu Dec 6 2012 Roland Grunberg 0.8.0-6 +- Make changes to build in SCL environment. + +* Tue Aug 14 2012 Roland Grunberg 0.8.0-5 +- Remove deprecated tycho.targetPlatform due to p2 support. + +* Sat Jul 21 2012 Fedora Release Engineering - 0.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Apr 4 2012 Roland Grunberg 0.8.0-3 +- Use %%{_eclipse_base} from eclipse-platform. + +* Mon Apr 2 2012 Roland Grunberg 0.8.0-2 +- Explicitly require java/java-devel >= 1.5 as per manifest. + +* Tue Mar 6 2012 Roland Grunberg 0.8.0-1 +- Initial packaging of SWTChart.