joda-convert/joda-convert.spec
2020-08-19 09:45:19 +08:00

42 lines
1.2 KiB
RPMSpec

Name: joda-convert
Version: 1.9.2
Release: 1
Summary: Java library for conversion to and from standard string formats
License: ASL 2.0
URL: https://github.com/JodaOrg/joda-convert/
BuildArch: noarch
Source0: https://github.com/JodaOrg/joda-convert/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
%description
Java library to enable conversion to and from standard string formats.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package contains the %{summary}.
%prep
%setup -q
%mvn_file : %{name}
sed -i s/\r// *.txt
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
* Wed Jul 29 2020 zhanghua <zhanghua40@huawei.com> - 1.9.2-1
- package init