%global githash 25f63a4a5a98a4bc82bb0e155cdf4d28e0c9e8a7
Name: curvesapi
Version: 1.04
Release: 6%{?dist}
Summary: Java implementation of various mathematical curves
# Fork of https://sourceforge.net/projects/curves/
License: BSD
URL: https://github.com/virtuald/curvesapi
Source0: https://github.com/virtuald/curvesapi/archive/%{githash}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: 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}
# Convert from dos to unix line ending
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
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Aug 24 2016 gil cattaneo <puntogil@libero.it> 1.04-1
- update to 1.04
* Fri Apr 01 2016 gil cattaneo <puntogil@libero.it> 1.03-2
- add license headers
* Sun Nov 29 2015 gil cattaneo <puntogil@libero.it> 1.03-1
- initial rpm