|
|
7ab2af |
%{?scl:%scl_package swt-chart}
|
|
|
7ab2af |
%{!?scl:%global pkg_name %{name}}
|
|
|
7ab2af |
|
|
|
7ab2af |
Name: %{?scl_prefix}swt-chart
|
|
|
7ab2af |
Version: 0.9.0
|
|
|
7ab2af |
Release: 1%{?dist}
|
|
|
7ab2af |
Summary: SWTChart Feature
|
|
|
7ab2af |
|
|
|
7ab2af |
Group: Development/Tools
|
|
|
7ab2af |
License: EPL
|
|
|
7ab2af |
URL: http://www.swtchart.org/
|
|
|
7ab2af |
# svn export https://swt-chart.svn.sourceforge.net/svnroot/swt-chart/tags/%%{version}/ %%{name}-%%{version}
|
|
|
7ab2af |
# pushd %%{name}-%%{version} && rm -rf org.swtchart.{examples{,.ext},ext} && popd
|
|
|
7ab2af |
# tar -cJf %%{name}-%%{version}.tar.xz %%{name}-%%{version}
|
|
|
7ab2af |
Source0: %{pkg_name}-%{version}.tar.xz
|
|
|
7ab2af |
|
|
|
7ab2af |
BuildArch: noarch
|
|
|
7ab2af |
|
|
|
7ab2af |
BuildRequires: tycho >= 0.14.0
|
|
|
7ab2af |
BuildRequires: maven-local
|
|
|
7ab2af |
BuildRequires: %{?scl_prefix}eclipse-swt >= 3.4.0
|
|
|
7ab2af |
|
|
|
7ab2af |
Requires: jpackage-utils
|
|
|
7ab2af |
Requires: java >= 1.5
|
|
|
7ab2af |
Requires: %{?scl_prefix}eclipse-platform >= 3.4.0
|
|
|
7ab2af |
|
|
|
7ab2af |
%description
|
|
|
7ab2af |
SWTChart is a light-weight charting component for SWT.
|
|
|
7ab2af |
|
|
|
7ab2af |
%package javadoc
|
|
|
7ab2af |
Summary: Javadoc for %{name}
|
|
|
7ab2af |
Group: Documentation
|
|
|
7ab2af |
|
|
|
7ab2af |
Requires: jpackage-utils
|
|
|
7ab2af |
|
|
|
7ab2af |
%description javadoc
|
|
|
7ab2af |
%{summary}.
|
|
|
7ab2af |
|
|
|
7ab2af |
%prep
|
|
|
7ab2af |
%setup -q -n %{pkg_name}-%{version}
|
|
|
7ab2af |
# Create the poms
|
|
|
7ab2af |
scl enable %{scl} - <<"EOF"
|
|
|
7ab2af |
xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=org.swtchart
|
|
|
7ab2af |
EOF
|
|
|
7ab2af |
|
|
|
7ab2af |
%build
|
|
|
7ab2af |
scl enable %{scl} - <<"EOF"
|
|
|
7ab2af |
xmvn -o install org.apache.maven.plugins:maven-javadoc-plugin:aggregate
|
|
|
7ab2af |
EOF
|
|
|
7ab2af |
|
|
|
7ab2af |
%install
|
|
|
7ab2af |
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
7ab2af |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
7ab2af |
|
|
|
7ab2af |
# Pom
|
|
|
7ab2af |
install -p -m 644 org.swtchart/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom
|
|
|
7ab2af |
|
|
|
7ab2af |
# Jar
|
|
|
7ab2af |
install -p -m 644 org.swtchart/target/org.swtchart-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{pkg_name}.jar
|
|
|
7ab2af |
|
|
|
7ab2af |
scl enable %{scl} - <<"EOF"
|
|
|
7ab2af |
%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar
|
|
|
7ab2af |
EOF
|
|
|
7ab2af |
|
|
|
7ab2af |
# Javadoc
|
|
|
7ab2af |
install -d -m 755 %{buildroot}%{_javadocdir}/%{pkg_name}
|
|
|
7ab2af |
cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{pkg_name}
|
|
|
7ab2af |
|
|
|
7ab2af |
|
|
|
7ab2af |
%files
|
|
|
7ab2af |
%{_javadir}/*
|
|
|
7ab2af |
%{_mavenpomdir}/*
|
|
|
7ab2af |
%{_mavendepmapfragdir}/%{pkg_name}
|
|
|
7ab2af |
|
|
|
7ab2af |
%files javadoc
|
|
|
7ab2af |
%doc %{_javadocdir}/%{pkg_name}
|
|
|
7ab2af |
|
|
|
7ab2af |
%changelog
|
|
|
7ab2af |
* Thu May 22 2014 Jeff Johnston <jjohnstn@redhat.com> 0.8.0-11
|
|
|
7ab2af |
- Update to rawhide 0.9.0 release
|
|
|
7ab2af |
|
|
|
7ab2af |
* Fri Oct 25 2013 Roland Grunberg <rgrunber@redhat.com> 0.8.0-10
|
|
|
7ab2af |
- Resolves: bug 1023473.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Wed Apr 17 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.8.0-9
|
|
|
7ab2af |
- Add build dependency to JDT.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Wed Apr 17 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.8.0-8
|
|
|
7ab2af |
- Rebuild to get proper dist macro value.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Fri Dec 7 2012 Alexander Kurtakov <akurtako@redhat.com> 0.8.0-7
|
|
|
7ab2af |
- SCL-ize.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Thu Dec 6 2012 Roland Grunberg <rgrunber@redhat.com> 0.8.0-6
|
|
|
7ab2af |
- Make changes to build in SCL environment.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Tue Aug 14 2012 Roland Grunberg <rgrunber@redhat.com> 0.8.0-5
|
|
|
7ab2af |
- Remove deprecated tycho.targetPlatform due to p2 support.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-4
|
|
|
7ab2af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
7ab2af |
|
|
|
7ab2af |
* Wed Apr 4 2012 Roland Grunberg <rgrunber@redhat.com> 0.8.0-3
|
|
|
7ab2af |
- Use %%{_eclipse_base} from eclipse-platform.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Mon Apr 2 2012 Roland Grunberg <rgrunber@redhat.com> 0.8.0-2
|
|
|
7ab2af |
- Explicitly require java/java-devel >= 1.5 as per manifest.
|
|
|
7ab2af |
|
|
|
7ab2af |
* Tue Mar 6 2012 Roland Grunberg <rgrunber@redhat.com> 0.8.0-1
|
|
|
7ab2af |
- Initial packaging of SWTChart.
|