|
|
a07b6e |
%{?scl:%scl_package jcommon}
|
|
|
a07b6e |
%{!?scl:%global pkg_name %{name}}
|
|
|
a07b6e |
|
|
|
7cba97 |
# Use java common's requires/provides generator
|
|
|
7cba97 |
%{?java_common_find_provides_and_requires}
|
|
|
7cba97 |
|
|
|
a07b6e |
# Exclude generation of osgi() style provides, since they are not
|
|
|
a07b6e |
# SCL-namespaced and may conflict with base RHEL packages.
|
|
|
a07b6e |
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1045436
|
|
|
a07b6e |
%global __provides_exclude ^osgi(.*)$
|
|
|
a07b6e |
|
|
|
a07b6e |
Name: %{?scl_prefix}jcommon
|
|
|
a07b6e |
Version: 1.0.18
|
|
|
15d9cc |
# Release should be higher than el6 builds. Use convention
|
|
|
15d9cc |
# 60.X where X is an increasing int. 60 for rhel-6. We use
|
|
|
15d9cc |
# 70.X for rhel-7. For some reason we cannot rely on the
|
|
|
15d9cc |
# dist tag.
|
|
|
527771 |
Release: 70.6%{?dist}
|
|
|
a07b6e |
Summary: JFree Java utility classes
|
|
|
a07b6e |
License: LGPLv2+
|
|
|
a07b6e |
Group: System Environment/Libraries
|
|
|
a07b6e |
Source: http://downloads.sourceforge.net/jfreechart/%{pkg_name}-%{version}.tar.gz
|
|
|
a07b6e |
Source2: bnd.properties
|
|
|
a07b6e |
URL: http://www.jfree.org/jcommon
|
|
|
7cba97 |
BuildRequires: %{?scl_prefix_java_common}javapackages-local
|
|
|
7cba97 |
BuildRequires: %{?scl_prefix_java-common}ant
|
|
|
a07b6e |
# Required for converting jars to OSGi bundles
|
|
|
7cba97 |
BuildRequires: %{?scl_prefix_maven}aqute-bnd
|
|
|
15d9cc |
Requires: java
|
|
|
a07b6e |
%{?scl:Requires: %scl_runtime}
|
|
|
a07b6e |
|
|
|
15d9cc |
BuildArch: noarch
|
|
|
15d9cc |
|
|
|
a07b6e |
%description
|
|
|
a07b6e |
JCommon is a collection of useful classes used by
|
|
|
a07b6e |
JFreeChart, JFreeReport and other projects.
|
|
|
a07b6e |
|
|
|
a07b6e |
%package javadoc
|
|
|
a07b6e |
Summary: Javadoc for %{name}
|
|
|
a07b6e |
Group: Development/Documentation
|
|
|
15d9cc |
%{?scl:Requires: %scl_runtime}
|
|
|
a07b6e |
|
|
|
a07b6e |
%description javadoc
|
|
|
a07b6e |
Javadoc for %{name}.
|
|
|
a07b6e |
|
|
|
a07b6e |
%package xml
|
|
|
a07b6e |
Summary: JFree XML utility classes
|
|
|
a07b6e |
Group: System Environment/Libraries
|
|
|
a07b6e |
Requires: %{name} = %{version}-%{release}
|
|
|
15d9cc |
%{?scl:Requires: %scl_runtime}
|
|
|
a07b6e |
|
|
|
a07b6e |
%description xml
|
|
|
a07b6e |
Optional XML utility classes.
|
|
|
a07b6e |
|
|
|
a07b6e |
%prep
|
|
|
7cba97 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
a07b6e |
%setup -q -n %{pkg_name}-%{version}
|
|
|
a07b6e |
find . -name "*.jar" -exec rm -f {} \;
|
|
|
7cba97 |
%mvn_file org.jfree:%{pkg_name} %{pkg_name}
|
|
|
7cba97 |
%{?scl:EOF}
|
|
|
a07b6e |
|
|
|
a07b6e |
%build
|
|
|
7cba97 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
a07b6e |
pushd ant
|
|
|
a07b6e |
ant compile compile-xml javadoc
|
|
|
a07b6e |
popd
|
|
|
a07b6e |
# Convert to OSGi bundle
|
|
|
a07b6e |
java -Djcommon.bundle.version="%{version}" \
|
|
|
a07b6e |
-jar $(build-classpath aqute-bnd) wrap -output %{pkg_name}-%{version}.bar -properties %{SOURCE2} %{pkg_name}-%{version}.jar
|
|
|
7cba97 |
mv %{pkg_name}-%{version}.bar %{pkg_name}-%{version}.jar
|
|
|
7cba97 |
%mvn_artifact pom.xml %{pkg_name}-%{version}.jar
|
|
|
7cba97 |
%{?scl:EOF}
|
|
|
a07b6e |
|
|
|
a07b6e |
%install
|
|
|
7cba97 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
7cba97 |
%mvn_install -J javadoc
|
|
|
a07b6e |
cp -p %{pkg_name}-xml-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}-xml.jar
|
|
|
7cba97 |
%{?scl:EOF}
|
|
|
a07b6e |
|
|
|
7cba97 |
%files -f .mfiles
|
|
|
a07b6e |
%doc licence-LGPL.txt README.txt
|
|
|
a07b6e |
|
|
|
a07b6e |
%files xml
|
|
|
a07b6e |
%{_javadir}/%{pkg_name}-xml.jar
|
|
|
a07b6e |
|
|
|
7cba97 |
%files javadoc -f .mfiles-javadoc
|
|
|
a07b6e |
|
|
|
a07b6e |
%changelog
|
|
|
527771 |
* Wed Jan 27 2016 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.6
|
|
|
527771 |
- Rebuild for RHSCL 2.2.
|
|
|
527771 |
|
|
|
7cba97 |
* Mon Jan 19 2015 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.5
|
|
|
7cba97 |
- Switch BR to rh-java-common's ant.
|
|
|
7cba97 |
|
|
|
7cba97 |
* Fri Jan 09 2015 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.4
|
|
|
7cba97 |
- Rebuild for properly generated requires/provides.
|
|
|
7cba97 |
|
|
|
7cba97 |
* Thu Jan 08 2015 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.3
|
|
|
7cba97 |
- Make it buildable with latest xmvn (2.2.x).
|
|
|
7cba97 |
|
|
|
7cba97 |
* Thu Dec 18 2014 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.2
|
|
|
7cba97 |
- Build with maven collection.
|
|
|
7cba97 |
- Use java common's provides/requires generators.
|
|
|
7cba97 |
|
|
|
15d9cc |
* Mon Jun 23 2014 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-70.1
|
|
|
15d9cc |
- Add requires for thermostat1-runtime package.
|
|
|
15d9cc |
|
|
|
a07b6e |
* Fri Dec 20 2013 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-5
|
|
|
a07b6e |
- Don't generate osgi() style provides.
|
|
|
a07b6e |
- Resolves: RHBZ#1045436.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Tue Sep 24 2013 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-4
|
|
|
a07b6e |
- Bump release for rebuild.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Wed Aug 28 2013 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-3
|
|
|
a07b6e |
- SCL-ize package.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.18-2
|
|
|
a07b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu Oct 25 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.0.18-1
|
|
|
a07b6e |
- Update to upstream 1.0.18 release.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Mon Sep 17 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.0.17-5
|
|
|
a07b6e |
- Add proper Bundle-{Version,Name,SymbolicName} via
|
|
|
a07b6e |
bnd.properties file
|
|
|
a07b6e |
|
|
|
a07b6e |
* Tue Jul 24 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.0.17-4
|
|
|
a07b6e |
- Add aqute bnd instructions so as to produce OSGi metadata.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.17-3
|
|
|
a07b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu May 03 2012 Roman Kennke <rkennke@redhat.com> 1.0.17-2
|
|
|
a07b6e |
- Install pom and maven depmap.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu Apr 12 2012 Alexander Kurtakov <akurtako@redhat.com> 1.0.17-1
|
|
|
a07b6e |
- Update to latest upstream release.
|
|
|
a07b6e |
|
|
|
a07b6e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-5
|
|
|
a07b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
a07b6e |
|
|
|
a07b6e |
* Fri Oct 28 2011 Caolán McNamara <caolanm@redhat.com> 1.0.16-4
|
|
|
a07b6e |
- Related: rhbz#749103 drop gcj aot
|
|
|
a07b6e |
|
|
|
a07b6e |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-3
|
|
|
a07b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a07b6e |
|
|
|
a07b6e |
* Fri Jul 24 2009 Caolan McNamara <caolanm@redhat.com> 1.0.16-2
|
|
|
a07b6e |
- make javadoc no-arch when building as arch-dependant aot
|
|
|
a07b6e |
|
|
|
a07b6e |
* Sat Apr 25 2009 Caolan McNamara <caolanm@redhat.com> 1.0.16-1
|
|
|
a07b6e |
- latest version
|
|
|
a07b6e |
|
|
|
a07b6e |
* Mon Mar 09 2009 Caolan McNamara <caolanm@redhat.com> 1.0.15-1
|
|
|
a07b6e |
- latest version
|
|
|
a07b6e |
|
|
|
a07b6e |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-5
|
|
|
a07b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
a07b6e |
|
|
|
a07b6e |
* Wed May 07 2008 Caolan McNamara <caolanm@redhat.com> 1.0.12-4
|
|
|
a07b6e |
- shuffle around
|
|
|
a07b6e |
|
|
|
a07b6e |
* Thu May 01 2008 Caolan McNamara <caolanm@redhat.com> 1.0.12-3
|
|
|
a07b6e |
- fix review problems and add jcommon-xml subpackage
|
|
|
a07b6e |
|
|
|
a07b6e |
* Wed Apr 30 2008 Caolan McNamara <caolanm@redhat.com> 1.0.12-2
|
|
|
a07b6e |
- take loganjerry's fixes
|
|
|
a07b6e |
|
|
|
a07b6e |
* Mon Feb 25 2008 Caolan McNamara <caolanm@redhat.com> 1.0.12-1
|
|
|
a07b6e |
- initial fedora import
|