[treelayout] Initial import (#1015909).

gil gil at fedoraproject.org
Mon Mar 23 13:40:44 UTC 2015


commit 8884948a510c45a52bcc019c9177858a337cfa65
Author: gil <puntogil at libero.it>
Date:   Mon Mar 23 14:40:25 2015 +0100

    Initial import (#1015909).

 .gitignore                 |  1 +
 sources                    |  1 +
 treelayout-project-pom.xml | 24 +++++++++++++
 treelayout.spec            | 86 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 112 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..32a3ad0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/treelayout-1.0.2.tar.xz
diff --git a/sources b/sources
index e69de29..3bfbf61 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+91a61c79bb993852d46490289b933a07  treelayout-1.0.2.tar.xz
diff --git a/treelayout-project-pom.xml b/treelayout-project-pom.xml
new file mode 100644
index 0000000..1865766
--- /dev/null
+++ b/treelayout-project-pom.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- This is a dummy POM added just to ease building in the RPM platforms: -->
+
+<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>
+    <!-- These are not all the modules, only those that we can currently build: -->
+    <module>org.abego.treelayout</module>
+    <module>org.abego.treelayout.demo</module>
+    <module>org.abego.treelayout.netbeans</module>
+    <module>org.abego.treelayout.netbeans.demo</module>
+  </modules>
+
+</project>
diff --git a/treelayout.spec b/treelayout.spec
new file mode 100644
index 0000000..0fd038a
--- /dev/null
+++ b/treelayout.spec
@@ -0,0 +1,86 @@
+%global core org.abego.treelayout
+Name:          treelayout
+Version:       1.0.2
+Release:       1%{?dist}
+Summary:       Efficient and customizable Tree Layout Algorithm in Java
+License:       BSD
+URL:           http://treelayout.sourceforge.net/
+# svn export svn://svn.code.sf.net/p/treelayout/code/tags/REL-1.0.2 treelayout-1.0.2
+# tar cJf treelayout-1.0.2.tar.xz treelayout-1.0.2
+Source0:       %{name}-%{version}.tar.xz
+Source1:       %{name}-project-pom.xml
+
+BuildRequires: maven-local
+BuildRequires: mvn(junit:junit)
+%if 0
+# Not available
+BuildRequires: mvn(org.netbeans.api:org-netbeans-api-visual:RELEASE67)
+%endif
+%if %{?fedora} > 20
+BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
+%else
+BuildRequires: mvn(org.sonatype.oss:oss-parent)
+%endif
+
+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}
+
+cp -p %{SOURCE1} pom.xml
+sed -i "s|@VERSION@|%{version}|" pom.xml
+# build core and demo ... for now
+%pom_disable_module %{core}.netbeans
+%pom_disable_module %{core}.netbeans.demo
+
+cp -p %{core}/CHANGES.txt .
+cp -p %{core}/src/LICENSE.TXT .
+
+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
+%dir %{_javadir}/%{name}
+%doc CHANGES.txt
+%license 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 LICENSE.TXT
+
+%changelog
+* Sat Jan 24 2015 gil cattaneo <puntogil at libero.it> 1.0.2-1
+- update to 1.0.2
+
+* Sun Oct 06 2013 gil cattaneo <puntogil at libero.it> 1.0.1-1
+- initial rpm


More information about the scm-commits mailing list