diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..c7d1d4c --- /dev/null +++ b/AUTHORS @@ -0,0 +1,3 @@ +Perry Werneck +and others + diff --git a/LICENCA b/LICENCA new file mode 100644 index 0000000..efa9498 --- /dev/null +++ b/LICENCA @@ -0,0 +1,164 @@ +GNU LESSER GENERAL PUBLIC LICENSE (LICENÇA PÚBLICA MENOS GERAL GNU) +Versão 3, 29 de junho de 2007 +Copyright © 2007 Free Software Foundation, Inc. + +É permitido a todos copiar e distribuir cópias literais deste documento de +licença, mas sua alteração não é permitida. + +Esta versão da GNU Lesser General Public License incorpora os termos e +condições da versão 3 da GNU General Public License, complementada pelas +permissões adicionais listadas abaixo. + +0. Definições Adicionais. + +De acordo com sua utilização no presente documento, "esta Licença" refere- +se à versão 3 da GNU Lesser General Public License (Licença Pública Menos +Geral GNU) e "GNU GPL" refere-se à versão 3 da GNU General Public +License (Licença Pública Geral GNU). + +"A Biblioteca" refere-se a um trabalho coberto regido nos termos desta +Licença que não se trate de um Aplicativo ou Trabalho Combinado conforme +definido abaixo. + +Um "Aplicativo" constitui qualquer trabalho que faça uso de uma interface +fornecida pela Biblioteca, mas que não se encontra de outra forma baseada na +referida Biblioteca. A definição de uma subclasse de uma classe definida pela +Biblioteca é considerada um modo de utilizar uma interface fornecida pela +Biblioteca. + +Um "Trabalho Combinado" constitui um trabalho produzido através da +combinação ou vinculação de um Aplicativo à Biblioteca. A versão +específica da Biblioteca com a qual o Trabalho Combinado foi elaborado é +também denominada "Linked Version" [Versão Vinculada]. + +A "Fonte Mínima Correspondente" de um Trabalho Combinado significa a +Fonte Correspondente ao Trabalho Combinado, excluindo qualquer código +fonte de parte do Trabalho Combinado que, considerado de forma isolada, +seja baseado no Aplicativo e não na Versão Vinculada. + +O "Código do aplicativo Correspondente" de um Trabalho Combinado +significa o código objeto e/ou código fonte do Aplicativo, incluindo +quaisquer dados e programas utilitários necessários para a reprodução do +Trabalho Combinado do Aplicativo, mas excluindo as Bibliotecas de Sistema +do Trabalho Combinado. + +1. Exceção à Seção 3 da GNU GPL. + +Você pode distribuir um trabalho coberto nos termos das seções 3 e 4 desta +Licença sem estar limitado aos termos da seção 3 da GNU GPL. + +2. Distribuição de Versões Modificadas. + +Ser vocẽ modificar uma cópia da Biblioteca e, em suas modificações um +recurso referir-se a uma função os dados a serem fornecidos por um +Aplicativo que utiliza o recurso (diferente de quando um argumento é +transmitido quando o recurso é chamado), voçe pode distribuir uma cópia da +versão modificada: + +a) Nos termos desta Licença, desde que você faça um esforço de boa-fé para +garantir que, caso um Aplicativo não forneça a função o dado, o recurso +ainda funcione e execute qualquer parte do seu propósito que permaneça +significatio, ou + +b) nos termos da GNU GPL, sem nenhuma permissão adicional desta Licença +aplicável à referida cópia. + +3. Material que Incorpore Código Objeto dos Arquivos de Cabeçalho da +Biblioteca. + +A forma do código objeto de um Aplicativo pode incorporar material de um +arquivo de cabeçalho que faz parte da Biblioteca. Você pode distribuir o +referido código objeto da forma como escolher, desde que, se o material +incorporado não estiver limitado a parâmetros numéricos, layouts de +estruturas de dados e agentes de acesso ou pequenas macros, funções +sequenciais e modelos (dez ou menos linhas de comprimento), voçê faça o +seguinte: + +a) Forneça um aviso proeminente com cada cópia do código objeto de que +este utiliza a Biblioteca e que a Biblioteca e seu uso são coberto por +esta Licença. + +b) Forneça o código objeto com uma cópia da GNU GPL e esta Licença. + +4. Trabalhos Combinados. + +Você pode distribuir um Trabalho Combinado nos termos que escolher e que, +reunidos em conjunto, não restrinjam de forma efetiva a modificação das +partes da Biblioteca contidas no Trabalho Combinado e a engenharia reversa +para depurações de tais modificações se você também fizer o seguinte: + +a) Fornecer um aviso proeminente com cada cópia do Trabalho Combinado +de que este utiliza a Biblioteca e que a Biblioteca e seu uso são cobertos +por esta Licença. + +b) Fornecer o Trabalho Combinado com uma cópia da GNU GPL e esta +Licença. + +c) Para um Trabalho Combinado que exiba avisos de copyright durante +a execução, incluir o aviso de copyright da Biblioteca entre esses avisos,bem +como uma referência direcionando o usuário para as cópias da GNU GPL e +esta Licença. + +d) Faça um dos seguintes: + +0) Distribua a Fonte Mínima Correspondente nos termos desta Licença e o +Código do Aplicativo Correspondente em uma forma adequada para, e sob +termos que permitam, que o usuário recombine ou revincule o Aplicativo a +uma versão modificada da Versão Vinculada para produzir um Trabalho +Combinado modificado, na forma especificada pela seção 6 da GNU GPL +para distribuição da Fonte Correspondente. + +1) Utilize um mecanismo de biblioteca compartilhada adequado para +vinculação à Biblioteca. + +Um mecanismo adequado é um mecanismo que (a) utiliza em tempo de +execução uma cópia da Biblioteca já presente no sistema de computadores de +usuário e, (b) operará de forma apropriada com uma versão modificada da +Biblioteca que seja compatível com a interface da Versão Vinculada. +e) Forneça Informações de Instalação, mas somente se for necessário de outro +modo fornecer as referidas informações nos termos da seção 6 da GNU GPL, +e somente na medida em que tais informações sejam necessárias para instalar +e executar uma versão modificada do Trabalho Combinado produzido através +da recombinação ou revinculação do Aplicativo a uma versão modificada da +Versão Vinculada. (Se você utilizar a opção 4d0, as Informações de +Instalação devem acompanhar a Fonte Mínima Correspondente e o Código do +Aplicativo Correspondente. Se utilizar a opção 4d1, você deve fornecer as +Informações de Instalação da forma especificada na seção 6 da GNU GPL +para distribuição da Fonte Correspondente.) + +5. Bibliotecas Combinadas. + +Você pode colocar os recursos de biblioteca que constituem um trabalho +baseado na Biblioteca lado a lado em uma única biblioteca em conjunto com +outros recursos de biblioteca que não sejam Aplicativos e não sejam cobertos +por esta Licença, e distribuir a referida biblioteca combinada nos termos de +sua escolha, se fizer o seguinte: + +a) Faça a biblioteca combinada ser acompanhada de uma cópia do mesmo +trabalho baseado na Biblioteca, não combinado a nenhum outro recurso da +biblioteca, distribuído nos termos desta Licença. + +b) Forneça um aviso proeminente com a biblioteca combinada de que parte +da mesma corresponde a um trabalho baseado na Biblioteca e explique onde +localizar a forma não combinada de acompanhamento do mesmo trabalho. + +6. Versões Revisadas da GNU Lesser General Public License. + +A Free Software Foundation pode, de tempos em tempos, publicar versões +revisadas e/ou novas versões da GNU Lesser General Public License. Tais +novas versões serão similares em essência à versão atual, mas podem diferir +em detalhes para abordar novos problemas e/ou interesses. + +Cada versão recebe um número de versão distinto. Se a Biblioteca recebida +especificar que uma determinada versão numerada da GNU Lesser General +Public License "ou qualquer versão posterior" se aplique a ela, você tem a +opção de seguir os termos e condições da versão publicada ou de qualquer +versão posterior publicada pela Free Software Foundation. Se a Biblioteca, da +forma como foi recebida, não especificar um número de versão da GNU Lesser +General Public License, você pode escolher qualquer versão da GNU +Lesser General Public License já publicada pela Free Software Foundation. +Se a Biblioteca recebida especificar que um procurador pode decidir se +versões futuras da GNU Lesses General Public License serão aplicáveis, a +instrução pública do procurados de aceitação de qualquer versão constitui +uma autorização permanente para que você escolha esta versão da Biblioteca. + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bdf8db0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,166 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + diff --git a/Makefile.in b/Makefile.in index 277410a..0af05c6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -44,7 +44,8 @@ javadocdir=@javadocdir@ #---[ Configuration values ]------------------------------------------------------------- PACKAGE_NAME=pw3270 -PACKAGE_TARNAME=pw3270-java +PACKAGE_TARNAME=pw3270-plugin-java +PACKAGE_VERSION=@PACKAGE_VERSION@ BASEDIR=@BASEDIR@ SRCDIR=$(BASEDIR)/.src/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) @@ -66,6 +67,8 @@ JAVA=@JAVA@ JAVAC=@JAVAC@ MKDIR=@MKDIR_P@ JAVADOC=@JAVADOC@ +AMTAR=@AMTAR@ +RPMBUILD=@RPMBUILD@ #---[ Rules ]---------------------------------------------------------------------------- @@ -160,7 +163,7 @@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar: \ --owner=root \ --group=root \ --file=$@ \ - $(PACKAGE_TARNAME)-@PACKAGE_VERSION@ + $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) $(SRCDIR): \ @@ -192,13 +195,14 @@ $(SRCDIR): \ @cp src/include/*.h $(SRCDIR)/src/include @$(MKDIR) $(SRCDIR)/src/jni + @cp src/jni/*.h $(SRCDIR)/src/jni @cp src/jni/*.in $(SRCDIR)/src/jni @cp src/jni/*.cc $(SRCDIR)/src/jni @$(MKDIR) $(SRCDIR)/src/plugin + @cp src/plugin/*.h $(SRCDIR)/src/plugin @cp src/plugin/*.in $(SRCDIR)/src/plugin @cp src/plugin/*.cc $(SRCDIR)/src/plugin - @cp src/plugin/*.xml $(SRCDIR)/src/plugin $(BINRLS)/$(LIBNAME): \ diff --git a/pw3270-plugin-java.spec b/pw3270-plugin-java.spec new file mode 100644 index 0000000..ad17ac9 --- /dev/null +++ b/pw3270-plugin-java.spec @@ -0,0 +1,119 @@ +# +# spec file for package pw3270-plugin-java +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (C) <2008> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +Summary: Plugin module for embedding java on pw3270. +Name: pw3270-plugin-java +Version: 5.1 +Release: 0 +License: GPL-2.0 +Source: %{name}-%{version}.tar.bz2 +URL: https://portal.softwarepublico.gov.br/social/pw3270/ +Group: Development/Languages/Java + +BuildRoot: /var/tmp/%{name}-%{version} + +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc-c++ +BuildRequires: m4 +BuildRequires: pkgconfig +BuildRequires: pw3270-devel >= 5.1 + +BuildRequires: java-devel +BuildRequires: javapackages-tools + +Requires: pw3270 >= 5.1 +Requires: java-extension-tn3270 = %{version} + +%description + +Plugin module for java plugins in pw3270. + +This package provides a pw3270 plugin allowing use o rexx scripts +directly from pw3270 main window. + +%package -n pw3270-java + +Summary: Java class to interact with pw3270 +Group: Development/Libraries/Java +Requires: lib3270 >= 5.1 +Requires: java >= 4.2 + +%description -n pw3270-java + +This package provides Java class for lib3270/pw3270 interaction. + +%package -n pw3270-java-doc +Summary: Javadoc for %{name} +Group: Documentation +Requires: jpackage-utils + +%description -n pw3270-java-doc +API documentation for %{name}. + +%prep + +%setup + +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +export FFLAGS="$RPM_OPT_FLAGS" +export JAVA_HOME=%{java_home} + +aclocal +autoconf + +%configure --with-jnidir="%{_jnidir}" \ + --with-jvmjardir="%{_jvmjardir}" \ + --with-javadocdir="%{_javadocdir}" + +%build +make clean +make Release + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +%fdupes $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_libdir}/pw3270-plugins/j3270.so + +%files -n pw3270-java +%defattr(-,root,root) +%dir %{_jnidir} +%dir %{_jvmjardir} + +%{_jnidir}/libjni3270.so +%{_jvmjardir}/pw3270.jar + +%files -n pw3270-java-doc +%defattr(-,root,root) +%dir %{_javadocdir}/pw3270 +%{_javadocdir}/pw3270/* + +%changelog + + -- libgit2 0.21.2