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