jcommon/jcommon.spec
2020-08-25 11:54:08 +08:00

55 lines
1.7 KiB
RPMSpec

Name: jcommon
Version: 1.0.23
Release: 1
Summary: JFree Java utility classes
License: LGPLv2+
URL: http://www.jfree.org/jcommon
Source: https://github.com/jfree/jcommon/archive/v1.0.23.tar.gz
BuildRequires: maven-local maven-plugin-bundle sonatype-oss-parent
Requires: java-headless, jpackage-utils
BuildArch: noarch
%description
JCommon is a collection of useful classes used by
JFreeChart, JFreeReport and other projects.
%package javadoc
Summary: Javadoc for jcommon
Requires: jcommon = %{version}-%{release} jpackage-utils
%description javadoc
Javadoc for jcommon.
%prep
%setup -q
find . -name "*.jar" -exec rm -f {} \;
MVN_BUNDLE_PLUGIN_EXTRA_XML="<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>org.jfree.jcommon</Bundle-SymbolicName>
<Bundle-Vendor>Fedora Project</Bundle-Vendor>
<Bundle-Version>%{version}</Bundle-Version>
<!-- Do not autogenerate uses clauses in Manifests -->
<_nouses>true</_nouses>
</instructions>
</configuration>"
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_add_plugin org.apache.felix:maven-bundle-plugin . "$MVN_BUNDLE_PLUGIN_EXTRA_XML"
%pom_xpath_set "pom:packaging" "bundle"
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc LICENSE README.md
%files javadoc -f .mfiles-javadoc
%changelog
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.0.23-1
- Package init