!1 Package init

Merge pull request !1 from 雷炬/master
This commit is contained in:
openeuler-ci-bot 2020-08-20 14:11:44 +08:00 committed by Gitee
commit 3c72bf060d
3 changed files with 53 additions and 0 deletions

BIN
curvesapi-1.04.tar.gz Normal file

Binary file not shown.

49
curvesapi.spec Normal file
View File

@ -0,0 +1,49 @@
%global githash 25f63a4a5a98a4bc82bb0e155cdf4d28e0c9e8a7
Name: curvesapi
Version: 1.04
Release: 1
Summary: Java implementation of various mathematical curves
License: BSD
URL: https://github.com/virtuald/curvesapi
Source0: https://github.com/virtuald/curvesapi/archive/%{githash}/%{name}-%{version}.tar.gz
BuildRequires: maven-local mvn(junit:junit)
BuildArch: noarch
%description
Implementation of various mathematical curves that define themselves
over a set of control points. The API is written in Java. The curves
supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline,
Lagrange, Natural Cubic Spline, and NURBS.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{githash}
for file in r*.txt demo/*.java
do
sed -i.orig 's|\r||g' $file
touch -r $file.orig $file
rm $file.orig
done
%mvn_file :%{name} %{name}
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc README.md readme.txt release-notes.txt scshot.png demo
%license license.txt
%files javadoc -f .mfiles-javadoc
%license license.txt
%changelog
* Fri Aug 14 2020 leiju <leiju4@huawei.com> - 1.04-1
- Package init

4
curvesapi.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: virtuald/curvesapi
tag_prefix: "^"
seperator: "."