46 lines
1.3 KiB
RPMSpec
46 lines
1.3 KiB
RPMSpec
Name: joni
|
|
Version: 2.1.3
|
|
Release: 1
|
|
Summary: Java port of Oniguruma regexp library
|
|
License: MIT
|
|
URL: https://github.com/jruby/%{name}
|
|
Source0: https://github.com/jruby/%{name}/archive/%{name}-%{version}.zip
|
|
Patch1: joni-remove-useless-wagon-dependency.patch
|
|
BuildArch: noarch
|
|
BuildRequires: java-devel jcodings jpackage-utils junit maven-local maven-compiler-plugin
|
|
BuildRequires: maven-jar-plugin maven-surefire-plugin sonatype-oss-parent
|
|
BuildRequires: objectweb-asm
|
|
Requires: jcodings jpackage-utils objectweb-asm
|
|
%description
|
|
joni is a port of Oniguruma, a regular expressions library,
|
|
to java. It is used by jruby.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Requires: jpackage-utils
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
%patch1 -p0
|
|
sed -i -e 's|\r||' test/org/joni/test/TestC.java
|
|
sed -i -e 's|\r||' test/org/joni/test/TestU.java
|
|
sed -i -e 's|\r||' test/org/joni/test/TestA.java
|
|
%mvn_file : %{name}
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc MANIFEST.MF
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Mon Jul 27 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 2.1.3-1
|
|
- Package init
|