This is an automated email from the git hooks/post-receive script.

tpot-guest pushed a commit to branch master
in repository jnr-posix.

commit 0fba642fe3aea7a439e1dc74152e76008765eb9a
Author: Nicolas Duboc <[email protected]>
Date:   Sat May 28 18:20:50 2011 +0200

    Imported Debian patch 1.1.4~git1.8aa26268b-1
---
 .topdeps                                   |   1 +
 .topmsg                                    |   6 ++
 debian/FIXME                               |   6 ++
 debian/changelog                           |  10 +++
 debian/compat                              |   1 +
 debian/control                             |  33 +++++++
 debian/copyright                           | 140 +++++++++++++++++++++++++++++
 debian/libjnr-posix-java-doc.README.Debian |  15 ++++
 debian/libjnr-posix-java.README.Debian     |  23 +++++
 debian/rules                               |  62 +++++++++++++
 debian/source/format                       |   1 +
 pom.xml                                    |  21 +++--
 12 files changed, 308 insertions(+), 11 deletions(-)

diff --git a/.topdeps b/.topdeps
new file mode 100644
index 0000000..0459513
--- /dev/null
+++ b/.topdeps
@@ -0,0 +1 @@
+upstream
diff --git a/.topmsg b/.topmsg
new file mode 100644
index 0000000..d279656
--- /dev/null
+++ b/.topmsg
@@ -0,0 +1,6 @@
+From: Nicolas Duboc <[email protected]>
+Subject: [PATCH] master
+
+Debian directory.
+
+Signed-off-by: Nicolas Duboc <[email protected]>
diff --git a/debian/FIXME b/debian/FIXME
new file mode 100644
index 0000000..7b59128
--- /dev/null
+++ b/debian/FIXME
@@ -0,0 +1,6 @@
+renammage de jna en jnr ?
+   lib java
+   pawuets binaires ?
+
+plus besoin de dependence sur java runtime ?  Nouveau check lintian, voir sur 
libconstantine-java
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..51cb87d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,10 @@
+libjnr-posix-java (1.1.4~git1.8aa26268b-1) unstable; urgency=low
+
+  * This package is a fork of the Debian libjna-posix-java package for
+    renaming purpose.
+  * Packaging upstream git commit (8aa26268b), tentative version 1.1.4.
+  * Provides maven artifacts in Debian local repository (closes: #620044)
+  * Binary package depends on the headless version of the Java runtime.
+  * Bumped Debian policy compliance to 3.9.2 (nothing to do)
+
+ -- Nicolas Duboc <[email protected]>  Sat, 28 May 2011 18:20:50 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3ce003b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: libjnr-posix-java
+Section: java
+Priority: optional
+Maintainer: Nicolas Duboc <[email protected]>
+Build-Depends: debhelper (>> 7.0.0), maven2, maven-debian-helper,
+  libmaven-clean-plugin-java
+Build-Depends-Indep: default-jdk, maven-repo-helper, 
libmaven-resources-plugin-java,
+  libmaven-compiler-plugin-java, libmaven-jar-plugin-java, 
libmaven-site-plugin-java,
+  libsurefire-java, libmaven-javadoc-plugin-java,
+  libjaffl-java, libconstantine-java (>= 0.7-3)
+Standards-Version: 3.9.2
+Homepage: https://github.com/wmeissner/jnr-posix
+
+Package: libjnr-posix-java
+Architecture: all
+Section: java
+Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless, 
libjaffl-java, libconstantine-java (>= 0.7-3)
+Description: basic POSIX-like functions for Java
+ This package is a Java library providing access to various
+ POSIX functions like chmod(2), link(2) or getuid(2) through
+ dynamic loading of native libraries with JNA.
+
+Package: libjnr-posix-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Recommends: w3m | www-browser
+Suggests: libjnr-posix-java
+Description: Java JNR-POSIX library API documentation
+ This package includes the development documentation for the
+ JNR-POSIX library which provides access to various POSIX
+ functions like chmod(2), link(2) or getuid(2) through
+ dynamic loading of native libraries with JNA.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6aa75db
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,140 @@
+This package was initially debianized by Nicolas Duboc <[email protected]> on
+Sun, Nov 22nd 2009.
+
+This version was downloaded from the git repository at
+https://github.com/wmeissner/jnr-posix.git
+commit 8aa26268b5.
+
+The upstream tarball was generated from a cloned git repo with the following
+command:
+   git archive --prefix=jnr-posix-1.1.4/ 8aa26268b5 | tar --delete 
jnr-posix-1.1.4/lib/junit-4.4.jar | gzip -9 > 
/tmp/libjnr-posix-java_1.1.4.orig.tar.gz
+
+
+Debian packaging (files in debian/ directory):
+Copyright @ 2009, 2011 Nicolas Duboc
+MTT-like licence reproduced below.
+
+Original package:
+Copyright (C) 2008 JRuby Community
+Copyright (C) 2007 Thomas E Enebo <[email protected]>
+Copyright (C) 2007 Charles O Nutter <[email protected]>
+Copyright (C) 2008 Google Inc. All Rights Reserved.
+
+jna-posix is released under a tri CPL/GPL/LGPL license. You can use it,
+redistribute it and/or modify it under the terms of the license of your choice.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License 2.0 can be found in `/usr/share/common-licenses/GPL-2'.
+The text of the GNU Lesser General Public License 2.1 can be found
+in `/usr/share/common-licenses/LGPL-2.1'.
+
+
+=== Common Public License - v 1.0
+
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC 
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM 
CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+1. DEFINITIONS
+
+"Contribution" means:
+
+      a) in the case of the initial Contributor, the initial code and 
documentation distributed under this Agreement, and
+      b) in the case of each subsequent Contributor:
+
+      i) changes to the Program, and
+
+      ii) additions to the Program;
+
+      where such changes and/or additions to the Program originate from and 
are distributed by that particular Contributor. A Contribution 'originates' 
from a Contributor if it was added to the Program by such Contributor itself or 
anyone acting on such Contributor's behalf. Contributions do not include 
additions to the Program which: (i) are separate modules of software 
distributed in conjunction with the Program under their own license agreement, 
and (ii) are not derivative works of th [...]
+
+"Contributor" means any person or entity that distributes the Program.
+
+"Licensed Patents " mean patent claims licensable by a Contributor which are 
necessarily infringed by the use or sale of its Contribution alone or when 
combined with the Program.
+
+"Program" means the Contributions distributed in accordance with this 
Agreement.
+
+"Recipient" means anyone who receives the Program under this Agreement, 
including all Contributors.
+
+2. GRANT OF RIGHTS
+
+      a) Subject to the terms of this Agreement, each Contributor hereby 
grants Recipient a non-exclusive, worldwide, royalty-free copyright license to 
reproduce, prepare derivative works of, publicly display, publicly perform, 
distribute and sublicense the Contribution of such Contributor, if any, and 
such derivative works, in source code and object code form.
+
+      b) Subject to the terms of this Agreement, each Contributor hereby 
grants Recipient a non-exclusive, worldwide, royalty-free patent license under 
Licensed Patents to make, use, sell, offer to sell, import and otherwise 
transfer the Contribution of such Contributor, if any, in source code and 
object code form. This patent license shall apply to the combination of the 
Contribution and the Program if, at the time the Contribution is added by the 
Contributor, such addition of the Contr [...]
+
+      c) Recipient understands that although each Contributor grants the 
licenses to its Contributions set forth herein, no assurances are provided by 
any Contributor that the Program does not infringe the patent or other 
intellectual property rights of any other entity. Each Contributor disclaims 
any liability to Recipient for claims brought by any other entity based on 
infringement of intellectual property rights or otherwise. As a condition to 
exercising the rights and licenses grante [...]
+
+      d) Each Contributor represents that to its knowledge it has sufficient 
copyright rights in its Contribution, if any, to grant the copyright license 
set forth in this Agreement. 
+
+3. REQUIREMENTS
+
+A Contributor may choose to distribute the Program in object code form under 
its own license agreement, provided that:
+
+      a) it complies with the terms and conditions of this Agreement; and
+
+      b) its license agreement:
+
+      i) effectively disclaims on behalf of all Contributors all warranties 
and conditions, express and implied, including warranties or conditions of 
title and non-infringement, and implied warranties or conditions of 
merchantability and fitness for a particular purpose; 
+
+      ii) effectively excludes on behalf of all Contributors all liability for 
damages, including direct, indirect, special, incidental and consequential 
damages, such as lost profits; 
+
+      iii) states that any provisions which differ from this Agreement are 
offered by that Contributor alone and not by any other party; and
+
+      iv) states that source code for the Program is available from such 
Contributor, and informs licensees how to obtain it in a reasonable manner on 
or through a medium customarily used for software exchange. 
+
+When the Program is made available in source code form:
+
+      a) it must be made available under this Agreement; and 
+
+      b) a copy of this Agreement must be included with each copy of the 
Program. 
+
+Contributors may not remove or alter any copyright notices contained within 
the Program.
+
+Each Contributor must identify itself as the originator of its Contribution, 
if any, in a manner that reasonably allows subsequent Recipients to identify 
the originator of the Contribution.
+
+4. COMMERCIAL DISTRIBUTION
+
+Commercial distributors of software may accept certain responsibilities with 
respect to end users, business partners and the like. While this license is 
intended to facilitate the commercial use of the Program, the Contributor who 
includes the Program in a commercial product offering should do so in a manner 
which does not create potential liability for other Contributors. Therefore, if 
a Contributor includes the Program in a commercial product offering, such 
Contributor ("Commercial Con [...]
+
+For example, a Contributor might include the Program in a commercial product 
offering, Product X. That Contributor is then a Commercial Contributor. If that 
Commercial Contributor then makes performance claims, or offers warranties 
related to Product X, those performance claims and warranties are such 
Commercial Contributor's responsibility alone. Under this section, the 
Commercial Contributor would have to defend claims against the other 
Contributors related to those performance claims  [...]
+
+5. NO WARRANTY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN 
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR 
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, 
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each 
Recipient is solely responsible for determining the appropriateness of using 
and distributing the Program and assumes all risks associated with its exercise 
of rights under this Ag [...]
+
+6. DISCLAIMER OF LIABILITY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY 
CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST 
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 
WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS 
GRANTED HEREUNDER, EVEN IF [...]
+
+7. GENERAL
+
+If any provision of this Agreement is invalid or unenforceable under 
applicable law, it shall not affect the validity or enforceability of the 
remainder of the terms of this Agreement, and without further action by the 
parties hereto, such provision shall be reformed to the minimum extent 
necessary to make such provision valid and enforceable.
+
+If Recipient institutes patent litigation against a Contributor with respect 
to a patent applicable to software (including a cross-claim or counterclaim in 
a lawsuit), then any patent licenses granted by that Contributor to such 
Recipient under this Agreement shall terminate as of the date such litigation 
is filed. In addition, if Recipient institutes patent litigation against any 
entity (including a cross-claim or counterclaim in a lawsuit) alleging that the 
Program itself (excluding co [...]
+
+All Recipient's rights under this Agreement shall terminate if it fails to 
comply with any of the material terms or conditions of this Agreement and does 
not cure such failure in a reasonable period of time after becoming aware of 
such noncompliance. If all Recipient's rights under this Agreement terminate, 
Recipient agrees to cease use and distribution of the Program as soon as 
reasonably practicable. However, Recipient's obligations under this Agreement 
and any licenses granted by Reci [...]
+
+Everyone is permitted to copy and distribute copies of this Agreement, but in 
order to avoid inconsistency the Agreement is copyrighted and may only be 
modified in the following manner. The Agreement Steward reserves the right to 
publish new versions (including revisions) of this Agreement from time to time. 
No one other than the Agreement Steward has the right to modify this Agreement. 
IBM is the initial Agreement Steward. IBM may assign the responsibility to 
serve as the Agreement Stew [...]
+
+This Agreement is governed by the laws of the State of New York and the 
intellectual property laws of the United States of America. No party to this 
Agreement will bring a legal action under this Agreement more than one year 
after the cause of action arose. Each party waives its rights to a jury trial 
in any resulting litigation. 
+
+
+=== License for the Debian packaging (debian/* files in the Debian source 
package):
+
+Copyright (C) 2009, 2011  Nicolas Duboc
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/debian/libjnr-posix-java-doc.README.Debian 
b/debian/libjnr-posix-java-doc.README.Debian
new file mode 100644
index 0000000..4843113
--- /dev/null
+++ b/debian/libjnr-posix-java-doc.README.Debian
@@ -0,0 +1,15 @@
+Debian package of the JNR-POSIX library documentation
+-----------------------------------------------------
+
+ This package contains the documentation for the JNR-POSIX Java
+library which provides access to various POSIX functions like
+chmod(2), link(2) or getuid(2) through dynamic loading of native
+libraries with JNA.
+
+ API documentation (javadoc) is available in directory
+/usr/share/doc/libjnr-posix-java-doc/javadoc .
+
+ The library itself is provided by the libjnr-posix-java package.
+
+-- 
+Nicolas Duboc <[email protected]>
diff --git a/debian/libjnr-posix-java.README.Debian 
b/debian/libjnr-posix-java.README.Debian
new file mode 100644
index 0000000..d8a605b
--- /dev/null
+++ b/debian/libjnr-posix-java.README.Debian
@@ -0,0 +1,23 @@
+Debian package of the JNR-POSIX library
+---------------------------------------
+
+ This package contains the JNR-POSIX Java library which provides
+access to various POSIX functions like chmod(2), link(2) or getuid(2)
+through dynamic loading of native libraries with JNA.
+
+ The library is composed of only one jar file.  This jar file depends
+on the Constantine library, provided by the libconstantine-java
+package, and the jaffl library provided by the libjaffl-java package.
+ Developers should then include the following paths in the
+CLASSPATH, in addition to the dependencies of constantine and jaffl:
+
+    
/usr/share/java/constantine.jar:/usr/share/java/jaffl.jar:/usr/share/java/jnr-posix.jar
+
+ This jar file is also installed in the local Maven Debian repository in
+/usr/share/maven-repo.  The artifact ID is 
org.jruby.ext.posix:jnr-posix:debian.
+
+ API documentation (javadoc) is provided by package libjnr-posix-java-doc in
+directory /usr/share/doc/libjnr-posix-java-doc/javadoc .
+
+-- 
+Nicolas Duboc <[email protected]>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e4b0545
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+
+# FIXME: support of DEB_BUILD_OPTIONS nocheck and nostrip
+
+JAVA_DIR = usr/share/java
+DOC_DIR = usr/share/doc/libjnr-posix-java-doc
+PKG_BUILDDIR = debian/libjnr-posix-java
+PKG_DOC_BUILDDIR = debian/libjnr-posix-java-doc
+
+MVN = mvn -s /etc/maven2/settings-debian.xml
+
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+
+       $(MVN) verify
+       $(MVN) javadoc:javadoc
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+
+       rm -f build-stamp
+       $(MVN) clean
+       rm -rf debian/.mh/
+
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_prep
+
+       dh_installdirs -p libjnr-posix-java $(JAVA_DIR)
+
+       mh_installjar -plibjnr-posix-java --java-lib --usj-name=jnr-posix 
pom.xml target/jnr-posix-1.1.4.jar
+       mh_installpom -plibjnr-posix-java pom.xml
+
+       dh_installdirs -p libjnr-posix-java-doc $(DOC_DIR)
+       mv target/site/apidocs  $(PKG_DOC_BUILDDIR)/$(DOC_DIR)/javadoc
+
+
+binary-indep: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs --indep
+       dh_installdocs --indep
+       dh_compress --indep
+       dh_fixperms --indep
+       dh_installdeb --indep
+       dh_gencontrol --indep
+       dh_md5sums --indep
+       dh_builddeb --indep
+
+binary-arch:
+
+binary: binary-indep binary-arch
+
+
+.PHONY: build install clean binary-indep binary
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/pom.xml b/pom.xml
index d9edddc..66c01a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -89,32 +89,24 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.7</version>
+      <version>4.x</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.jruby.extras</groupId>
       <artifactId>jaffl</artifactId>
-      <version>0.4.1</version>
-      <scope>provided</scope>
+      <version>debian</version>
     </dependency>
     <dependency>
       <groupId>org.jruby.extras</groupId>
       <artifactId>constantine</artifactId>
-      <version>0.7</version>
-      <scope>provided</scope>
+      <version>debian</version>
     </dependency>
   </dependencies>
 
   <build>
     <sourceDirectory>src</sourceDirectory>
     <testSourceDirectory>test</testSourceDirectory>
-    <extensions>
-      <extension>
-        <groupId>org.apache.maven.wagon</groupId>
-        <artifactId>wagon-webdav</artifactId>
-      </extension>
-    </extensions>
     <plugins>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
@@ -131,6 +123,13 @@
           </archive>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <encoding>UTF-8</encoding>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 </project>

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/jnr-posix.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to