From 623e4622d34cf88e4c712075734a6a4f94761f4d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 15 2016 08:26:09 +0000 Subject: import rh-thermostat16-jgraphx-3.1.2.0-70.2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f85800 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jgraphx-3_1_2_0.zip diff --git a/.rh-thermostat16-jgraphx.metadata b/.rh-thermostat16-jgraphx.metadata new file mode 100644 index 0000000..eb31f6f --- /dev/null +++ b/.rh-thermostat16-jgraphx.metadata @@ -0,0 +1 @@ +62eaf70cbf21230135a60d48074137c3359fa192 SOURCES/jgraphx-3_1_2_0.zip diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/bnd.properties b/SOURCES/bnd.properties new file mode 100644 index 0000000..233e2db --- /dev/null +++ b/SOURCES/bnd.properties @@ -0,0 +1,3 @@ +Bundle-SymbolicName = com.mxgraph +Bundle-Version = __VERSION__ +Export-Package: com.mxgraph.* diff --git a/SPECS/jgraphx.spec b/SPECS/jgraphx.spec new file mode 100644 index 0000000..775fef8 --- /dev/null +++ b/SPECS/jgraphx.spec @@ -0,0 +1,103 @@ +%{?scl:%scl_package jgraphx} +%{!?scl:%global pkg_name %{name}} + +# Use java common's requires/provides generator +%{?java_common_find_provides_and_requires} + +%if 0%{?rhel} + +%if 0%{?rhel} <= 6 + # EL 6 + %global custom_release 60 +%else + # EL 7 + %global custom_release 70 +%endif + +%else + +%global custom_release 1 + +%endif + +Name: %{?scl_prefix}jgraphx +Version: 3.1.2.0 +Release: %{custom_release}.2%{?dist} +Summary: Java Graph Drawing Component + +Group: Development/Libraries +License: BSD +URL: http://www.jgraph.com/jgraph.html +Source0: http://www.jgraph.com/downloads/jgraphx/archive/%{pkg_name}-%(echo %{version} |sed 's/\./_/g').zip +Source1: bnd.properties + +BuildRequires: %{?scl_prefix_maven}javapackages-local +BuildRequires: %{?scl_prefix_java_common}ant +BuildRequires: %{?scl_prefix_maven}aqute-bnd + +BuildArch: noarch + +%description +JGraphX is the a powerful, easy-to-use and feature-rich graph drawing +component for Java. It is a rewrite of JGraph, also known as JGraph 6. + +%package javadoc +Summary: API Documentation for %{name} +Group: Documentation + +%description javadoc +JavaDoc documentation for %{name} + +%prep +%setup -q -n %{pkg_name} +find -name '*.jar' -delete +rm -rf docs/api + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +set -x +ant build maven-jar + +#Convert to OSGi bundle +pushd lib +# Make versions 3 parts only. That is: A.B.C.D => A.B.C +VER=$(echo %{version} | sed 's/^\([0-9]\+\.[0-9]\+\.[0-9]\+\)\.[0-9]\+$/\1/') +sed "s/__VERSION__/$VER/g" %{SOURCE1} > bnd.props +%if 0%{?fedora} + bnd wrap --output %{pkg_name}.bar --properties bnd.props \ + --version $VER %{pkg_name}.jar +%else + java -jar $(build-classpath aqute-bnd) wrap -output jgraphx.bar -properties bnd.props %{pkg_name}.jar +%endif +mv %{pkg_name}.bar %{pkg_name}.jar +popd +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_artifact pom.xml lib/%{pkg_name}.jar +%mvn_install -J docs/api/ +%{?scl:EOF} + +%files -f .mfiles +%dir %{_javadir}/%{pkg_name} +%dir %{_mavenpomdir}/%{pkg_name} +%if 0%{?rhel} <= 6 + %doc license.txt +%else + %license license.txt +%endif + +%files javadoc -f .mfiles-javadoc +%if 0%{?rhel} <= 6 + %doc license.txt +%else + %license license.txt +%endif + +%changelog +* Mon Jun 27 2016 Severin Gehwolf - 3.1.2.0-2 +- Be sure to use 3 parts in BSN only. + +* Fri Jun 24 2016 Severin Gehwolf - 3.1.2.0-1 +- Initial package.