76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
%global core org.abego.treelayout
|
|
Name: treelayout
|
|
Version: 1.0.3
|
|
Release: 1
|
|
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 mvn(junit:junit) 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}
|
|
cat > pom.xml << EOF
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.abego.treelayout</groupId>
|
|
<artifactId>org.abego.treelayout.project</artifactId>
|
|
<packaging>pom</packaging>
|
|
<version>%{version}</version>
|
|
<modules>
|
|
<module>org.abego.treelayout</module>
|
|
<module>org.abego.treelayout.demo</module>
|
|
<!-- Use org.netbeans.api:org-netbeans-api-visual:RELEASE67: -->
|
|
<!--module>org.abego.treelayout.netbeans</module-->
|
|
<!--module>org.abego.treelayout.netbeans.demo</module-->
|
|
</modules>
|
|
</project>
|
|
EOF
|
|
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
|
|
* Fri Aug 14 2020 maminjie <maminjie1@huawei.com> - 1.0.3-1
|
|
- package init
|