%global core org.abego.treelayout
Name: treelayout
Version: 1.0.3
Release: 9%{?dist}
Summary: Efficient and customizable Tree Layout Algorithm in Java
License: BSD
URL: http://treelayout.sourceforge.net/
Source0: https://github.com/abego/treelayout/archive/v%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Efficiently create compact, highly customizable
tree layouts. The software builds tree layouts
in linear time. I.e. even trees with many nodes
are built fast.
%package demo
Summary: TreeLayout Core Demo
%description demo
Demo for "org.abego.treelayout.core".
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}
# This is a dummy POM added just to ease building in the RPM platforms:
cat > pom.xml << EOF
4.0.0
org.abego.treelayout
org.abego.treelayout.project
pom
%{version}
org.abego.treelayout
org.abego.treelayout.demo
EOF
# fix non ASCII chars
native2ascii -encoding UTF8 %{core}/src/main/java/org/abego/treelayout/package-info.java \
%{core}/src/main/java/org/abego/treelayout/package-info.java
%mvn_package :%{core}.project __noinstall
%build
%mvn_build -s
%install
%mvn_install
%files -f .mfiles-%{core}.core
%doc %{core}/CHANGES.txt README.md
%license %{core}/src/LICENSE.TXT
%files demo -f .mfiles-%{core}.demo
%doc %{core}.demo/CHANGES.txt
%license %{core}.demo/src/LICENSE.TXT
%files javadoc -f .mfiles-javadoc
%license %{core}/src/LICENSE.TXT
%changelog
* Sat Jul 27 2019 Fedora Release Engineering - 1.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering - 1.0.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering - 1.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Jun 22 2016 gil cattaneo 1.0.3-3
- regenerate build-requires
* Fri Feb 05 2016 Fedora Release Engineering - 1.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Oct 21 2015 gil cattaneo 1.0.3-1
- update to 1.0.3
* Wed Oct 21 2015 gil cattaneo 1.0.2-3
- use upstream source archive
- remove duplicate file
* Fri Jun 19 2015 Fedora Release Engineering - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jan 24 2015 gil cattaneo 1.0.2-1
- update to 1.0.2
* Sun Oct 06 2013 gil cattaneo 1.0.1-1
- initial rpm