[glite-jobid-api-java] Initial import (#965848).
František Dvořák
valtri at fedoraproject.org
Mon Aug 26 14:35:22 UTC 2013
commit a413cca6698c3b08b6b54fa925f3b4166944bf70
Author: František Dvořák <valtri at civ.zcu.cz>
Date: Mon Aug 26 16:36:26 2013 +0200
Initial import (#965848).
.gitignore | 1 +
glite-jobid-api-java.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++
pom.patch | 98 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 196 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8b04ddd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glite-jobid-api-java-1.3.6.tar.gz
diff --git a/glite-jobid-api-java.spec b/glite-jobid-api-java.spec
new file mode 100644
index 0000000..3577c20
--- /dev/null
+++ b/glite-jobid-api-java.spec
@@ -0,0 +1,96 @@
+%global groupId org.glite
+%global artifactId jobid-api-java
+
+Name: glite-jobid-api-java
+Version: 1.3.6
+Release: 1%{?dist}
+Summary: JAVA implementation of handling gLite jobid
+
+License: ASL 2.0
+Url: http://glite.cern.ch
+Source: http://scientific.zcu.cz/emi/emi.jobid.api-java/%{name}-%{version}.tar.gz
+# https://github.com/CESNET/glite-lb/commit/5d1f18ef7a2b144edecf82c8b9b6158045dc3f47
+Patch0: pom.patch
+
+BuildArch: noarch
+BuildRequires: ant
+BuildRequires: jakarta-commons-codec
+BuildRequires: jpackage-utils
+BuildRequires: perl
+BuildRequires: perl(Getopt::Long)
+BuildRequires: perl(POSIX)
+%if 0%{?fedora} >= 18
+BuildRequires: maven-local
+%else
+BuildRequires: java-devel
+%endif
+Requires: jakarta-commons-codec
+Requires: java
+Requires: jpackage-utils
+%if 0%{?rhel} || 0%{?fedora} < 18
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+%endif
+
+%description
+JAVA implementation of library handling gLite jobid.
+
+
+%package javadoc
+Summary: Java API documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains java API documentation for java implementation of gLite
+jobid.
+
+
+%prep
+%setup -q
+%patch0 -p2
+
+
+%build
+perl ./configure --root=/ --prefix=%{_prefix} --libdir=%{_lib} --module jobid.api-java
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
+mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
+install -m 0644 JPP-%{name}.pom $RPM_BUILD_ROOT%{_mavenpomdir}
+%if 0%{?add_maven_depmap:1}
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+%else
+%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{name}
+%endif
+
+
+%if 0%{?rhel} || 0%{?fedora} < 18
+%post
+%update_maven_depmap
+%endif
+
+
+%if 0%{?rhel} || 0%{?fedora} < 18
+%postun
+%update_maven_depmap
+%endif
+
+
+%files
+%doc LICENSE project/ChangeLog
+%{_javadir}/%{name}.jar
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP-%{name}.pom
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Mon Aug 26 2013 František Dvořák <valtri at civ.zcu.cz> - 1.3.6-1
+- Initial package
diff --git a/pom.patch b/pom.patch
new file mode 100644
index 0000000..3bef36b
--- /dev/null
+++ b/pom.patch
@@ -0,0 +1,98 @@
+commit 5d1f18ef7a2b144edecf82c8b9b6158045dc3f47
+Author: František Dvořák <valtri at civ.zcu.cz>
+Date: Sat Aug 24 16:47:14 2013 +0200
+
+ Add maven pom files for jobid.api-java and lb.client-java (solves issue #18).
+
+diff --git a/org.glite.jobid.api-java/Makefile b/org.glite.jobid.api-java/Makefile
+index 7fb42e4..d619d9b 100644
+--- a/org.glite.jobid.api-java/Makefile
++++ b/org.glite.jobid.api-java/Makefile
+@@ -16,9 +16,12 @@ SOURCES=\
+ build.xml Makefile \
+ nbproject/*.properties nbproject/*.xml \
+ nbproject/private/*.properties nbproject/private/*.xml \
++ project/pom.xml \
+ src/org/glite/jobid/*.java
+
+-all compile doc:
++POM=JPP-${package}.pom
++
++all compile doc: ${POM}
+ ${ant_prefix}/bin/ant ${ANT_ARGS}
+
+ stage:
+@@ -33,9 +36,15 @@ check:
+
+ clean:
+ ${ant_prefix}/bin/ant ${ANT_ARGS} clean
++ rm -fv ${POM}
+ rm -rvf dist ${package}-*.tar.gz
+
+ distclean:
+ rm -rvf project/changelog Makefile.inc *.spec debian/
+
++${POM}: ${top_srcdir}/project/pom.xml
++ sed -e "s:@DESCRIPTION@:$(shell cat ${top_srcdir}/project/package.description):" \
++ -e "s:@VERSION@:${version}:" \
++ $< > $@
++
+ .PHONY: default all compile stage install check clean distclean dist distcheck
+diff --git a/org.glite.jobid.api-java/project/pom.xml b/org.glite.jobid.api-java/project/pom.xml
+new file mode 100644
+index 0000000..789d9d7
+--- /dev/null
++++ b/org.glite.jobid.api-java/project/pom.xml
+@@ -0,0 +1,52 @@
++<project xmlns="http://maven.apache.org/POM/4.0.0"
++ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
++ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
++ http://maven.apache.org/xsd/maven-4.0.0.xsd">
++ <modelVersion>4.0.0</modelVersion>
++
++ <groupId>org.glite</groupId>
++ <artifactId>jobid-api-java</artifactId>
++ <version>@VERSION@</version>
++ <packaging>jar</packaging>
++
++ <dependencies>
++ <dependency>
++ <groupId>commons-codec</groupId>
++ <artifactId>commons-codec</artifactId>
++ </dependency>
++ </dependencies>
++
++ <description>@DESCRIPTION@</description>
++ <url>http://egee.cesnet.cz/en/JRA1/LB/</url>
++ <inceptionYear>2008</inceptionYear>
++
++ <licenses>
++ <license>
++ <name>The Apache Software License, Version 2.0</name>
++ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
++ </license>
++ </licenses>
++
++ <organization>
++ <name>CESNET</name>
++ <url>http://cesnet.cz</url>
++ </organization>
++
++ <issueManagement>
++ <system>GitHub Issues</system>
++ <url>https://github.com/CESNET/glite-lb/issues</url>
++ </issueManagement>
++
++ <mailingLists>
++ <mailingList>
++ <name>EMI L&B</name>
++ <post>emi-lb at metacentrum.cz</post>
++ </mailingList>
++ </mailingLists>
++
++ <scm>
++ <connection>scm:git:git://github.com/CESNET/glite-lb</connection>
++ <url>https://github.com/CESNET/glite-lb</url>
++ </scm>
++
++</project>
diff --git a/sources b/sources
index e69de29..555e6c9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4c4c3962d903e3d2f8b26b4554927e5e glite-jobid-api-java-1.3.6.tar.gz
More information about the scm-commits
mailing list