Commit 4f0ddb738a20def00fabb30cba2a56feb5f212e2
1 parent
e39c1d39
Exists in
master
and in
5 other branches
Reorganizando diretórios.
Showing
30 changed files
with
1886 additions
and
1886 deletions
Show diff stats
apt.sh
| ... | ... | @@ -1,24 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | - | |
| 3 | -apt-get install autotools-dev | |
| 4 | -apt-get install autoconf | |
| 5 | -apt-get install automake | |
| 6 | -apt-get install libgtk-3-dev | |
| 7 | -apt-get install gettext | |
| 8 | -apt-get install libssl-dev | |
| 9 | -apt-get install desktop-file-utils | |
| 10 | -apt-get install libdbus-glib-1-dev | |
| 11 | -apt-get install libssl-dev | |
| 12 | -apt-get install xsltproc | |
| 13 | -apt-get install librsvg2-bin | |
| 14 | -apt-get install zip | |
| 15 | -apt-get install oorexx-dev | |
| 16 | -apt-get install imagemagick | |
| 17 | -apt-get install libreoffice-style-galaxy | |
| 18 | -apt-get install libreoffice-dev | |
| 19 | -apt-get install ure | |
| 20 | -apt-get install php5-cli | |
| 21 | -apt-get install php5-dev | |
| 22 | -apt-get install openjdk-7-jdk | |
| 23 | -apt-get install python-dev | |
| 24 | - |
colors.conf
| ... | ... | @@ -1,93 +0,0 @@ |
| 1 | -# | |
| 2 | -# Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 3 | -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 4 | -# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 5 | -# | |
| 6 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | -# | |
| 8 | -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 9 | -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 10 | -# Free Software Foundation. | |
| 11 | -# | |
| 12 | -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 13 | -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 14 | -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | -# obter mais detalhes. | |
| 16 | -# | |
| 17 | -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 18 | -# programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | |
| 19 | -# St, Fifth Floor, Boston, MA 02110-1301 USA | |
| 20 | -# | |
| 21 | -# | |
| 22 | -# Contatos: | |
| 23 | -# | |
| 24 | -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 25 | -# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | |
| 26 | -# | |
| 27 | - | |
| 28 | -[default] | |
| 29 | -label=PW3270 default | |
| 30 | - | |
| 31 | -base=#000000,#7890F0,#FF0000,#FF00FF,#00FF00,#00FFFF,#FFFF00,#FFFFFF,#000000,#000080,#FFA200,#800080,#008000,#008080,#A0A000,#C0C0C0 | |
| 32 | -field=#00FF00,#FF0000,#00FFFF,#FFFFFF | |
| 33 | -selection=#404040,#ffffff | |
| 34 | -OIA=#000000,#00FF00,#7890F0,#FFFFFF,#FF0000 | |
| 35 | - | |
| 36 | -cross-hair=#00FF00 | |
| 37 | - | |
| 38 | -[X3270] | |
| 39 | -label=X3270 | |
| 40 | - | |
| 41 | -base=black,deepSkyBlue,red,pink,green,turquoise,yellow,white,black,blue3,orange,purple,paleGreen,paleTurquoise2,grey,white | |
| 42 | -field=green,red,deepSkyBlue,white | |
| 43 | -selection=dimGrey,black | |
| 44 | -OIA=black,turquoise,turquoise,white,red | |
| 45 | - | |
| 46 | -cross-hair=white | |
| 47 | - | |
| 48 | -[Reverse] | |
| 49 | -label=Reverse | |
| 50 | -label[pt_BR]=Invertido | |
| 51 | - | |
| 52 | -base=white,blue,firebrick,pink,green4,cadetBlue,goldenrod,black,white,blue3,orange,purple,paleGreen,darkTurquoise,grey,black | |
| 53 | -selection=dimGrey,black | |
| 54 | -OIA=white,blue,blue,black,black | |
| 55 | - | |
| 56 | -cross-hair=black | |
| 57 | - | |
| 58 | -[Bright] | |
| 59 | -label=Bright | |
| 60 | -label[pt_BR]=Cores fortes | |
| 61 | - | |
| 62 | -base=black,blue,red,magenta,green,turquoise,yellow,white,black,blue3,orange,purple,paleGreen,cyan,grey,white | |
| 63 | -selection=dimGrey,black | |
| 64 | -OIA=black,blue,blue,white,red | |
| 65 | - | |
| 66 | -cross-hair=white | |
| 67 | - | |
| 68 | -[CPE] | |
| 69 | -label=CPE | |
| 70 | -base=black,LightBlue1,PaleVioletRed1,pink,green,turquoise,yellow,white,black,LightBlue3,orange,MediumPurple1,paleGreen,paleTurquoise2,grey80,white | |
| 71 | -selection=dimGrey,black | |
| 72 | -OIA=black,turquoise,turquoise,white,red | |
| 73 | - | |
| 74 | -cross-hair=white | |
| 75 | - | |
| 76 | -[Green] | |
| 77 | -label=Green | |
| 78 | -label[pt_BR]=Verde | |
| 79 | - | |
| 80 | -base=black,green | |
| 81 | - | |
| 82 | -[WB] | |
| 83 | -label=White on Black | |
| 84 | -label[pt_BR]=Branco com fundo preto | |
| 85 | - | |
| 86 | -base=black,white | |
| 87 | - | |
| 88 | -[BW] | |
| 89 | -label=Black on White | |
| 90 | -label[pt_BR]=Preto com fundo branco | |
| 91 | - | |
| 92 | -base=white,black | |
| 93 | - |
| ... | ... | @@ -0,0 +1,93 @@ |
| 1 | +# | |
| 2 | +# Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 3 | +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 4 | +# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 5 | +# | |
| 6 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | +# | |
| 8 | +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 9 | +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 10 | +# Free Software Foundation. | |
| 11 | +# | |
| 12 | +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 13 | +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 14 | +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | +# obter mais detalhes. | |
| 16 | +# | |
| 17 | +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 18 | +# programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | |
| 19 | +# St, Fifth Floor, Boston, MA 02110-1301 USA | |
| 20 | +# | |
| 21 | +# | |
| 22 | +# Contatos: | |
| 23 | +# | |
| 24 | +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 25 | +# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | |
| 26 | +# | |
| 27 | + | |
| 28 | +[default] | |
| 29 | +label=PW3270 default | |
| 30 | + | |
| 31 | +base=#000000,#7890F0,#FF0000,#FF00FF,#00FF00,#00FFFF,#FFFF00,#FFFFFF,#000000,#000080,#FFA200,#800080,#008000,#008080,#A0A000,#C0C0C0 | |
| 32 | +field=#00FF00,#FF0000,#00FFFF,#FFFFFF | |
| 33 | +selection=#404040,#ffffff | |
| 34 | +OIA=#000000,#00FF00,#7890F0,#FFFFFF,#FF0000 | |
| 35 | + | |
| 36 | +cross-hair=#00FF00 | |
| 37 | + | |
| 38 | +[X3270] | |
| 39 | +label=X3270 | |
| 40 | + | |
| 41 | +base=black,deepSkyBlue,red,pink,green,turquoise,yellow,white,black,blue3,orange,purple,paleGreen,paleTurquoise2,grey,white | |
| 42 | +field=green,red,deepSkyBlue,white | |
| 43 | +selection=dimGrey,black | |
| 44 | +OIA=black,turquoise,turquoise,white,red | |
| 45 | + | |
| 46 | +cross-hair=white | |
| 47 | + | |
| 48 | +[Reverse] | |
| 49 | +label=Reverse | |
| 50 | +label[pt_BR]=Invertido | |
| 51 | + | |
| 52 | +base=white,blue,firebrick,pink,green4,cadetBlue,goldenrod,black,white,blue3,orange,purple,paleGreen,darkTurquoise,grey,black | |
| 53 | +selection=dimGrey,black | |
| 54 | +OIA=white,blue,blue,black,black | |
| 55 | + | |
| 56 | +cross-hair=black | |
| 57 | + | |
| 58 | +[Bright] | |
| 59 | +label=Bright | |
| 60 | +label[pt_BR]=Cores fortes | |
| 61 | + | |
| 62 | +base=black,blue,red,magenta,green,turquoise,yellow,white,black,blue3,orange,purple,paleGreen,cyan,grey,white | |
| 63 | +selection=dimGrey,black | |
| 64 | +OIA=black,blue,blue,white,red | |
| 65 | + | |
| 66 | +cross-hair=white | |
| 67 | + | |
| 68 | +[CPE] | |
| 69 | +label=CPE | |
| 70 | +base=black,LightBlue1,PaleVioletRed1,pink,green,turquoise,yellow,white,black,LightBlue3,orange,MediumPurple1,paleGreen,paleTurquoise2,grey80,white | |
| 71 | +selection=dimGrey,black | |
| 72 | +OIA=black,turquoise,turquoise,white,red | |
| 73 | + | |
| 74 | +cross-hair=white | |
| 75 | + | |
| 76 | +[Green] | |
| 77 | +label=Green | |
| 78 | +label[pt_BR]=Verde | |
| 79 | + | |
| 80 | +base=black,green | |
| 81 | + | |
| 82 | +[WB] | |
| 83 | +label=White on Black | |
| 84 | +label[pt_BR]=Branco com fundo preto | |
| 85 | + | |
| 86 | +base=black,white | |
| 87 | + | |
| 88 | +[BW] | |
| 89 | +label=Black on White | |
| 90 | +label[pt_BR]=Preto com fundo branco | |
| 91 | + | |
| 92 | +base=white,black | |
| 93 | + | ... | ... |
debian.changelog
debian.control
| ... | ... | @@ -1,45 +0,0 @@ |
| 1 | -Source: pw3270 | |
| 2 | -Section: unknown | |
| 3 | -Priority: optional | |
| 4 | -Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 5 | -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, oorexx-dev, zip, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure | |
| 6 | - | |
| 7 | -Package: pw3270 | |
| 8 | -Architecture: any | |
| 9 | -Depends: ${shlibs:Depends}, lib3270 (= ${binary:Version}) | |
| 10 | -Description: IBM 3270 Terminal emulator for gtk | |
| 11 | - IBM 3270 terminal emulator gtk. It can be used to communicate with | |
| 12 | - any IBM host that supports 3270-style connections over TELNET. | |
| 13 | - | |
| 14 | -Package: lib3270 | |
| 15 | -Architecture: any | |
| 16 | -Section: libs | |
| 17 | -Depends: ${misc:Depends} | |
| 18 | -Description: pw3270 shared libraries. | |
| 19 | - This package contains the pw3270 shared library for the core application. | |
| 20 | - | |
| 21 | -Package: lib3270-dev | |
| 22 | -Architecture: any | |
| 23 | -Section: libdevel | |
| 24 | -Depends: ${misc:Depends}, lib3270 (= ${binary:Version}) | |
| 25 | -Description: lib3270 development files. | |
| 26 | - This package contains the files needed for development of lib3270 based applications | |
| 27 | - | |
| 28 | -Package: pw3270-plugin-dbus | |
| 29 | -Architecture: any | |
| 30 | -Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libdbus-1-3 | |
| 31 | -Description: DBUS plugin for pw3270. | |
| 32 | - This package contains the plugin allowing scripting of a pw3270 session using dbus calls. | |
| 33 | - | |
| 34 | -Package: pw3270-plugin-rexx | |
| 35 | -Architecture: any | |
| 36 | -Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx (>= 4.1.2) | |
| 37 | -Description: REXX script support for pw3270. | |
| 38 | - This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. | |
| 39 | - | |
| 40 | -Package: libreoffice-extension-pw3270 | |
| 41 | -Architecture: any | |
| 42 | -Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libreoffice-core | |
| 43 | -Description: DBUS plugin for pw3270. | |
| 44 | - This package contains the libreoffice modules for acessing 3270 hosts. | |
| 45 | - |
debian.rules
| ... | ... | @@ -1,124 +0,0 @@ |
| 1 | -#!/usr/bin/make -f | |
| 2 | -# Sample debian/rules that uses debhelper. | |
| 3 | -# GNU copyright 1997 to 1999 by Joey Hess. | |
| 4 | - | |
| 5 | -# Uncomment this to turn on verbose mode. | |
| 6 | -export DH_VERBOSE=1 | |
| 7 | - | |
| 8 | -# This is the debhelper compatibility version to use. | |
| 9 | -export DH_COMPAT=4 | |
| 10 | - | |
| 11 | -# Libreoffice stuff | |
| 12 | -export OFFICE_HOME=/usr/lib/libreoffice | |
| 13 | -export OO_SDK_URE_HOME=/usr/lib/ure | |
| 14 | - | |
| 15 | -CFLAGS = -g | |
| 16 | -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
| 17 | -CFLAGS += -O0 | |
| 18 | -else | |
| 19 | -CFLAGS += -O2 | |
| 20 | -endif | |
| 21 | - | |
| 22 | -build: build-stamp | |
| 23 | -build-stamp: | |
| 24 | - dh_testdir | |
| 25 | - | |
| 26 | - # Add here commands to compile the package. | |
| 27 | - aclocal | |
| 28 | - autoconf | |
| 29 | - ./configure --prefix=/usr | |
| 30 | - rm -f debian/*.install | |
| 31 | - make Release | |
| 32 | - # --- end custom part for compiling | |
| 33 | - | |
| 34 | - touch build-stamp | |
| 35 | - | |
| 36 | -clean: | |
| 37 | - dh_testdir | |
| 38 | - dh_testroot | |
| 39 | - rm -f build-stamp | |
| 40 | - | |
| 41 | - # Add here commands to clean up after the build process. | |
| 42 | - if [ -e Makefile ]; then make clean ; fi | |
| 43 | - # --- end custom part for cleaning up | |
| 44 | - | |
| 45 | - dh_clean | |
| 46 | - | |
| 47 | -install: build | |
| 48 | - dh_testdir | |
| 49 | - dh_testroot | |
| 50 | - dh_clean -k | |
| 51 | - dh_installdirs | |
| 52 | - | |
| 53 | - # Install main library | |
| 54 | - make DESTDIR=$(PWD)/debian/lib3270 install-lib | |
| 55 | - | |
| 56 | - # Install pw3270's GUI | |
| 57 | - make DESTDIR=$(PWD)/debian/pw3270 install-app | |
| 58 | - | |
| 59 | - # Install sdk | |
| 60 | - make DESTDIR=$(PWD)/debian/lib3270-dev install-sdk | |
| 61 | - | |
| 62 | - mkdir -p $(PWD)/debian/lib3270-dev/usr/share/pw3270/ui | |
| 63 | - mv -f $(PWD)/debian/pw3270/usr/share/pw3270/ui/*debug.xml $(PWD)/debian/lib3270-dev/usr/share/pw3270/ui/ | |
| 64 | - | |
| 65 | - # Install libreoffice extension | |
| 66 | - make DESTDIR=$(PWD)/debian/libreoffice-extension-pw3270 install-oxt | |
| 67 | - | |
| 68 | - # Install DBUS plugin | |
| 69 | - make DESTDIR=$(PWD)/debian/pw3270-plugin-dbus install-plugin-dbus | |
| 70 | - | |
| 71 | - # Install REXX plugin | |
| 72 | - make DESTDIR=$(PWD)/debian/pw3270-plugin-rexx install-plugin-rexx | |
| 73 | - | |
| 74 | - mkdir -p $(PWD)/debian/pw3270-plugin-rexx/usr/share/pw3270/ui/ | |
| 75 | - mv -f $(PWD)/debian/pw3270/usr/share/pw3270/ui/*rexx.xml $(PWD)/debian/pw3270-plugin-rexx/usr/share/pw3270/ui/ | |
| 76 | - | |
| 77 | - # Create updated file lists | |
| 78 | - find $(PWD)/debian/lib3270 -type f | sed -e "s@^$(PWD)/debian/lib3270/@/@g" > $(PWD)/debian/lib3270.install | |
| 79 | - | |
| 80 | - find $(PWD)/debian/pw3270 -type f | sed -e "s@^$(PWD)/debian/pw3270/@/@g" > $(PWD)/debian/pw3270.install | |
| 81 | - | |
| 82 | - find $(PWD)/debian/libreoffice-extension-pw3270 -type f | sed -e "s@^$(PWD)/debian/libreoffice-extension-pw3270/@/@g" > $(PWD)/debian/libreoffice-extension-pw3270.install | |
| 83 | - | |
| 84 | - find $(PWD)/debian/pw3270-plugin-dbus -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-dbus/@/@g" > $(PWD)/debian/pw3270-plugin-dbus.install | |
| 85 | - find $(PWD)/debian/pw3270-plugin-rexx -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-rexx/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install | |
| 86 | - | |
| 87 | - # --- end custom part for installing | |
| 88 | - | |
| 89 | -# Build architecture-independent files here. | |
| 90 | -binary-indep: build install | |
| 91 | - # We have nothing to do by default. | |
| 92 | - | |
| 93 | -# Build architecture-dependent files here. | |
| 94 | -binary-arch: build install | |
| 95 | - dh_testdir | |
| 96 | - dh_testroot | |
| 97 | -# dh_installdebconf | |
| 98 | - dh_installdocs | |
| 99 | - dh_installexamples | |
| 100 | - dh_installmenu | |
| 101 | -# dh_installlogrotate | |
| 102 | -# dh_installemacsen | |
| 103 | -# dh_installpam | |
| 104 | -# dh_installmime | |
| 105 | -# dh_installinit | |
| 106 | - dh_installcron | |
| 107 | - dh_installman | |
| 108 | - dh_installinfo | |
| 109 | -# dh_undocumented | |
| 110 | - dh_installchangelogs | |
| 111 | - dh_link | |
| 112 | - dh_strip | |
| 113 | - dh_compress | |
| 114 | - dh_fixperms | |
| 115 | -# dh_makeshlibs | |
| 116 | - dh_installdeb | |
| 117 | -# dh_perl | |
| 118 | -# dh_shlibdeps | |
| 119 | - dh_gencontrol | |
| 120 | - dh_md5sums | |
| 121 | - dh_builddeb | |
| 122 | - | |
| 123 | -binary: binary-indep binary-arch | |
| 124 | -.PHONY: build clean binary-indep binary-arch binary install |
| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +apt-get install autotools-dev | |
| 4 | +apt-get install autoconf | |
| 5 | +apt-get install automake | |
| 6 | +apt-get install libgtk-3-dev | |
| 7 | +apt-get install gettext | |
| 8 | +apt-get install libssl-dev | |
| 9 | +apt-get install desktop-file-utils | |
| 10 | +apt-get install libdbus-glib-1-dev | |
| 11 | +apt-get install libssl-dev | |
| 12 | +apt-get install xsltproc | |
| 13 | +apt-get install librsvg2-bin | |
| 14 | +apt-get install zip | |
| 15 | +apt-get install oorexx-dev | |
| 16 | +apt-get install imagemagick | |
| 17 | +apt-get install libreoffice-style-galaxy | |
| 18 | +apt-get install libreoffice-dev | |
| 19 | +apt-get install ure | |
| 20 | +apt-get install php5-cli | |
| 21 | +apt-get install php5-dev | |
| 22 | +apt-get install openjdk-7-jdk | |
| 23 | +apt-get install python-dev | |
| 24 | + | ... | ... |
| ... | ... | @@ -0,0 +1,45 @@ |
| 1 | +Source: pw3270 | |
| 2 | +Section: unknown | |
| 3 | +Priority: optional | |
| 4 | +Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 5 | +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, oorexx-dev, zip, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure | |
| 6 | + | |
| 7 | +Package: pw3270 | |
| 8 | +Architecture: any | |
| 9 | +Depends: ${shlibs:Depends}, lib3270 (= ${binary:Version}) | |
| 10 | +Description: IBM 3270 Terminal emulator for gtk | |
| 11 | + IBM 3270 terminal emulator gtk. It can be used to communicate with | |
| 12 | + any IBM host that supports 3270-style connections over TELNET. | |
| 13 | + | |
| 14 | +Package: lib3270 | |
| 15 | +Architecture: any | |
| 16 | +Section: libs | |
| 17 | +Depends: ${misc:Depends} | |
| 18 | +Description: pw3270 shared libraries. | |
| 19 | + This package contains the pw3270 shared library for the core application. | |
| 20 | + | |
| 21 | +Package: lib3270-dev | |
| 22 | +Architecture: any | |
| 23 | +Section: libdevel | |
| 24 | +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}) | |
| 25 | +Description: lib3270 development files. | |
| 26 | + This package contains the files needed for development of lib3270 based applications | |
| 27 | + | |
| 28 | +Package: pw3270-plugin-dbus | |
| 29 | +Architecture: any | |
| 30 | +Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libdbus-1-3 | |
| 31 | +Description: DBUS plugin for pw3270. | |
| 32 | + This package contains the plugin allowing scripting of a pw3270 session using dbus calls. | |
| 33 | + | |
| 34 | +Package: pw3270-plugin-rexx | |
| 35 | +Architecture: any | |
| 36 | +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx (>= 4.1.2) | |
| 37 | +Description: REXX script support for pw3270. | |
| 38 | + This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. | |
| 39 | + | |
| 40 | +Package: libreoffice-extension-pw3270 | |
| 41 | +Architecture: any | |
| 42 | +Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libreoffice-core | |
| 43 | +Description: DBUS plugin for pw3270. | |
| 44 | + This package contains the libreoffice modules for acessing 3270 hosts. | |
| 45 | + | ... | ... |
| ... | ... | @@ -0,0 +1,19 @@ |
| 1 | +#!/bin/bash | |
| 2 | +#./autogen.sh | |
| 3 | + | |
| 4 | +VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) | |
| 5 | +TIMESTAMP=$(LANG=en_US date) | |
| 6 | +. ./revision | |
| 7 | + | |
| 8 | +rm -fr debian | |
| 9 | +mkdir debian | |
| 10 | + | |
| 11 | +echo 7 > debian/compat | |
| 12 | +cp debian.control debian/control | |
| 13 | +cp debian.rules debian/rules | |
| 14 | +chmod +x debian/rules | |
| 15 | + | |
| 16 | +EDITOR=true dch --preserve -v $VERSION-$PACKAGE_LEVEL -u low --create --package pw3270 | |
| 17 | +sed -i "s@UNRELEASED@unstable@;s@Initial release. (Closes: #XXXXXX)@SVN Revision $PACKAGE_REVISION@" debian/changelog | |
| 18 | + | |
| 19 | +dpkg-buildpackage -rfakeroot -uc -us | ... | ... |
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +Format: 1.0 | |
| 2 | +Source: pw3270 | |
| 3 | +Version: 5.0.0 | |
| 4 | +Binary: pw3270 | |
| 5 | +Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 6 | +Architecture: any | |
| 7 | +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libreoffice-dev, ure, imagemagick, librsvg2-bin | |
| 8 | +Files: | |
| 9 | + 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz | |
| 10 | + | |
| 11 | + | ... | ... |
| ... | ... | @@ -0,0 +1,124 @@ |
| 1 | +#!/usr/bin/make -f | |
| 2 | +# Sample debian/rules that uses debhelper. | |
| 3 | +# GNU copyright 1997 to 1999 by Joey Hess. | |
| 4 | + | |
| 5 | +# Uncomment this to turn on verbose mode. | |
| 6 | +export DH_VERBOSE=1 | |
| 7 | + | |
| 8 | +# This is the debhelper compatibility version to use. | |
| 9 | +export DH_COMPAT=4 | |
| 10 | + | |
| 11 | +# Libreoffice stuff | |
| 12 | +export OFFICE_HOME=/usr/lib/libreoffice | |
| 13 | +export OO_SDK_URE_HOME=/usr/lib/ure | |
| 14 | + | |
| 15 | +CFLAGS = -g | |
| 16 | +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
| 17 | +CFLAGS += -O0 | |
| 18 | +else | |
| 19 | +CFLAGS += -O2 | |
| 20 | +endif | |
| 21 | + | |
| 22 | +build: build-stamp | |
| 23 | +build-stamp: | |
| 24 | + dh_testdir | |
| 25 | + | |
| 26 | + # Add here commands to compile the package. | |
| 27 | + aclocal | |
| 28 | + autoconf | |
| 29 | + ./configure --prefix=/usr | |
| 30 | + rm -f debian/*.install | |
| 31 | + make Release | |
| 32 | + # --- end custom part for compiling | |
| 33 | + | |
| 34 | + touch build-stamp | |
| 35 | + | |
| 36 | +clean: | |
| 37 | + dh_testdir | |
| 38 | + dh_testroot | |
| 39 | + rm -f build-stamp | |
| 40 | + | |
| 41 | + # Add here commands to clean up after the build process. | |
| 42 | + if [ -e Makefile ]; then make clean ; fi | |
| 43 | + # --- end custom part for cleaning up | |
| 44 | + | |
| 45 | + dh_clean | |
| 46 | + | |
| 47 | +install: build | |
| 48 | + dh_testdir | |
| 49 | + dh_testroot | |
| 50 | + dh_clean -k | |
| 51 | + dh_installdirs | |
| 52 | + | |
| 53 | + # Install main library | |
| 54 | + make DESTDIR=$(PWD)/debian/lib3270 install-lib | |
| 55 | + | |
| 56 | + # Install pw3270's GUI | |
| 57 | + make DESTDIR=$(PWD)/debian/pw3270 install-app | |
| 58 | + | |
| 59 | + # Install sdk | |
| 60 | + make DESTDIR=$(PWD)/debian/lib3270-dev install-sdk | |
| 61 | + | |
| 62 | + mkdir -p $(PWD)/debian/lib3270-dev/usr/share/pw3270/ui | |
| 63 | + mv -f $(PWD)/debian/pw3270/usr/share/pw3270/ui/*debug.xml $(PWD)/debian/lib3270-dev/usr/share/pw3270/ui/ | |
| 64 | + | |
| 65 | + # Install libreoffice extension | |
| 66 | + make DESTDIR=$(PWD)/debian/libreoffice-extension-pw3270 install-oxt | |
| 67 | + | |
| 68 | + # Install DBUS plugin | |
| 69 | + make DESTDIR=$(PWD)/debian/pw3270-plugin-dbus install-plugin-dbus | |
| 70 | + | |
| 71 | + # Install REXX plugin | |
| 72 | + make DESTDIR=$(PWD)/debian/pw3270-plugin-rexx install-plugin-rexx | |
| 73 | + | |
| 74 | + mkdir -p $(PWD)/debian/pw3270-plugin-rexx/usr/share/pw3270/ui/ | |
| 75 | + mv -f $(PWD)/debian/pw3270/usr/share/pw3270/ui/*rexx.xml $(PWD)/debian/pw3270-plugin-rexx/usr/share/pw3270/ui/ | |
| 76 | + | |
| 77 | + # Create updated file lists | |
| 78 | + find $(PWD)/debian/lib3270 -type f | sed -e "s@^$(PWD)/debian/lib3270/@/@g" > $(PWD)/debian/lib3270.install | |
| 79 | + | |
| 80 | + find $(PWD)/debian/pw3270 -type f | sed -e "s@^$(PWD)/debian/pw3270/@/@g" > $(PWD)/debian/pw3270.install | |
| 81 | + | |
| 82 | + find $(PWD)/debian/libreoffice-extension-pw3270 -type f | sed -e "s@^$(PWD)/debian/libreoffice-extension-pw3270/@/@g" > $(PWD)/debian/libreoffice-extension-pw3270.install | |
| 83 | + | |
| 84 | + find $(PWD)/debian/pw3270-plugin-dbus -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-dbus/@/@g" > $(PWD)/debian/pw3270-plugin-dbus.install | |
| 85 | + find $(PWD)/debian/pw3270-plugin-rexx -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-rexx/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install | |
| 86 | + | |
| 87 | + # --- end custom part for installing | |
| 88 | + | |
| 89 | +# Build architecture-independent files here. | |
| 90 | +binary-indep: build install | |
| 91 | + # We have nothing to do by default. | |
| 92 | + | |
| 93 | +# Build architecture-dependent files here. | |
| 94 | +binary-arch: build install | |
| 95 | + dh_testdir | |
| 96 | + dh_testroot | |
| 97 | +# dh_installdebconf | |
| 98 | + dh_installdocs | |
| 99 | + dh_installexamples | |
| 100 | + dh_installmenu | |
| 101 | +# dh_installlogrotate | |
| 102 | +# dh_installemacsen | |
| 103 | +# dh_installpam | |
| 104 | +# dh_installmime | |
| 105 | +# dh_installinit | |
| 106 | + dh_installcron | |
| 107 | + dh_installman | |
| 108 | + dh_installinfo | |
| 109 | +# dh_undocumented | |
| 110 | + dh_installchangelogs | |
| 111 | + dh_link | |
| 112 | + dh_strip | |
| 113 | + dh_compress | |
| 114 | + dh_fixperms | |
| 115 | +# dh_makeshlibs | |
| 116 | + dh_installdeb | |
| 117 | +# dh_perl | |
| 118 | +# dh_shlibdeps | |
| 119 | + dh_gencontrol | |
| 120 | + dh_md5sums | |
| 121 | + dh_builddeb | |
| 122 | + | |
| 123 | +binary: binary-indep binary-arch | |
| 124 | +.PHONY: build clean binary-indep binary-arch binary install | ... | ... |
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +prefix=@prefix@ | |
| 2 | +exec_prefix=@exec_prefix@ | |
| 3 | +libdir=@libdir@ | |
| 4 | +includedir=@includedir@ | |
| 5 | + | |
| 6 | +Name: lib3270 | |
| 7 | +Description: TN3270E Library calls used by @PACKAGE@ | |
| 8 | +Version: @PACKAGE_VERSION@ | |
| 9 | +Libs: -L\@libdir@ -l3270 | |
| 10 | +Libs.private: @LIBSSL_LIBS@ @INTL_LIBS@ @SOCKET_LIBS@ | |
| 11 | +Cflags: -I@includedir@ | |
| 12 | + | ... | ... |
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +prefix=@prefix@ | |
| 2 | +exec_prefix=@exec_prefix@ | |
| 3 | +libdir=@libdir@ | |
| 4 | +includedir=@includedir@ | |
| 5 | + | |
| 6 | +Name: pw3270 | |
| 7 | +Description: @PACKAGE@ GTK widgets and support calls for plugin development | |
| 8 | +Version: @PACKAGE_VERSION@ | |
| 9 | +Libs: -L\@libdir@ -l@PACKAGE_TARNAME@ | |
| 10 | +Libs.private: lib3270 | |
| 11 | +Cflags: -I@includedir@ | |
| 12 | + | ... | ... |
hllapipacket.sh
| ... | ... | @@ -1,136 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | - | |
| 3 | - | |
| 4 | -# | |
| 5 | -# Gera binários windows | |
| 6 | -# | |
| 7 | -# $1 = Arquitetura (x86_32/x86_64) | |
| 8 | -# | |
| 9 | -build() | |
| 10 | -{ | |
| 11 | - echo -e "\e]2;${PACKAGE_NAME}-${1}\a" | |
| 12 | - | |
| 13 | - case ${1} in | |
| 14 | - x86_32) | |
| 15 | - host=i686-w64-mingw32 | |
| 16 | - host_cpu=i686 | |
| 17 | - prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
| 18 | - tools=i686-w64-mingw32 | |
| 19 | - ;; | |
| 20 | - | |
| 21 | - x86_64) | |
| 22 | - host=x86_64-w64-mingw32 | |
| 23 | - host_cpu=x86_64 | |
| 24 | - prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
| 25 | - tools=x86_64-w64-mingw32 | |
| 26 | - ;; | |
| 27 | - | |
| 28 | - | |
| 29 | - *) | |
| 30 | - failed "Arquitetura desconhecida: ${1}" | |
| 31 | - | |
| 32 | - esac | |
| 33 | - | |
| 34 | - # Detecto argumentos | |
| 35 | - ARGS="" | |
| 36 | - | |
| 37 | - ./configure \ | |
| 38 | - --cache-file=.${1}.cache \ | |
| 39 | - --host=${host} \ | |
| 40 | - --prefix=${prefix} \ | |
| 41 | - --disable-rexx | |
| 42 | - --disable-java \ | |
| 43 | - --disable-office | |
| 44 | - | |
| 45 | - if [ "$?" != "0" ]; then | |
| 46 | - failed "Erro ao configurar" | |
| 47 | - fi | |
| 48 | - | |
| 49 | - make clean | |
| 50 | - rm -f *.exe | |
| 51 | - | |
| 52 | - make Release | |
| 53 | - if [ "$?" != "0" ]; then | |
| 54 | - failed "Erro ao compilar fontes" | |
| 55 | - fi | |
| 56 | - | |
| 57 | - mkdir -p ${TEMPDIR}/package/${host_cpu} | |
| 58 | - | |
| 59 | - cp -v .bin/Release/hllapi.dll* ${TEMPDIR}/package/${host_cpu} | |
| 60 | - if [ "$?" != "0" ]; then | |
| 61 | - failed "Erro ao copiar pacotes" | |
| 62 | - fi | |
| 63 | - | |
| 64 | - make clean | |
| 65 | - rm -f *.exe | |
| 66 | - | |
| 67 | -} | |
| 68 | - | |
| 69 | -myDIR=$(readlink -f $(dirname $0)) | |
| 70 | -TEMPDIR=$(mktemp -d) | |
| 71 | -DESTDIR=${HOME}/public_html/win | |
| 72 | -RUNTIMEDIR=$(mktemp -d) | |
| 73 | -ARCHS="x86_32 x86_64" | |
| 74 | -RUNTIME=1 | |
| 75 | -COMPLETE=1 | |
| 76 | - | |
| 77 | -trap cleanup INT | |
| 78 | - | |
| 79 | -until [ -z "$1" ] | |
| 80 | -do | |
| 81 | - if [ ${1:0:2} = '--' ]; then | |
| 82 | - tmp=${1:2} | |
| 83 | - parameter=${tmp%%=*} | |
| 84 | - parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 85 | - | |
| 86 | - case $parameter in | |
| 87 | - | |
| 88 | - 32) | |
| 89 | - ARCHS="x86_32" | |
| 90 | - ;; | |
| 91 | - | |
| 92 | - 64) | |
| 93 | - ARCHS="x86_64" | |
| 94 | - ;; | |
| 95 | - | |
| 96 | - OUT) | |
| 97 | - DESTDIR=$value | |
| 98 | - ;; | |
| 99 | - | |
| 100 | - ARCH) | |
| 101 | - value=${tmp##*=} | |
| 102 | - ARCHS=$value | |
| 103 | - ;; | |
| 104 | - | |
| 105 | - *) | |
| 106 | - value=${tmp##*=} | |
| 107 | - eval $parameter=$value | |
| 108 | - esac | |
| 109 | - | |
| 110 | - fi | |
| 111 | - | |
| 112 | - shift | |
| 113 | -done | |
| 114 | - | |
| 115 | -# Configura | |
| 116 | -aclocal | |
| 117 | -if [ "$?" != "0" ]; then | |
| 118 | - exit -1 | |
| 119 | -fi | |
| 120 | - | |
| 121 | -autoconf | |
| 122 | -if [ "$?" != "0" ]; then | |
| 123 | - exit -1 | |
| 124 | -fi | |
| 125 | - | |
| 126 | -# Gera pacotes | |
| 127 | -for i in ${ARCHS}; do | |
| 128 | - | |
| 129 | - build "${i}" | |
| 130 | - | |
| 131 | -done | |
| 132 | - | |
| 133 | -cd ${TEMPDIR}/package | |
| 134 | - | |
| 135 | -zip -9 -m -r ~/public_html/win/hllapi_$(date "+%Y%m%d").zip . | |
| 136 | - |
install-cross.sh
| ... | ... | @@ -1,100 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | - | |
| 3 | -install_packages() | |
| 4 | -{ | |
| 5 | - | |
| 6 | -TEMPFILE=$(mktemp) | |
| 7 | - | |
| 8 | -cat > ${TEMPFILE} << EOF | |
| 9 | -libopenssl-devel | |
| 10 | -libintl-devel | |
| 11 | -libepoxy0 | |
| 12 | -libgdk_pixbuf-2_0-0 | |
| 13 | -atk-devel | |
| 14 | -pango-devel | |
| 15 | -win_iconv-devel | |
| 16 | -pixman-devel | |
| 17 | -glib2-devel | |
| 18 | -cairo-devel | |
| 19 | -freetype-devel | |
| 20 | -winpthreads-devel | |
| 21 | -gtk3-devel | |
| 22 | -cross-gcc-c++ | |
| 23 | -cross-pkg-config | |
| 24 | -cross-cpp | |
| 25 | -cross-binutils | |
| 26 | -cross-nsis | |
| 27 | -filesystem | |
| 28 | -gettext-tools | |
| 29 | -gtk3-data | |
| 30 | -gtk3-tools | |
| 31 | -headers | |
| 32 | -gnome-icon-theme | |
| 33 | -hicolor-icon-theme | |
| 34 | -gdk-pixbuf-loader-rsvg | |
| 35 | -gdk-pixbuf-query-loaders | |
| 36 | -EOF | |
| 37 | - | |
| 38 | -# python-devel | |
| 39 | - | |
| 40 | -# Instala apicativos e temas necessários | |
| 41 | -sudo zypper --non-interactive in \ | |
| 42 | - adwaita-icon-theme \ | |
| 43 | - gettext-tools \ | |
| 44 | - glib2-devel | |
| 45 | - | |
| 46 | -while read FILE | |
| 47 | -do | |
| 48 | - sudo zypper --non-interactive in ${1}-${FILE} | |
| 49 | -done < ${TEMPFILE} | |
| 50 | - | |
| 51 | -rm -f ${TEMPFILE} | |
| 52 | - | |
| 53 | -} | |
| 54 | - | |
| 55 | -if [ -z ${1} ]; then | |
| 56 | - echo "Use ${0} --32 for 32 bits cross-compiler" | |
| 57 | - echo "Use ${0} --64 for 64 bits cross-compiler" | |
| 58 | - exit -1 | |
| 59 | -fi | |
| 60 | - | |
| 61 | - | |
| 62 | -until [ -z "${1}" ] | |
| 63 | -do | |
| 64 | - if [ ${1:0:2} = '--' ]; then | |
| 65 | - tmp=${1:2} | |
| 66 | - parameter=${tmp%%=*} | |
| 67 | - parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 68 | - | |
| 69 | - case $parameter in | |
| 70 | - | |
| 71 | - ar) | |
| 72 | - zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.1/ mingw32 | |
| 73 | - zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.1/ mingw64 | |
| 74 | - ;; | |
| 75 | - | |
| 76 | - 32) | |
| 77 | - install_packages mingw32 | |
| 78 | - ;; | |
| 79 | - | |
| 80 | - 64) | |
| 81 | - install_packages mingw64 | |
| 82 | - ;; | |
| 83 | - | |
| 84 | - ALL) | |
| 85 | - install_packages mingw32 | |
| 86 | - install_packages mingw64 | |
| 87 | - ;; | |
| 88 | - | |
| 89 | - | |
| 90 | - *) | |
| 91 | - value=${tmp##*=} | |
| 92 | - eval $parameter=$value | |
| 93 | - esac | |
| 94 | - | |
| 95 | - fi | |
| 96 | - | |
| 97 | - shift | |
| 98 | -done | |
| 99 | - | |
| 100 | - |
lib3270.pc.in
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -prefix=@prefix@ | |
| 2 | -exec_prefix=@exec_prefix@ | |
| 3 | -libdir=@libdir@ | |
| 4 | -includedir=@includedir@ | |
| 5 | - | |
| 6 | -Name: lib3270 | |
| 7 | -Description: TN3270E Library calls used by @PACKAGE@ | |
| 8 | -Version: @PACKAGE_VERSION@ | |
| 9 | -Libs: -L\@libdir@ -l3270 | |
| 10 | -Libs.private: @LIBSSL_LIBS@ @INTL_LIBS@ @SOCKET_LIBS@ | |
| 11 | -Cflags: -I@includedir@ | |
| 12 | - |
makedeb.sh
| ... | ... | @@ -1,19 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | -#./autogen.sh | |
| 3 | - | |
| 4 | -VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) | |
| 5 | -TIMESTAMP=$(LANG=en_US date) | |
| 6 | -. ./revision | |
| 7 | - | |
| 8 | -rm -fr debian | |
| 9 | -mkdir debian | |
| 10 | - | |
| 11 | -echo 7 > debian/compat | |
| 12 | -cp debian.control debian/control | |
| 13 | -cp debian.rules debian/rules | |
| 14 | -chmod +x debian/rules | |
| 15 | - | |
| 16 | -EDITOR=true dch --preserve -v $VERSION-$PACKAGE_LEVEL -u low --create --package pw3270 | |
| 17 | -sed -i "s@UNRELEASED@unstable@;s@Initial release. (Closes: #XXXXXX)@SVN Revision $PACKAGE_REVISION@" debian/changelog | |
| 18 | - | |
| 19 | -dpkg-buildpackage -rfakeroot -uc -us |
makegtkruntime.sh.in
| ... | ... | @@ -1,356 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | -PKG_CONFIG="@PKG_CONFIG@" | |
| 3 | -GTK_VERSION="gtk+-@GTK_VERSION@" | |
| 4 | - | |
| 5 | -GTK_PREFIX=$($PKG_CONFIG --variable=prefix $GTK_VERSION) | |
| 6 | -TARGET_PATH=".bin/gtkruntime" | |
| 7 | - | |
| 8 | -# Clean target folder | |
| 9 | -rm -fr "$TARGET_PATH/*" | |
| 10 | -mkdir -p "$TARGET_PATH" | |
| 11 | - | |
| 12 | -copyFile() { | |
| 13 | - | |
| 14 | - GTKPATH=$(find "$GTK_PREFIX/bin" -name "$1") | |
| 15 | - SYSPATH=$(find "/bin" -name "$1") | |
| 16 | - | |
| 17 | - if [ ! -z "$GTKPATH" ]; then | |
| 18 | - echo "$GTKPATH ..." | |
| 19 | - cp $GTKPATH "$TARGET_PATH" | |
| 20 | - if [ "$?" != "0" ]; then | |
| 21 | - echo "Can´t copy $GTKPATH" | |
| 22 | - return 1 | |
| 23 | - fi | |
| 24 | - elif [ ! -z "$SYSPATH" ]; then | |
| 25 | - echo "$SYSPATH ..." | |
| 26 | - cp $SYSPATH "$TARGET_PATH" | |
| 27 | - if [ "$?" != "0" ]; then | |
| 28 | - echo "Can´t copy $SYSPATH" | |
| 29 | - return 1 | |
| 30 | - fi | |
| 31 | - | |
| 32 | - else | |
| 33 | - echo "Can´t find ${GTK_PREFIX}/bin/${1}" | |
| 34 | - return 1 | |
| 35 | - fi | |
| 36 | - | |
| 37 | - return 0 | |
| 38 | -} | |
| 39 | - | |
| 40 | -copyFiles() { | |
| 41 | - | |
| 42 | - while read FILE | |
| 43 | - do | |
| 44 | - copyFile "$FILE" | |
| 45 | - if [ "$?" != "0" ]; then | |
| 46 | - exit -1 | |
| 47 | - fi | |
| 48 | - done < $1 | |
| 49 | - rm -f $1 | |
| 50 | - | |
| 51 | -} | |
| 52 | - | |
| 53 | -copy_locale() { | |
| 54 | - | |
| 55 | - rm -fr $TARGET_PATH/share/locale/pt_BR/LC_MESSAGES | |
| 56 | - mkdir -p $TARGET_PATH/share/locale/pt_BR/LC_MESSAGES | |
| 57 | - | |
| 58 | - while read FILE | |
| 59 | - do | |
| 60 | - echo "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE ..." | |
| 61 | - | |
| 62 | - if [ -e "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE" ]; then | |
| 63 | - cp "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE" "$TARGET_PATH/share/locale/pt_BR/LC_MESSAGES" | |
| 64 | - if [ "$?" != "0" ]; then | |
| 65 | - echo "Can´t copy $FILE" | |
| 66 | - exit -1 | |
| 67 | - fi | |
| 68 | - fi | |
| 69 | - | |
| 70 | - done < $1 | |
| 71 | - rm -f $1 | |
| 72 | -} | |
| 73 | - | |
| 74 | -CopyGTK3Theme() { | |
| 75 | - | |
| 76 | - mkdir -p ${TARGET_PATH}/share/icons | |
| 77 | - if [ "$?" != 0 ]; then | |
| 78 | - echo "Can´t create icons folder" | |
| 79 | - exit -1 | |
| 80 | - fi | |
| 81 | - | |
| 82 | - cp -rv /usr/share/icons/${1} ${TARGET_PATH}/share/icons | |
| 83 | - if [ "$?" != 0 ]; then | |
| 84 | - echo "Can´t copy ${1} icons" | |
| 85 | - exit -1 | |
| 86 | - fi | |
| 87 | - | |
| 88 | - mkdir -p ${TARGET_PATH}/share/themes | |
| 89 | - if [ "$?" != 0 ]; then | |
| 90 | - echo "Can´t create themes folder" | |
| 91 | - exit -1 | |
| 92 | - fi | |
| 93 | - | |
| 94 | - cp -rv /usr/share/themes/${1} ${TARGET_PATH}/share/themes | |
| 95 | - if [ "$?" != 0 ]; then | |
| 96 | - echo "Can´t copy ${1} theme" | |
| 97 | - exit -1 | |
| 98 | - fi | |
| 99 | - | |
| 100 | - | |
| 101 | -} | |
| 102 | - | |
| 103 | - | |
| 104 | -gtk3() { | |
| 105 | - | |
| 106 | -TEMPFILE="temp1.tmp" | |
| 107 | -cat > $TEMPFILE << EOF | |
| 108 | -libglib-*.dll | |
| 109 | -libintl*.dll | |
| 110 | -libgmodule*.dll | |
| 111 | -libgobject*.dll | |
| 112 | -libffi*.dll | |
| 113 | -libgtk-*.dll | |
| 114 | -libgdk-*.dll | |
| 115 | -libcairo-gobject*.dll | |
| 116 | -libcairo-2*.dll | |
| 117 | -libfontconfig-1*.dll | |
| 118 | -libfreetype-6*.dll | |
| 119 | -zlib1.dll | |
| 120 | -libxml2-*.dll | |
| 121 | -libpixman-1*.dll | |
| 122 | -libpng*.dll | |
| 123 | -libgdk_pixbuf*.dll | |
| 124 | -libgio-*.dll | |
| 125 | -libjasper-*.dll | |
| 126 | -libjpeg-8*.dll | |
| 127 | -libtiff-5*.dll | |
| 128 | -liblzma-5*.dll | |
| 129 | -libpango-1*.dll | |
| 130 | -libpangocairo-1*.dll | |
| 131 | -libpangoft2-1*.dll | |
| 132 | -libpangowin32-1*.dll | |
| 133 | -libatk-*.dll | |
| 134 | -libcrypto-*.dll | |
| 135 | -libssl-*.dll | |
| 136 | -libharfbuzz-0.dll | |
| 137 | -libstdc++-6.dll | |
| 138 | -icule53.dll | |
| 139 | -icuuc53.dll | |
| 140 | -icudata53.dll | |
| 141 | -libgraphite2.dll | |
| 142 | -librsvg-*.dll | |
| 143 | -libepoxy-*.dll | |
| 144 | -gspawn-win*-helper-console.exe | |
| 145 | -gspawn-win*-helper.exe | |
| 146 | -gdk-pixbuf-query-loaders.exe | |
| 147 | -EOF | |
| 148 | -copyFiles $TEMPFILE | |
| 149 | - | |
| 150 | - | |
| 151 | -# Copy loaders | |
| 152 | -GDK_LOADERS=$(${PKG_CONFIG} --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0)/loaders | |
| 153 | -GDK_PREFIX=$(${PKG_CONFIG} --variable=prefix gdk-pixbuf-2.0) | |
| 154 | -GDK_TARGET=$(echo ${GDK_LOADERS}/ | sed -e "s@${GDK_PREFIX}@@g") | |
| 155 | - | |
| 156 | -mkdir -p ${TARGET_PATH}/${GDK_TARGET} | |
| 157 | - | |
| 158 | -cp -v ${GDK_LOADERS}/* ${TARGET_PATH}/${GDK_TARGET} | |
| 159 | -if [ "$?" != 0 ]; then | |
| 160 | - echo "Can´t copy loaders" | |
| 161 | - exit -1 | |
| 162 | -fi | |
| 163 | - | |
| 164 | - | |
| 165 | -# Copy optional files | |
| 166 | -copyFile libgcc_s_sjlj-1.dll | |
| 167 | -copyFile libgcc_s_seh-1.dll | |
| 168 | - | |
| 169 | -# Build locale dirs | |
| 170 | -cat > $TEMPFILE << EOF | |
| 171 | -atk10.mo | |
| 172 | -gdk-pixbuf.mo | |
| 173 | -glib20.mo | |
| 174 | -gtk30-properties.mo | |
| 175 | -EOF | |
| 176 | - | |
| 177 | -copy_locale $TEMPFILE | |
| 178 | - | |
| 179 | -mkdir -p $TARGET_PATH/share/glib-2.0/schemas | |
| 180 | -if [ "$?" != 0 ]; then | |
| 181 | - echo "Can´t create schemas folder" | |
| 182 | - exit -1 | |
| 183 | -fi | |
| 184 | - | |
| 185 | -if [ ! -e $GTK_PREFIX/share/glib-2.0/schemas/gschemas.compiled ]; then | |
| 186 | - glib-compile-schemas $GTK_PREFIX/share/glib-2.0/schemas | |
| 187 | -fi | |
| 188 | - | |
| 189 | -cp $GTK_PREFIX/share/glib-2.0/schemas/gschemas.compiled $TARGET_PATH/share/glib-2.0/schemas/gschemas.compiled | |
| 190 | -if [ "$?" != 0 ]; then | |
| 191 | - echo "Can´t copy gshemas.compiled" | |
| 192 | - exit -1 | |
| 193 | -fi | |
| 194 | - | |
| 195 | -# Copia Adwaita | |
| 196 | -CopyGTK3Theme "Adwaita" | |
| 197 | - | |
| 198 | -#mkdir -p $TARGET_PATH/share/icons/Adwaita | |
| 199 | -#if [ "$?" != 0 ]; then | |
| 200 | -# echo "Can´t create icons folder" | |
| 201 | -# exit -1 | |
| 202 | -#fi | |
| 203 | -# | |
| 204 | -#cp -rv /usr/share/icons/Adwaita $TARGET_PATH/share/icons/Adwaita | |
| 205 | -#if [ "$?" != 0 ]; then | |
| 206 | -# echo "Can´t copy icons" | |
| 207 | -# exit -1 | |
| 208 | -#fi | |
| 209 | -# | |
| 210 | -#mkdir -p $TARGET_PATH/share/themes/Adwaita | |
| 211 | -#if [ "$?" != 0 ]; then | |
| 212 | -# echo "Can´t create Adwaita theme" | |
| 213 | -# exit -1 | |
| 214 | -#fi | |
| 215 | -# | |
| 216 | -#cp -rv /usr/share/themes/Adwaita $TARGET_PATH/share/themes/Adwaita | |
| 217 | -#if [ "$?" != 0 ]; then | |
| 218 | -# echo "Can´t copy Adwaita theme" | |
| 219 | -# exit -1 | |
| 220 | -#fi | |
| 221 | - | |
| 222 | - | |
| 223 | -# Copia gnome | |
| 224 | -#mkdir -p $TARGET_PATH/share/icons/gnome | |
| 225 | -#if [ "$?" != 0 ]; then | |
| 226 | -# echo "Can´t create icons folder" | |
| 227 | -# exit -1 | |
| 228 | -#fi | |
| 229 | -# | |
| 230 | -#cp -rv $GTK_PREFIX/share/icons/gnome $TARGET_PATH/share/icons/gnome | |
| 231 | -#if [ "$?" != 0 ]; then | |
| 232 | -# echo "Can´t copy icons" | |
| 233 | -# exit -1 | |
| 234 | -#fi | |
| 235 | - | |
| 236 | -mkdir -p $TARGET_PATH/etc | |
| 237 | -cp -rv $GTK_PREFIX/etc/gtk-3.0 $TARGET_PATH/etc/gtk-3.0 | |
| 238 | -if [ "$?" != 0 ]; then | |
| 239 | - echo "Can´t copy theme" | |
| 240 | - exit -1 | |
| 241 | -fi | |
| 242 | - | |
| 243 | -cat > $TARGET_PATH/etc/gtk-3.0/settings.ini << EOF | |
| 244 | -[Settings] | |
| 245 | -gtk-theme-name = Adwaita | |
| 246 | -gtk-icon-theme-name = Adwaita | |
| 247 | -gtk-fallback-icon-theme = Adwaita | |
| 248 | -gtk-font-name = Sans 10 | |
| 249 | -gtk-button-images = 1 | |
| 250 | -EOF | |
| 251 | -} | |
| 252 | - | |
| 253 | -gtk2() { | |
| 254 | - | |
| 255 | -# Build DLL list | |
| 256 | -TEMPFILE="temp1.tmp" | |
| 257 | -cat > $TEMPFILE << EOF | |
| 258 | -intl.dll | |
| 259 | -libatk-1.0-0.dll | |
| 260 | -libcairo-2.dll | |
| 261 | -libgailutil-18.dll | |
| 262 | -libgdk_pixbuf-2.0-0.dll | |
| 263 | -libgdk-win32-2.0-0.dll | |
| 264 | -libgettextlib-0-*.dll | |
| 265 | -libgettextpo*.dll | |
| 266 | -libgettextsrc*.dll | |
| 267 | -libgio-2.0-0.dll | |
| 268 | -libglib-2.0-0.dll | |
| 269 | -libgmodule-2.0-0.dll | |
| 270 | -libgobject-2.0-0.dll | |
| 271 | -libgthread-2.0-0.dll | |
| 272 | -libgtk-win32-2.0-0.dll | |
| 273 | -libpango-1.0-0.dll | |
| 274 | -libpangocairo-1.0-0.dll | |
| 275 | -libpangoft2-1.0-0.dll | |
| 276 | -libpangowin32-1.0-0.dll | |
| 277 | -zlib1.dll | |
| 278 | -libpng*.dll | |
| 279 | -libfontconfig*.dll | |
| 280 | -libasprintf*.dll | |
| 281 | -libgettextlib*.dll | |
| 282 | -libexpat*.dll | |
| 283 | -freetype*.dll | |
| 284 | -gspawn-win32-helper-console.exe | |
| 285 | -gspawn-win32-helper.exe | |
| 286 | -gdk-pixbuf-query-loaders.exe | |
| 287 | -EOF | |
| 288 | - | |
| 289 | -# jpeg62.dll | |
| 290 | -# libtiff*.dll | |
| 291 | -copyFiles $TEMPFILE | |
| 292 | - | |
| 293 | -# Build locale dirs | |
| 294 | -cat > $TEMPFILE << EOF | |
| 295 | -atk10.mo | |
| 296 | -gdk-pixbuf.mo | |
| 297 | -gettext-runtime.mo | |
| 298 | -gettext-tools.mo | |
| 299 | -glib20.mo | |
| 300 | -gtk20-properties.mo | |
| 301 | -gtk20.mo | |
| 302 | -libiconv.mo | |
| 303 | -EOF | |
| 304 | - | |
| 305 | -copy_locale $TEMPFILE | |
| 306 | - | |
| 307 | -# Copy default theme | |
| 308 | -THEME_PATH="themes/MS-Windows/gtk-2.0" | |
| 309 | -rm -fr "$TARGET_PATH/$THEME_PATH" | |
| 310 | -mkdir -p "$TARGET_PATH/share/$THEME_PATH" | |
| 311 | - | |
| 312 | -echo "$GTK_PREFIX/share/$THEME_PATH/gtkrc ..." | |
| 313 | -cp "$GTK_PREFIX/share/$THEME_PATH/gtkrc" "$TARGET_PATH/share/$THEME_PATH/gtkrc" | |
| 314 | -if [ "$?" != "0" ]; then | |
| 315 | - echo "Can´t copy default theme" | |
| 316 | - exit -1 | |
| 317 | -fi | |
| 318 | - | |
| 319 | -cat > $TEMPFILE << EOF | |
| 320 | -engines | |
| 321 | -loaders | |
| 322 | -EOF | |
| 323 | - | |
| 324 | -rm -fr $TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/ | |
| 325 | -mkdir -p $TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/ | |
| 326 | -while read DIRNAME | |
| 327 | -do | |
| 328 | - if [ -d "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" ]; then | |
| 329 | - echo "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME ..." | |
| 330 | - mkdir -p "$TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" | |
| 331 | - cp -r "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" "$TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION" | |
| 332 | - if [ "$?" != "0" ]; then | |
| 333 | - echo "Can´t copy $DIRNAME" | |
| 334 | - exit -1 | |
| 335 | - fi | |
| 336 | - fi | |
| 337 | -done < $TEMPFILE | |
| 338 | -rm -f $TEMPFILE | |
| 339 | - | |
| 340 | -mkdir -p $TARGET_PATH/etc/gtk-2.0/ | |
| 341 | -echo "gtk-theme-name = \"MS-Windows\"" > $TARGET_PATH/etc/gtk-2.0/gtkrc | |
| 342 | -if [ "$?" != "0" ]; then | |
| 343 | - echo "Can´t set theme name" | |
| 344 | - exit -1 | |
| 345 | -fi | |
| 346 | - | |
| 347 | -} | |
| 348 | - | |
| 349 | -if [ "$GTK_VERSION" == "gtk+-3.0" ]; then | |
| 350 | - gtk3 | |
| 351 | -else | |
| 352 | - gtk2 | |
| 353 | -fi | |
| 354 | - | |
| 355 | -echo $0 Complete | |
| 356 | - |
pw3270.dsc
| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | -Format: 1.0 | |
| 2 | -Source: pw3270 | |
| 3 | -Version: 5.0.0 | |
| 4 | -Binary: pw3270 | |
| 5 | -Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 6 | -Architecture: any | |
| 7 | -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libreoffice-dev, ure, imagemagick, librsvg2-bin | |
| 8 | -Files: | |
| 9 | - 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz | |
| 10 | - | |
| 11 | - |
pw3270.pc.in
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -prefix=@prefix@ | |
| 2 | -exec_prefix=@exec_prefix@ | |
| 3 | -libdir=@libdir@ | |
| 4 | -includedir=@includedir@ | |
| 5 | - | |
| 6 | -Name: pw3270 | |
| 7 | -Description: @PACKAGE@ GTK widgets and support calls for plugin development | |
| 8 | -Version: @PACKAGE_VERSION@ | |
| 9 | -Libs: -L\@libdir@ -l@PACKAGE_TARNAME@ | |
| 10 | -Libs.private: lib3270 | |
| 11 | -Cflags: -I@includedir@ | |
| 12 | - |
pw3270.spec.in
| ... | ... | @@ -1,585 +0,0 @@ |
| 1 | -# | |
| 2 | -# spec file for package @PACKAGE@ | |
| 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 | - | |
| 19 | -%define LIBVERSION @MAJOR_VERSION@_@MINOR_VERSION@ | |
| 20 | - | |
| 21 | -# | |
| 22 | -# References: | |
| 23 | -# | |
| 24 | -# https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code | |
| 25 | -# | |
| 26 | - | |
| 27 | -%define _dbus 1 | |
| 28 | -%define _office 0 | |
| 29 | -%define _php 0 | |
| 30 | -%define _ooRexx 1 | |
| 31 | -%define _java 0 | |
| 32 | -%define _python 1 | |
| 33 | - | |
| 34 | -%define _distro linux | |
| 35 | - | |
| 36 | -#---[ Packaging ]----------------------------------------------------------------------------------------------------- | |
| 37 | - | |
| 38 | -Name: @PACKAGE@ | |
| 39 | -Version: @PACKAGE_VERSION@ | |
| 40 | -Release: @PACKAGE_LEVEL@ | |
| 41 | -Summary: IBM 3270 Terminal emulator for GTK | |
| 42 | -License: GPL-2.0 | |
| 43 | -Group: System/X11/Terminals | |
| 44 | -Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
| 45 | - | |
| 46 | -Source: %{name}-%{version}.tar.bz2 | |
| 47 | - | |
| 48 | -BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
| 49 | - | |
| 50 | -Requires: lib3270 = %{version} | |
| 51 | -Requires: shared-mime-info | |
| 52 | - | |
| 53 | -Provides: lib@PACKAGE@ = %{version} | |
| 54 | -Provides: lib@PACKAGE@.so = %{version} | |
| 55 | - | |
| 56 | -#--[ Red HAT ]-------------------------------------------------------------------------------------------------------- | |
| 57 | - | |
| 58 | -%if 0%{?rhel_version} | |
| 59 | - | |
| 60 | -%define _distro rhel%{rhel_version} | |
| 61 | - | |
| 62 | -BuildRequires: dbus-devel | |
| 63 | -BuildRequires: dbus-glib-devel | |
| 64 | -BuildRequires: openssl-devel | |
| 65 | - | |
| 66 | -%define _office 0 | |
| 67 | -%define _php 0 | |
| 68 | - | |
| 69 | -%if 0%{?rhel_version} >= 0700 | |
| 70 | - | |
| 71 | -# RHEL 7.0 | |
| 72 | - | |
| 73 | -BuildRequires: gtk3-devel | |
| 74 | - | |
| 75 | -%else | |
| 76 | - | |
| 77 | -# RHEL 6.0 | |
| 78 | -%define _python 0 | |
| 79 | - | |
| 80 | -BuildRequires: gtk2-devel | |
| 81 | -BuildRequires: java-1.6.0-devel | |
| 82 | - | |
| 83 | -%endif | |
| 84 | - | |
| 85 | -%endif | |
| 86 | - | |
| 87 | -#--[ CentOS ]--------------------------------------------------------------------------------------------------------- | |
| 88 | - | |
| 89 | -%if 0%{?centos_version} | |
| 90 | - | |
| 91 | -%define _distro centos%{centos_version} | |
| 92 | - | |
| 93 | -BuildRequires: pkgconfig(dbus-1) | |
| 94 | -BuildRequires: pkgconfig(dbus-glib-1) | |
| 95 | -BuildRequires: pkgconfig(openssl) | |
| 96 | - | |
| 97 | -%if 0%{?centos_version} >= 0700 | |
| 98 | - | |
| 99 | -# CentOS 7 | |
| 100 | - | |
| 101 | -%define _php 5 | |
| 102 | -BuildRequires: php-devel | |
| 103 | - | |
| 104 | -%define _office 0 | |
| 105 | - | |
| 106 | -BuildRequires: pkgconfig(gtk+-3.0) | |
| 107 | - | |
| 108 | -%else | |
| 109 | - | |
| 110 | -# CentOS 6 | |
| 111 | - | |
| 112 | -%define _office 0 | |
| 113 | -%define _python 0 | |
| 114 | - | |
| 115 | -BuildRequires: gtk2-devel | |
| 116 | -BuildRequires: java-1.8.0-devel | |
| 117 | - | |
| 118 | -%endif | |
| 119 | - | |
| 120 | -%endif | |
| 121 | - | |
| 122 | -#--[ Fedora ]--------------------------------------------------------------------------------------------------------- | |
| 123 | - | |
| 124 | -%if 0%{?fedora} | |
| 125 | - | |
| 126 | -%define _distro fedora%{fedora} | |
| 127 | - | |
| 128 | -BuildRequires: pkgconfig(dbus-1) | |
| 129 | -BuildRequires: pkgconfig(dbus-glib-1) | |
| 130 | -BuildRequires: pkgconfig(gtk+-3.0) | |
| 131 | -BuildRequires: pkgconfig(openssl) | |
| 132 | - | |
| 133 | -%define _php 5 | |
| 134 | -BuildRequires: php-devel | |
| 135 | - | |
| 136 | -%if 0%{?fedora} >= 21 | |
| 137 | - | |
| 138 | -# Fedora 21 fails on libreoffice sdk | |
| 139 | -%define _office 0 | |
| 140 | - | |
| 141 | -%else | |
| 142 | - | |
| 143 | -#%define _office 0 | |
| 144 | -#BuildRequires: libreoffice-sdk | |
| 145 | -#BuildRequires: libreoffice-ure | |
| 146 | -#BuildRequires: librsvg2-tools | |
| 147 | - | |
| 148 | -%endif | |
| 149 | - | |
| 150 | -%endif | |
| 151 | - | |
| 152 | -#--[ SuSE ]----------------------------------------------------------------------------------------------------------- | |
| 153 | - | |
| 154 | -%if 0%{?suse_version} | |
| 155 | - | |
| 156 | -# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25sles_version | |
| 157 | -%if 0%{?sles_version} | |
| 158 | - %define _distro sles%{sles_version} | |
| 159 | - %define _office 0 | |
| 160 | -%else | |
| 161 | -%if 0%{?sled_version} | |
| 162 | - %define _distro sled%{sled_version} | |
| 163 | - %define _office 0 | |
| 164 | -%else | |
| 165 | - %define _distro suse%{suse_version} | |
| 166 | -%endif | |
| 167 | - | |
| 168 | -%endif | |
| 169 | - | |
| 170 | -BuildRequires: libopenssl-devel | |
| 171 | -BuildRequires: rsvg-view | |
| 172 | - | |
| 173 | -# OpenSUSE >= 12.2 enable GTK3 & D-Bus | |
| 174 | -%if 0%{?suse_version} >= 1220 | |
| 175 | - | |
| 176 | -BuildRequires: pkgconfig(dbus-1) | |
| 177 | -BuildRequires: pkgconfig(dbus-glib-1) | |
| 178 | -BuildRequires: pkgconfig(gtk+-3.0) | |
| 179 | - | |
| 180 | -%else | |
| 181 | - | |
| 182 | -%define _dbus 0 | |
| 183 | -%define _python 0 | |
| 184 | -BuildRequires: gtk2-devel | |
| 185 | - | |
| 186 | -%endif | |
| 187 | - | |
| 188 | -# OpenSUSE >= 13.1 uses PHP5 | |
| 189 | -%if 0%{?suse_version} >= 1310 | |
| 190 | -%define _php 5 | |
| 191 | -BuildRequires: php%{_php}-devel | |
| 192 | -%endif | |
| 193 | - | |
| 194 | -%endif | |
| 195 | - | |
| 196 | -#--------------------------------------------------------------------------------------------------------------------- | |
| 197 | - | |
| 198 | -BuildRequires: autoconf >= 2.61 | |
| 199 | -BuildRequires: automake | |
| 200 | -BuildRequires: binutils | |
| 201 | -BuildRequires: coreutils | |
| 202 | - | |
| 203 | -%if 0%{?_ooRexx} | |
| 204 | -BuildRequires: ooRexx-devel >= 4.2.0 | |
| 205 | -%endif | |
| 206 | - | |
| 207 | -%if 0%{?_python} | |
| 208 | -BuildRequires: python | |
| 209 | -BuildRequires: python-devel | |
| 210 | - | |
| 211 | -%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | |
| 212 | -%endif | |
| 213 | - | |
| 214 | -%if 0%{?_php} | |
| 215 | -%define _phpextdir %(php-config --extension-dir) | |
| 216 | -%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2) | |
| 217 | -%endif | |
| 218 | - | |
| 219 | -%if 0%{?_java} | |
| 220 | -BuildRequires: java-devel | |
| 221 | -BuildRequires: javapackages-tools | |
| 222 | -%endif | |
| 223 | - | |
| 224 | -BuildRequires: desktop-file-utils | |
| 225 | -BuildRequires: findutils | |
| 226 | -BuildRequires: gcc-c++ | |
| 227 | -BuildRequires: gettext-devel | |
| 228 | -BuildRequires: m4 | |
| 229 | -BuildRequires: pkgconfig | |
| 230 | -BuildRequires: sed | |
| 231 | - | |
| 232 | - | |
| 233 | -%description | |
| 234 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 235 | -Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | |
| 236 | - | |
| 237 | -#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | |
| 238 | - | |
| 239 | -%package -n lib3270-%LIBVERSION | |
| 240 | -Summary: 3270 Communication library for %{name} | |
| 241 | -Group: Development/Libraries/C and C++ | |
| 242 | -Requires: openssl | |
| 243 | -Provides: lib3270 | |
| 244 | - | |
| 245 | -%description -n lib3270-%LIBVERSION | |
| 246 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 247 | - | |
| 248 | -This package contains the tn3270 protocol library for %{name} | |
| 249 | - | |
| 250 | -#--[ Devel ]---------------------------------------------------------------------------------------------------------- | |
| 251 | - | |
| 252 | -%package -n lib3270-devel | |
| 253 | -Summary: Devel for 3270 Communication library for %{name} | |
| 254 | -Group: Development/Libraries/C and C++ | |
| 255 | -Requires: lib3270-%LIBVERSION = %{version} | |
| 256 | - | |
| 257 | -%description -n lib3270-devel | |
| 258 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 259 | -This package contains the development files for tn3270 protocol library for %{name} | |
| 260 | - | |
| 261 | -%package -n @PACKAGE@-devel | |
| 262 | -Summary: Files required for development of %{name} plugins | |
| 263 | -Group: Development/Libraries/C and C++ | |
| 264 | -Requires: lib3270-devel = %{version} | |
| 265 | -Requires: @PACKAGE@ = %{version} | |
| 266 | - | |
| 267 | -%description -n @PACKAGE@-devel | |
| 268 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 269 | - | |
| 270 | -This package contains the development files for %{name} | |
| 271 | - | |
| 272 | -#--[ Plugins ]-------------------------------------------------------------------------------------------------------- | |
| 273 | - | |
| 274 | -%if 0%{?_dbus} | |
| 275 | -%package plugin-dbus | |
| 276 | -Summary: DBUS object for %{name} | |
| 277 | -Group: System/X11/Terminals | |
| 278 | -Requires: %{name} = %{version} | |
| 279 | -Requires: dbus-1 | |
| 280 | - | |
| 281 | -%description plugin-dbus | |
| 282 | -Plugin exporting a DBUS object from every %{name} open session. | |
| 283 | -%endif | |
| 284 | - | |
| 285 | -%if 0%{?_ooRexx} | |
| 286 | -%package -n %{name}-plugin-rexx | |
| 287 | -Summary: Rexx class for 3270 access | |
| 288 | -Group: Development/Languages/Other | |
| 289 | -Requires: lib3270 = %{version} | |
| 290 | -Requires: ooRexx >= 4.1 | |
| 291 | - | |
| 292 | -%description -n %{name}-plugin-rexx | |
| 293 | -This package provides Rexx class and associated libraries | |
| 294 | -allowing rexx scripts to access tn3270e hosts. | |
| 295 | -%endif | |
| 296 | - | |
| 297 | -#--[ Extensions ]----------------------------------------------------------------------------------------------------- | |
| 298 | - | |
| 299 | -%if 0%{?_office} | |
| 300 | -%package -n %{name}-libreoffice | |
| 301 | -Summary: 3270 host access extension for libreoffice | |
| 302 | -Group: Productivity/Office/Suite | |
| 303 | -Requires: lib3270 = %{version} | |
| 304 | -Requires: libreoffice | |
| 305 | - | |
| 306 | -%description -n %{name}-libreoffice | |
| 307 | -This package provides 3270 access object to StarBasic. | |
| 308 | -%endif | |
| 309 | - | |
| 310 | -%if 0%{?_php} | |
| 311 | -%package -n php%{_php}-tn3270 | |
| 312 | -Summary: PHP%{_php} Extension Module implementing tn3270 protocol | |
| 313 | -Group: Development/Libraries/PHP | |
| 314 | -Requires: lib3270 = %{version} | |
| 315 | - | |
| 316 | -%description -n php%{_php}-tn3270 | |
| 317 | -This is an extension for acessing 3270 hosts directly | |
| 318 | -from PHP apps. | |
| 319 | -%endif | |
| 320 | - | |
| 321 | -%if 0%{?_python} | |
| 322 | -%package -n python-tn3270 | |
| 323 | -Summary: Python Extension Module implementing tn3270 protocol | |
| 324 | -Group: Development/Libraries/Python | |
| 325 | -Requires: lib3270 = %{version} | |
| 326 | - | |
| 327 | -%description -n python-tn3270 | |
| 328 | -This is an extension for acessing 3270 hosts directly | |
| 329 | -from python apps. | |
| 330 | -%endif | |
| 331 | - | |
| 332 | -%if 0%{?_java} | |
| 333 | -%package java | |
| 334 | -Summary: Java class to interact with @PACKAGE@ | |
| 335 | -Group: Development/Libraries/Java | |
| 336 | -Requires: javapackages-tools | |
| 337 | -Requires: lib3270 = %{version} | |
| 338 | - | |
| 339 | -%description java | |
| 340 | -Java class for lib3270/@PACKAGE@ interaction. | |
| 341 | - | |
| 342 | -%package plugin-java | |
| 343 | -Summary: Java plugin for %{name} | |
| 344 | -Group: Development/Libraries/Java | |
| 345 | -Requires: %{name} = %{version} | |
| 346 | -Requires: %{name}-java = %{version} | |
| 347 | - | |
| 348 | -%description plugin-java | |
| 349 | -This package provides a plugin allowing calling of java classes | |
| 350 | -from @PACKAGE@ application. | |
| 351 | - | |
| 352 | -%package javadoc | |
| 353 | -Summary: Javadoc for %{name} | |
| 354 | -Group: Documentation | |
| 355 | -Requires: jpackage-utils | |
| 356 | - | |
| 357 | -%description javadoc | |
| 358 | -API documentation for %{name}. | |
| 359 | -%endif | |
| 360 | - | |
| 361 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 362 | - | |
| 363 | -%prep | |
| 364 | - | |
| 365 | -echo "Distribution: %{_distro}" | |
| 366 | - | |
| 367 | -%if 0%{?_php} | |
| 368 | - echo " * PHP%{_php} is enabled" | |
| 369 | -%endif | |
| 370 | -%if 0%{?_dbus} | |
| 371 | - echo " * DBUS is enabled" | |
| 372 | -%endif | |
| 373 | - | |
| 374 | -%setup -q -n %{name}-%{version} | |
| 375 | -find . -exec touch {} \; | |
| 376 | -aclocal | |
| 377 | -autoconf | |
| 378 | - | |
| 379 | -export CFLAGS="$RPM_OPT_FLAGS" | |
| 380 | -export CXXFLAGS="$RPM_OPT_FLAGS" | |
| 381 | -export FFLAGS="$RPM_OPT_FLAGS" | |
| 382 | - | |
| 383 | -%if 0%{?_java} | |
| 384 | -export JAVA_HOME=%{java_home} | |
| 385 | -echo "JAVA_HOME=$JAVA_HOME" | |
| 386 | -echo "javadocdir=%{_javadocdir}" | |
| 387 | -%endif | |
| 388 | - | |
| 389 | -%configure --disable-strip \ | |
| 390 | - --enable-pic \ | |
| 391 | - --with-jnidir="%{_jnidir}" \ | |
| 392 | - --with-jvmjardir="%{_jvmjardir}" \ | |
| 393 | - --with-javadocdir="%{_javadocdir}" | |
| 394 | - | |
| 395 | -%build | |
| 396 | -make clean | |
| 397 | -make all | |
| 398 | - | |
| 399 | -%install | |
| 400 | -export NO_BRP_CHECK_BYTECODE_VERSION=true | |
| 401 | - | |
| 402 | -make DESTDIR=$RPM_BUILD_ROOT install | |
| 403 | - | |
| 404 | -find $RPM_BUILD_ROOT | |
| 405 | - | |
| 406 | -%find_lang %{name} langfiles | |
| 407 | - | |
| 408 | -cat > @PACKAGE@.desktop << EOF | |
| 409 | -[Desktop Entry] | |
| 410 | -X-SuSE-translate=true | |
| 411 | -GenericName=@PACKAGE@ | |
| 412 | -Name=3270 Terminal | |
| 413 | -Comment=IBM 3270 Terminal emulator | |
| 414 | -Exec=@PACKAGE@ | |
| 415 | -Icon=%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 416 | -Terminal=false | |
| 417 | -Type=Application | |
| 418 | -StartupNotify=true | |
| 419 | -EOF | |
| 420 | -chmod 644 @PACKAGE@.desktop | |
| 421 | - | |
| 422 | -desktop-file-install --mode 644 \ | |
| 423 | - --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ | |
| 424 | - --add-category System \ | |
| 425 | - --add-category TerminalEmulator \ | |
| 426 | - @PACKAGE@.desktop | |
| 427 | - | |
| 428 | -%if 0%{?_ooRexx} == 0 | |
| 429 | -# remove rexx-files from builddir if it's disabled | |
| 430 | -rm -f ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 431 | -%endif | |
| 432 | - | |
| 433 | -%if 0%{?_java} == 0 | |
| 434 | -# remove java-files from builddir if it's disabled | |
| 435 | -rm ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 436 | -%endif | |
| 437 | - | |
| 438 | -find ${RPM_BUILD_ROOT} | |
| 439 | - | |
| 440 | -%clean | |
| 441 | -rm -rf %{buildroot} | |
| 442 | - | |
| 443 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 444 | - | |
| 445 | -%files -f langfiles | |
| 446 | -%defattr(-,root,root) | |
| 447 | -%doc AUTHORS LICENSE | |
| 448 | -%{_mandir}/*/* | |
| 449 | - | |
| 450 | -# Main application | |
| 451 | -%dir %{_datadir}/@PACKAGE@ | |
| 452 | -%dir %{_datadir}/@PACKAGE@/ui | |
| 453 | -%{_bindir}/@PACKAGE@ | |
| 454 | -%{_libdir}/lib@PACKAGE@.so.5 | |
| 455 | -%{_libdir}/lib@PACKAGE@.so.%version | |
| 456 | - | |
| 457 | -%{_datadir}/applications/@PACKAGE@.desktop | |
| 458 | - | |
| 459 | -%{_datadir}/@PACKAGE@/ui/00default.xml | |
| 460 | -%{_datadir}/@PACKAGE@/ui/10functions.xml | |
| 461 | -%{_datadir}/@PACKAGE@/ui/10keypad.xml | |
| 462 | -%{_datadir}/@PACKAGE@/colors.conf | |
| 463 | -%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 464 | -%{_datadir}/@PACKAGE@/@PACKAGE@-logo.png | |
| 465 | -%{_datadir}/locale/pt_BR/LC_MESSAGES/@PACKAGE@.mo | |
| 466 | -%dir %{_libdir}/@PACKAGE@-plugins | |
| 467 | - | |
| 468 | -%files -n lib3270-%LIBVERSION | |
| 469 | -%defattr(-,root,root) | |
| 470 | -%{_libdir}/lib3270.so.%version | |
| 471 | -%{_libdir}/lib3270.so.5 | |
| 472 | - | |
| 473 | -%files -n lib3270-devel | |
| 474 | -%defattr(-,root,root) | |
| 475 | -%{_includedir}/lib3270 | |
| 476 | -%{_includedir}/lib3270.h | |
| 477 | -%{_libdir}/pkgconfig/lib3270.pc | |
| 478 | -%{_libdir}/lib3270.so | |
| 479 | - | |
| 480 | -%files -n @PACKAGE@-devel | |
| 481 | -%defattr(-,root,root) | |
| 482 | -%{_includedir}/@PACKAGE@ | |
| 483 | -%{_includedir}/@PACKAGE@.h | |
| 484 | -%{_datadir}/@PACKAGE@/ui/98trace.xml | |
| 485 | -%{_datadir}/@PACKAGE@/ui/99debug.xml | |
| 486 | -%{_libdir}/lib@PACKAGE@.so | |
| 487 | -%{_libdir}/pkgconfig/@PACKAGE@.pc | |
| 488 | - | |
| 489 | -%{_libdir}/lib@PACKAGE@cpp.a | |
| 490 | -%{_includedir}/@PACKAGE@cpp.h | |
| 491 | - | |
| 492 | -%dir %{_datadir}/@PACKAGE@/sample | |
| 493 | -%{_datadir}/@PACKAGE@/sample/* | |
| 494 | - | |
| 495 | -%if 0%{?_dbus} | |
| 496 | -%files plugin-dbus | |
| 497 | -%defattr(-,root,root) | |
| 498 | -%{_libdir}/@PACKAGE@-plugins/dbus3270.so | |
| 499 | -%endif | |
| 500 | - | |
| 501 | -%if 0%{?_office} | |
| 502 | -%files -n %{name}-libreoffice | |
| 503 | -%defattr(-,root,root) | |
| 504 | -%dir %{_libdir}/libreoffice/share/extensions/%{name} | |
| 505 | -%dir %{_libdir}/libreoffice/share/extensions/%{name}/META-INF | |
| 506 | -%{_libdir}/libreoffice/share/extensions/%{name}/META-INF/manifest.xml | |
| 507 | -%{_libdir}/libreoffice/share/extensions/%{name}/description.txt | |
| 508 | -%{_libdir}/libreoffice/share/extensions/%{name}/description.xml | |
| 509 | -%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.png | |
| 510 | -%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.rdb | |
| 511 | -%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.uno.so | |
| 512 | -%endif | |
| 513 | - | |
| 514 | -%if 0%{?_ooRexx} | |
| 515 | -%files -n %{name}-plugin-rexx | |
| 516 | -%defattr(-,root,root) | |
| 517 | -%{_rexxlibdir}/librx3270.so.%version | |
| 518 | -%{_rexxlibdir}/librx3270.so | |
| 519 | -%{_rexxclassdir}/rx3270.cls | |
| 520 | -%{_libdir}/@PACKAGE@-plugins/rx3270.so | |
| 521 | -%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 522 | -%endif | |
| 523 | - | |
| 524 | -%if 0%{?_php} | |
| 525 | -%files -n php%{_php}-tn3270 | |
| 526 | -%defattr(-,root,root) | |
| 527 | -%config %{_phpconf}/tn3270.ini | |
| 528 | -%{_phpextdir}/*.so | |
| 529 | -%endif | |
| 530 | - | |
| 531 | -%if 0%{?_python} | |
| 532 | -%files -n python-tn3270 | |
| 533 | -%defattr(-,root,root) | |
| 534 | -%{pythonextpath}/py3270.so | |
| 535 | -%endif | |
| 536 | - | |
| 537 | -%if 0%{?_java} | |
| 538 | -%files java | |
| 539 | -%defattr(-,root,root) | |
| 540 | -%dir %{_jnidir} | |
| 541 | -%dir %{_jvmjardir} | |
| 542 | - | |
| 543 | -%{_jnidir}/libjni3270.so | |
| 544 | -%{_jvmjardir}/@PACKAGE@.jar | |
| 545 | - | |
| 546 | -%files plugin-java | |
| 547 | -%defattr(-,root,root) | |
| 548 | -%{_libdir}/@PACKAGE@-plugins/j3270.so | |
| 549 | - | |
| 550 | -%files javadoc | |
| 551 | -%defattr(-,root,root) | |
| 552 | -%dir %{_javadocdir} | |
| 553 | -%{_javadocdir}/%{name} | |
| 554 | -%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 555 | -%endif | |
| 556 | - | |
| 557 | -#---[ Scripts ]------------------------------------------------------------------------------------------------------- | |
| 558 | - | |
| 559 | -%post | |
| 560 | -/sbin/ldconfig | |
| 561 | -exit 0 | |
| 562 | - | |
| 563 | -%postun | |
| 564 | -/sbin/ldconfig | |
| 565 | -exit 0 | |
| 566 | - | |
| 567 | -%post -n lib3270-%LIBVERSION | |
| 568 | -/sbin/ldconfig | |
| 569 | -exit 0 | |
| 570 | - | |
| 571 | -%postun -n lib3270-%LIBVERSION | |
| 572 | -/sbin/ldconfig | |
| 573 | -exit 0 | |
| 574 | - | |
| 575 | -%if 0%{?_ooRexx} | |
| 576 | -%post -n %{name}-plugin-rexx | |
| 577 | -/sbin/ldconfig | |
| 578 | -exit 0 | |
| 579 | - | |
| 580 | -%postun -n %{name}-plugin-rexx | |
| 581 | -/sbin/ldconfig | |
| 582 | -exit 0 | |
| 583 | -%endif | |
| 584 | - | |
| 585 | -%changelog |
| ... | ... | @@ -0,0 +1,100 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +install_packages() | |
| 4 | +{ | |
| 5 | + | |
| 6 | +TEMPFILE=$(mktemp) | |
| 7 | + | |
| 8 | +cat > ${TEMPFILE} << EOF | |
| 9 | +libopenssl-devel | |
| 10 | +libintl-devel | |
| 11 | +libepoxy0 | |
| 12 | +libgdk_pixbuf-2_0-0 | |
| 13 | +atk-devel | |
| 14 | +pango-devel | |
| 15 | +win_iconv-devel | |
| 16 | +pixman-devel | |
| 17 | +glib2-devel | |
| 18 | +cairo-devel | |
| 19 | +freetype-devel | |
| 20 | +winpthreads-devel | |
| 21 | +gtk3-devel | |
| 22 | +cross-gcc-c++ | |
| 23 | +cross-pkg-config | |
| 24 | +cross-cpp | |
| 25 | +cross-binutils | |
| 26 | +cross-nsis | |
| 27 | +filesystem | |
| 28 | +gettext-tools | |
| 29 | +gtk3-data | |
| 30 | +gtk3-tools | |
| 31 | +headers | |
| 32 | +gnome-icon-theme | |
| 33 | +hicolor-icon-theme | |
| 34 | +gdk-pixbuf-loader-rsvg | |
| 35 | +gdk-pixbuf-query-loaders | |
| 36 | +EOF | |
| 37 | + | |
| 38 | +# python-devel | |
| 39 | + | |
| 40 | +# Instala apicativos e temas necessários | |
| 41 | +sudo zypper --non-interactive in \ | |
| 42 | + adwaita-icon-theme \ | |
| 43 | + gettext-tools \ | |
| 44 | + glib2-devel | |
| 45 | + | |
| 46 | +while read FILE | |
| 47 | +do | |
| 48 | + sudo zypper --non-interactive in ${1}-${FILE} | |
| 49 | +done < ${TEMPFILE} | |
| 50 | + | |
| 51 | +rm -f ${TEMPFILE} | |
| 52 | + | |
| 53 | +} | |
| 54 | + | |
| 55 | +if [ -z ${1} ]; then | |
| 56 | + echo "Use ${0} --32 for 32 bits cross-compiler" | |
| 57 | + echo "Use ${0} --64 for 64 bits cross-compiler" | |
| 58 | + exit -1 | |
| 59 | +fi | |
| 60 | + | |
| 61 | + | |
| 62 | +until [ -z "${1}" ] | |
| 63 | +do | |
| 64 | + if [ ${1:0:2} = '--' ]; then | |
| 65 | + tmp=${1:2} | |
| 66 | + parameter=${tmp%%=*} | |
| 67 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 68 | + | |
| 69 | + case $parameter in | |
| 70 | + | |
| 71 | + ar) | |
| 72 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.1/ mingw32 | |
| 73 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.1/ mingw64 | |
| 74 | + ;; | |
| 75 | + | |
| 76 | + 32) | |
| 77 | + install_packages mingw32 | |
| 78 | + ;; | |
| 79 | + | |
| 80 | + 64) | |
| 81 | + install_packages mingw64 | |
| 82 | + ;; | |
| 83 | + | |
| 84 | + ALL) | |
| 85 | + install_packages mingw32 | |
| 86 | + install_packages mingw64 | |
| 87 | + ;; | |
| 88 | + | |
| 89 | + | |
| 90 | + *) | |
| 91 | + value=${tmp##*=} | |
| 92 | + eval $parameter=$value | |
| 93 | + esac | |
| 94 | + | |
| 95 | + fi | |
| 96 | + | |
| 97 | + shift | |
| 98 | +done | |
| 99 | + | |
| 100 | + | ... | ... |
| ... | ... | @@ -0,0 +1,585 @@ |
| 1 | +# | |
| 2 | +# spec file for package @PACKAGE@ | |
| 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 | + | |
| 19 | +%define LIBVERSION @MAJOR_VERSION@_@MINOR_VERSION@ | |
| 20 | + | |
| 21 | +# | |
| 22 | +# References: | |
| 23 | +# | |
| 24 | +# https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code | |
| 25 | +# | |
| 26 | + | |
| 27 | +%define _dbus 1 | |
| 28 | +%define _office 0 | |
| 29 | +%define _php 0 | |
| 30 | +%define _ooRexx 1 | |
| 31 | +%define _java 0 | |
| 32 | +%define _python 1 | |
| 33 | + | |
| 34 | +%define _distro linux | |
| 35 | + | |
| 36 | +#---[ Packaging ]----------------------------------------------------------------------------------------------------- | |
| 37 | + | |
| 38 | +Name: @PACKAGE@ | |
| 39 | +Version: @PACKAGE_VERSION@ | |
| 40 | +Release: @PACKAGE_LEVEL@ | |
| 41 | +Summary: IBM 3270 Terminal emulator for GTK | |
| 42 | +License: GPL-2.0 | |
| 43 | +Group: System/X11/Terminals | |
| 44 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
| 45 | + | |
| 46 | +Source: %{name}-%{version}.tar.bz2 | |
| 47 | + | |
| 48 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
| 49 | + | |
| 50 | +Requires: lib3270 = %{version} | |
| 51 | +Requires: shared-mime-info | |
| 52 | + | |
| 53 | +Provides: lib@PACKAGE@ = %{version} | |
| 54 | +Provides: lib@PACKAGE@.so = %{version} | |
| 55 | + | |
| 56 | +#--[ Red HAT ]-------------------------------------------------------------------------------------------------------- | |
| 57 | + | |
| 58 | +%if 0%{?rhel_version} | |
| 59 | + | |
| 60 | +%define _distro rhel%{rhel_version} | |
| 61 | + | |
| 62 | +BuildRequires: dbus-devel | |
| 63 | +BuildRequires: dbus-glib-devel | |
| 64 | +BuildRequires: openssl-devel | |
| 65 | + | |
| 66 | +%define _office 0 | |
| 67 | +%define _php 0 | |
| 68 | + | |
| 69 | +%if 0%{?rhel_version} >= 0700 | |
| 70 | + | |
| 71 | +# RHEL 7.0 | |
| 72 | + | |
| 73 | +BuildRequires: gtk3-devel | |
| 74 | + | |
| 75 | +%else | |
| 76 | + | |
| 77 | +# RHEL 6.0 | |
| 78 | +%define _python 0 | |
| 79 | + | |
| 80 | +BuildRequires: gtk2-devel | |
| 81 | +BuildRequires: java-1.6.0-devel | |
| 82 | + | |
| 83 | +%endif | |
| 84 | + | |
| 85 | +%endif | |
| 86 | + | |
| 87 | +#--[ CentOS ]--------------------------------------------------------------------------------------------------------- | |
| 88 | + | |
| 89 | +%if 0%{?centos_version} | |
| 90 | + | |
| 91 | +%define _distro centos%{centos_version} | |
| 92 | + | |
| 93 | +BuildRequires: pkgconfig(dbus-1) | |
| 94 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 95 | +BuildRequires: pkgconfig(openssl) | |
| 96 | + | |
| 97 | +%if 0%{?centos_version} >= 0700 | |
| 98 | + | |
| 99 | +# CentOS 7 | |
| 100 | + | |
| 101 | +%define _php 5 | |
| 102 | +BuildRequires: php-devel | |
| 103 | + | |
| 104 | +%define _office 0 | |
| 105 | + | |
| 106 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 107 | + | |
| 108 | +%else | |
| 109 | + | |
| 110 | +# CentOS 6 | |
| 111 | + | |
| 112 | +%define _office 0 | |
| 113 | +%define _python 0 | |
| 114 | + | |
| 115 | +BuildRequires: gtk2-devel | |
| 116 | +BuildRequires: java-1.8.0-devel | |
| 117 | + | |
| 118 | +%endif | |
| 119 | + | |
| 120 | +%endif | |
| 121 | + | |
| 122 | +#--[ Fedora ]--------------------------------------------------------------------------------------------------------- | |
| 123 | + | |
| 124 | +%if 0%{?fedora} | |
| 125 | + | |
| 126 | +%define _distro fedora%{fedora} | |
| 127 | + | |
| 128 | +BuildRequires: pkgconfig(dbus-1) | |
| 129 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 130 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 131 | +BuildRequires: pkgconfig(openssl) | |
| 132 | + | |
| 133 | +%define _php 5 | |
| 134 | +BuildRequires: php-devel | |
| 135 | + | |
| 136 | +%if 0%{?fedora} >= 21 | |
| 137 | + | |
| 138 | +# Fedora 21 fails on libreoffice sdk | |
| 139 | +%define _office 0 | |
| 140 | + | |
| 141 | +%else | |
| 142 | + | |
| 143 | +#%define _office 0 | |
| 144 | +#BuildRequires: libreoffice-sdk | |
| 145 | +#BuildRequires: libreoffice-ure | |
| 146 | +#BuildRequires: librsvg2-tools | |
| 147 | + | |
| 148 | +%endif | |
| 149 | + | |
| 150 | +%endif | |
| 151 | + | |
| 152 | +#--[ SuSE ]----------------------------------------------------------------------------------------------------------- | |
| 153 | + | |
| 154 | +%if 0%{?suse_version} | |
| 155 | + | |
| 156 | +# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25sles_version | |
| 157 | +%if 0%{?sles_version} | |
| 158 | + %define _distro sles%{sles_version} | |
| 159 | + %define _office 0 | |
| 160 | +%else | |
| 161 | +%if 0%{?sled_version} | |
| 162 | + %define _distro sled%{sled_version} | |
| 163 | + %define _office 0 | |
| 164 | +%else | |
| 165 | + %define _distro suse%{suse_version} | |
| 166 | +%endif | |
| 167 | + | |
| 168 | +%endif | |
| 169 | + | |
| 170 | +BuildRequires: libopenssl-devel | |
| 171 | +BuildRequires: rsvg-view | |
| 172 | + | |
| 173 | +# OpenSUSE >= 12.2 enable GTK3 & D-Bus | |
| 174 | +%if 0%{?suse_version} >= 1220 | |
| 175 | + | |
| 176 | +BuildRequires: pkgconfig(dbus-1) | |
| 177 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 178 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 179 | + | |
| 180 | +%else | |
| 181 | + | |
| 182 | +%define _dbus 0 | |
| 183 | +%define _python 0 | |
| 184 | +BuildRequires: gtk2-devel | |
| 185 | + | |
| 186 | +%endif | |
| 187 | + | |
| 188 | +# OpenSUSE >= 13.1 uses PHP5 | |
| 189 | +%if 0%{?suse_version} >= 1310 | |
| 190 | +%define _php 5 | |
| 191 | +BuildRequires: php%{_php}-devel | |
| 192 | +%endif | |
| 193 | + | |
| 194 | +%endif | |
| 195 | + | |
| 196 | +#--------------------------------------------------------------------------------------------------------------------- | |
| 197 | + | |
| 198 | +BuildRequires: autoconf >= 2.61 | |
| 199 | +BuildRequires: automake | |
| 200 | +BuildRequires: binutils | |
| 201 | +BuildRequires: coreutils | |
| 202 | + | |
| 203 | +%if 0%{?_ooRexx} | |
| 204 | +BuildRequires: ooRexx-devel >= 4.2.0 | |
| 205 | +%endif | |
| 206 | + | |
| 207 | +%if 0%{?_python} | |
| 208 | +BuildRequires: python | |
| 209 | +BuildRequires: python-devel | |
| 210 | + | |
| 211 | +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | |
| 212 | +%endif | |
| 213 | + | |
| 214 | +%if 0%{?_php} | |
| 215 | +%define _phpextdir %(php-config --extension-dir) | |
| 216 | +%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2) | |
| 217 | +%endif | |
| 218 | + | |
| 219 | +%if 0%{?_java} | |
| 220 | +BuildRequires: java-devel | |
| 221 | +BuildRequires: javapackages-tools | |
| 222 | +%endif | |
| 223 | + | |
| 224 | +BuildRequires: desktop-file-utils | |
| 225 | +BuildRequires: findutils | |
| 226 | +BuildRequires: gcc-c++ | |
| 227 | +BuildRequires: gettext-devel | |
| 228 | +BuildRequires: m4 | |
| 229 | +BuildRequires: pkgconfig | |
| 230 | +BuildRequires: sed | |
| 231 | + | |
| 232 | + | |
| 233 | +%description | |
| 234 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 235 | +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | |
| 236 | + | |
| 237 | +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | |
| 238 | + | |
| 239 | +%package -n lib3270-%LIBVERSION | |
| 240 | +Summary: 3270 Communication library for %{name} | |
| 241 | +Group: Development/Libraries/C and C++ | |
| 242 | +Requires: openssl | |
| 243 | +Provides: lib3270 | |
| 244 | + | |
| 245 | +%description -n lib3270-%LIBVERSION | |
| 246 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 247 | + | |
| 248 | +This package contains the tn3270 protocol library for %{name} | |
| 249 | + | |
| 250 | +#--[ Devel ]---------------------------------------------------------------------------------------------------------- | |
| 251 | + | |
| 252 | +%package -n lib3270-devel | |
| 253 | +Summary: Devel for 3270 Communication library for %{name} | |
| 254 | +Group: Development/Libraries/C and C++ | |
| 255 | +Requires: lib3270-%LIBVERSION = %{version} | |
| 256 | + | |
| 257 | +%description -n lib3270-devel | |
| 258 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 259 | +This package contains the development files for tn3270 protocol library for %{name} | |
| 260 | + | |
| 261 | +%package -n @PACKAGE@-devel | |
| 262 | +Summary: Files required for development of %{name} plugins | |
| 263 | +Group: Development/Libraries/C and C++ | |
| 264 | +Requires: lib3270-devel = %{version} | |
| 265 | +Requires: @PACKAGE@ = %{version} | |
| 266 | + | |
| 267 | +%description -n @PACKAGE@-devel | |
| 268 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 269 | + | |
| 270 | +This package contains the development files for %{name} | |
| 271 | + | |
| 272 | +#--[ Plugins ]-------------------------------------------------------------------------------------------------------- | |
| 273 | + | |
| 274 | +%if 0%{?_dbus} | |
| 275 | +%package plugin-dbus | |
| 276 | +Summary: DBUS object for %{name} | |
| 277 | +Group: System/X11/Terminals | |
| 278 | +Requires: %{name} = %{version} | |
| 279 | +Requires: dbus-1 | |
| 280 | + | |
| 281 | +%description plugin-dbus | |
| 282 | +Plugin exporting a DBUS object from every %{name} open session. | |
| 283 | +%endif | |
| 284 | + | |
| 285 | +%if 0%{?_ooRexx} | |
| 286 | +%package -n %{name}-plugin-rexx | |
| 287 | +Summary: Rexx class for 3270 access | |
| 288 | +Group: Development/Languages/Other | |
| 289 | +Requires: lib3270 = %{version} | |
| 290 | +Requires: ooRexx >= 4.1 | |
| 291 | + | |
| 292 | +%description -n %{name}-plugin-rexx | |
| 293 | +This package provides Rexx class and associated libraries | |
| 294 | +allowing rexx scripts to access tn3270e hosts. | |
| 295 | +%endif | |
| 296 | + | |
| 297 | +#--[ Extensions ]----------------------------------------------------------------------------------------------------- | |
| 298 | + | |
| 299 | +%if 0%{?_office} | |
| 300 | +%package -n %{name}-libreoffice | |
| 301 | +Summary: 3270 host access extension for libreoffice | |
| 302 | +Group: Productivity/Office/Suite | |
| 303 | +Requires: lib3270 = %{version} | |
| 304 | +Requires: libreoffice | |
| 305 | + | |
| 306 | +%description -n %{name}-libreoffice | |
| 307 | +This package provides 3270 access object to StarBasic. | |
| 308 | +%endif | |
| 309 | + | |
| 310 | +%if 0%{?_php} | |
| 311 | +%package -n php%{_php}-tn3270 | |
| 312 | +Summary: PHP%{_php} Extension Module implementing tn3270 protocol | |
| 313 | +Group: Development/Libraries/PHP | |
| 314 | +Requires: lib3270 = %{version} | |
| 315 | + | |
| 316 | +%description -n php%{_php}-tn3270 | |
| 317 | +This is an extension for acessing 3270 hosts directly | |
| 318 | +from PHP apps. | |
| 319 | +%endif | |
| 320 | + | |
| 321 | +%if 0%{?_python} | |
| 322 | +%package -n python-tn3270 | |
| 323 | +Summary: Python Extension Module implementing tn3270 protocol | |
| 324 | +Group: Development/Libraries/Python | |
| 325 | +Requires: lib3270 = %{version} | |
| 326 | + | |
| 327 | +%description -n python-tn3270 | |
| 328 | +This is an extension for acessing 3270 hosts directly | |
| 329 | +from python apps. | |
| 330 | +%endif | |
| 331 | + | |
| 332 | +%if 0%{?_java} | |
| 333 | +%package java | |
| 334 | +Summary: Java class to interact with @PACKAGE@ | |
| 335 | +Group: Development/Libraries/Java | |
| 336 | +Requires: javapackages-tools | |
| 337 | +Requires: lib3270 = %{version} | |
| 338 | + | |
| 339 | +%description java | |
| 340 | +Java class for lib3270/@PACKAGE@ interaction. | |
| 341 | + | |
| 342 | +%package plugin-java | |
| 343 | +Summary: Java plugin for %{name} | |
| 344 | +Group: Development/Libraries/Java | |
| 345 | +Requires: %{name} = %{version} | |
| 346 | +Requires: %{name}-java = %{version} | |
| 347 | + | |
| 348 | +%description plugin-java | |
| 349 | +This package provides a plugin allowing calling of java classes | |
| 350 | +from @PACKAGE@ application. | |
| 351 | + | |
| 352 | +%package javadoc | |
| 353 | +Summary: Javadoc for %{name} | |
| 354 | +Group: Documentation | |
| 355 | +Requires: jpackage-utils | |
| 356 | + | |
| 357 | +%description javadoc | |
| 358 | +API documentation for %{name}. | |
| 359 | +%endif | |
| 360 | + | |
| 361 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 362 | + | |
| 363 | +%prep | |
| 364 | + | |
| 365 | +echo "Distribution: %{_distro}" | |
| 366 | + | |
| 367 | +%if 0%{?_php} | |
| 368 | + echo " * PHP%{_php} is enabled" | |
| 369 | +%endif | |
| 370 | +%if 0%{?_dbus} | |
| 371 | + echo " * DBUS is enabled" | |
| 372 | +%endif | |
| 373 | + | |
| 374 | +%setup -q -n %{name}-%{version} | |
| 375 | +find . -exec touch {} \; | |
| 376 | +aclocal | |
| 377 | +autoconf | |
| 378 | + | |
| 379 | +export CFLAGS="$RPM_OPT_FLAGS" | |
| 380 | +export CXXFLAGS="$RPM_OPT_FLAGS" | |
| 381 | +export FFLAGS="$RPM_OPT_FLAGS" | |
| 382 | + | |
| 383 | +%if 0%{?_java} | |
| 384 | +export JAVA_HOME=%{java_home} | |
| 385 | +echo "JAVA_HOME=$JAVA_HOME" | |
| 386 | +echo "javadocdir=%{_javadocdir}" | |
| 387 | +%endif | |
| 388 | + | |
| 389 | +%configure --disable-strip \ | |
| 390 | + --enable-pic \ | |
| 391 | + --with-jnidir="%{_jnidir}" \ | |
| 392 | + --with-jvmjardir="%{_jvmjardir}" \ | |
| 393 | + --with-javadocdir="%{_javadocdir}" | |
| 394 | + | |
| 395 | +%build | |
| 396 | +make clean | |
| 397 | +make all | |
| 398 | + | |
| 399 | +%install | |
| 400 | +export NO_BRP_CHECK_BYTECODE_VERSION=true | |
| 401 | + | |
| 402 | +make DESTDIR=$RPM_BUILD_ROOT install | |
| 403 | + | |
| 404 | +find $RPM_BUILD_ROOT | |
| 405 | + | |
| 406 | +%find_lang %{name} langfiles | |
| 407 | + | |
| 408 | +cat > @PACKAGE@.desktop << EOF | |
| 409 | +[Desktop Entry] | |
| 410 | +X-SuSE-translate=true | |
| 411 | +GenericName=@PACKAGE@ | |
| 412 | +Name=3270 Terminal | |
| 413 | +Comment=IBM 3270 Terminal emulator | |
| 414 | +Exec=@PACKAGE@ | |
| 415 | +Icon=%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 416 | +Terminal=false | |
| 417 | +Type=Application | |
| 418 | +StartupNotify=true | |
| 419 | +EOF | |
| 420 | +chmod 644 @PACKAGE@.desktop | |
| 421 | + | |
| 422 | +desktop-file-install --mode 644 \ | |
| 423 | + --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ | |
| 424 | + --add-category System \ | |
| 425 | + --add-category TerminalEmulator \ | |
| 426 | + @PACKAGE@.desktop | |
| 427 | + | |
| 428 | +%if 0%{?_ooRexx} == 0 | |
| 429 | +# remove rexx-files from builddir if it's disabled | |
| 430 | +rm -f ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 431 | +%endif | |
| 432 | + | |
| 433 | +%if 0%{?_java} == 0 | |
| 434 | +# remove java-files from builddir if it's disabled | |
| 435 | +rm ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 436 | +%endif | |
| 437 | + | |
| 438 | +find ${RPM_BUILD_ROOT} | |
| 439 | + | |
| 440 | +%clean | |
| 441 | +rm -rf %{buildroot} | |
| 442 | + | |
| 443 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 444 | + | |
| 445 | +%files -f langfiles | |
| 446 | +%defattr(-,root,root) | |
| 447 | +%doc AUTHORS LICENSE | |
| 448 | +%{_mandir}/*/* | |
| 449 | + | |
| 450 | +# Main application | |
| 451 | +%dir %{_datadir}/@PACKAGE@ | |
| 452 | +%dir %{_datadir}/@PACKAGE@/ui | |
| 453 | +%{_bindir}/@PACKAGE@ | |
| 454 | +%{_libdir}/lib@PACKAGE@.so.5 | |
| 455 | +%{_libdir}/lib@PACKAGE@.so.%version | |
| 456 | + | |
| 457 | +%{_datadir}/applications/@PACKAGE@.desktop | |
| 458 | + | |
| 459 | +%{_datadir}/@PACKAGE@/ui/00default.xml | |
| 460 | +%{_datadir}/@PACKAGE@/ui/10functions.xml | |
| 461 | +%{_datadir}/@PACKAGE@/ui/10keypad.xml | |
| 462 | +%{_datadir}/@PACKAGE@/colors.conf | |
| 463 | +%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 464 | +%{_datadir}/@PACKAGE@/@PACKAGE@-logo.png | |
| 465 | +%{_datadir}/locale/pt_BR/LC_MESSAGES/@PACKAGE@.mo | |
| 466 | +%dir %{_libdir}/@PACKAGE@-plugins | |
| 467 | + | |
| 468 | +%files -n lib3270-%LIBVERSION | |
| 469 | +%defattr(-,root,root) | |
| 470 | +%{_libdir}/lib3270.so.%version | |
| 471 | +%{_libdir}/lib3270.so.5 | |
| 472 | + | |
| 473 | +%files -n lib3270-devel | |
| 474 | +%defattr(-,root,root) | |
| 475 | +%{_includedir}/lib3270 | |
| 476 | +%{_includedir}/lib3270.h | |
| 477 | +%{_libdir}/pkgconfig/lib3270.pc | |
| 478 | +%{_libdir}/lib3270.so | |
| 479 | + | |
| 480 | +%files -n @PACKAGE@-devel | |
| 481 | +%defattr(-,root,root) | |
| 482 | +%{_includedir}/@PACKAGE@ | |
| 483 | +%{_includedir}/@PACKAGE@.h | |
| 484 | +%{_datadir}/@PACKAGE@/ui/98trace.xml | |
| 485 | +%{_datadir}/@PACKAGE@/ui/99debug.xml | |
| 486 | +%{_libdir}/lib@PACKAGE@.so | |
| 487 | +%{_libdir}/pkgconfig/@PACKAGE@.pc | |
| 488 | + | |
| 489 | +%{_libdir}/lib@PACKAGE@cpp.a | |
| 490 | +%{_includedir}/@PACKAGE@cpp.h | |
| 491 | + | |
| 492 | +%dir %{_datadir}/@PACKAGE@/sample | |
| 493 | +%{_datadir}/@PACKAGE@/sample/* | |
| 494 | + | |
| 495 | +%if 0%{?_dbus} | |
| 496 | +%files plugin-dbus | |
| 497 | +%defattr(-,root,root) | |
| 498 | +%{_libdir}/@PACKAGE@-plugins/dbus3270.so | |
| 499 | +%endif | |
| 500 | + | |
| 501 | +%if 0%{?_office} | |
| 502 | +%files -n %{name}-libreoffice | |
| 503 | +%defattr(-,root,root) | |
| 504 | +%dir %{_libdir}/libreoffice/share/extensions/%{name} | |
| 505 | +%dir %{_libdir}/libreoffice/share/extensions/%{name}/META-INF | |
| 506 | +%{_libdir}/libreoffice/share/extensions/%{name}/META-INF/manifest.xml | |
| 507 | +%{_libdir}/libreoffice/share/extensions/%{name}/description.txt | |
| 508 | +%{_libdir}/libreoffice/share/extensions/%{name}/description.xml | |
| 509 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.png | |
| 510 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.rdb | |
| 511 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.uno.so | |
| 512 | +%endif | |
| 513 | + | |
| 514 | +%if 0%{?_ooRexx} | |
| 515 | +%files -n %{name}-plugin-rexx | |
| 516 | +%defattr(-,root,root) | |
| 517 | +%{_rexxlibdir}/librx3270.so.%version | |
| 518 | +%{_rexxlibdir}/librx3270.so | |
| 519 | +%{_rexxclassdir}/rx3270.cls | |
| 520 | +%{_libdir}/@PACKAGE@-plugins/rx3270.so | |
| 521 | +%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 522 | +%endif | |
| 523 | + | |
| 524 | +%if 0%{?_php} | |
| 525 | +%files -n php%{_php}-tn3270 | |
| 526 | +%defattr(-,root,root) | |
| 527 | +%config %{_phpconf}/tn3270.ini | |
| 528 | +%{_phpextdir}/*.so | |
| 529 | +%endif | |
| 530 | + | |
| 531 | +%if 0%{?_python} | |
| 532 | +%files -n python-tn3270 | |
| 533 | +%defattr(-,root,root) | |
| 534 | +%{pythonextpath}/py3270.so | |
| 535 | +%endif | |
| 536 | + | |
| 537 | +%if 0%{?_java} | |
| 538 | +%files java | |
| 539 | +%defattr(-,root,root) | |
| 540 | +%dir %{_jnidir} | |
| 541 | +%dir %{_jvmjardir} | |
| 542 | + | |
| 543 | +%{_jnidir}/libjni3270.so | |
| 544 | +%{_jvmjardir}/@PACKAGE@.jar | |
| 545 | + | |
| 546 | +%files plugin-java | |
| 547 | +%defattr(-,root,root) | |
| 548 | +%{_libdir}/@PACKAGE@-plugins/j3270.so | |
| 549 | + | |
| 550 | +%files javadoc | |
| 551 | +%defattr(-,root,root) | |
| 552 | +%dir %{_javadocdir} | |
| 553 | +%{_javadocdir}/%{name} | |
| 554 | +%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 555 | +%endif | |
| 556 | + | |
| 557 | +#---[ Scripts ]------------------------------------------------------------------------------------------------------- | |
| 558 | + | |
| 559 | +%post | |
| 560 | +/sbin/ldconfig | |
| 561 | +exit 0 | |
| 562 | + | |
| 563 | +%postun | |
| 564 | +/sbin/ldconfig | |
| 565 | +exit 0 | |
| 566 | + | |
| 567 | +%post -n lib3270-%LIBVERSION | |
| 568 | +/sbin/ldconfig | |
| 569 | +exit 0 | |
| 570 | + | |
| 571 | +%postun -n lib3270-%LIBVERSION | |
| 572 | +/sbin/ldconfig | |
| 573 | +exit 0 | |
| 574 | + | |
| 575 | +%if 0%{?_ooRexx} | |
| 576 | +%post -n %{name}-plugin-rexx | |
| 577 | +/sbin/ldconfig | |
| 578 | +exit 0 | |
| 579 | + | |
| 580 | +%postun -n %{name}-plugin-rexx | |
| 581 | +/sbin/ldconfig | |
| 582 | +exit 0 | |
| 583 | +%endif | |
| 584 | + | |
| 585 | +%changelog | ... | ... |
| ... | ... | @@ -0,0 +1,7 @@ |
| 1 | +# Requires for ooRexx plugin | |
| 2 | +addFilter("devel-file-in-non-devel-package.*/usr/lib.*") | |
| 3 | + | |
| 4 | +# Requires for Libreoffice (starts whith lib but isn't a library) | |
| 5 | +addFilter("shlib-policy-nonversioned-dir.*/libreoffice") | |
| 6 | +addFilter("explicit-lib-dependency libreoffice") | |
| 7 | + | ... | ... |
rpmlintrc
| ... | ... | @@ -1,7 +0,0 @@ |
| 1 | -# Requires for ooRexx plugin | |
| 2 | -addFilter("devel-file-in-non-devel-package.*/usr/lib.*") | |
| 3 | - | |
| 4 | -# Requires for Libreoffice (starts whith lib but isn't a library) | |
| 5 | -addFilter("shlib-policy-nonversioned-dir.*/libreoffice") | |
| 6 | -addFilter("explicit-lib-dependency libreoffice") | |
| 7 | - |
| ... | ... | @@ -0,0 +1,136 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | + | |
| 4 | +# | |
| 5 | +# Gera binários windows | |
| 6 | +# | |
| 7 | +# $1 = Arquitetura (x86_32/x86_64) | |
| 8 | +# | |
| 9 | +build() | |
| 10 | +{ | |
| 11 | + echo -e "\e]2;${PACKAGE_NAME}-${1}\a" | |
| 12 | + | |
| 13 | + case ${1} in | |
| 14 | + x86_32) | |
| 15 | + host=i686-w64-mingw32 | |
| 16 | + host_cpu=i686 | |
| 17 | + prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
| 18 | + tools=i686-w64-mingw32 | |
| 19 | + ;; | |
| 20 | + | |
| 21 | + x86_64) | |
| 22 | + host=x86_64-w64-mingw32 | |
| 23 | + host_cpu=x86_64 | |
| 24 | + prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
| 25 | + tools=x86_64-w64-mingw32 | |
| 26 | + ;; | |
| 27 | + | |
| 28 | + | |
| 29 | + *) | |
| 30 | + failed "Arquitetura desconhecida: ${1}" | |
| 31 | + | |
| 32 | + esac | |
| 33 | + | |
| 34 | + # Detecto argumentos | |
| 35 | + ARGS="" | |
| 36 | + | |
| 37 | + ./configure \ | |
| 38 | + --cache-file=.${1}.cache \ | |
| 39 | + --host=${host} \ | |
| 40 | + --prefix=${prefix} \ | |
| 41 | + --disable-rexx | |
| 42 | + --disable-java \ | |
| 43 | + --disable-office | |
| 44 | + | |
| 45 | + if [ "$?" != "0" ]; then | |
| 46 | + failed "Erro ao configurar" | |
| 47 | + fi | |
| 48 | + | |
| 49 | + make clean | |
| 50 | + rm -f *.exe | |
| 51 | + | |
| 52 | + make Release | |
| 53 | + if [ "$?" != "0" ]; then | |
| 54 | + failed "Erro ao compilar fontes" | |
| 55 | + fi | |
| 56 | + | |
| 57 | + mkdir -p ${TEMPDIR}/package/${host_cpu} | |
| 58 | + | |
| 59 | + cp -v .bin/Release/hllapi.dll* ${TEMPDIR}/package/${host_cpu} | |
| 60 | + if [ "$?" != "0" ]; then | |
| 61 | + failed "Erro ao copiar pacotes" | |
| 62 | + fi | |
| 63 | + | |
| 64 | + make clean | |
| 65 | + rm -f *.exe | |
| 66 | + | |
| 67 | +} | |
| 68 | + | |
| 69 | +myDIR=$(readlink -f $(dirname $0)) | |
| 70 | +TEMPDIR=$(mktemp -d) | |
| 71 | +DESTDIR=${HOME}/public_html/win | |
| 72 | +RUNTIMEDIR=$(mktemp -d) | |
| 73 | +ARCHS="x86_32 x86_64" | |
| 74 | +RUNTIME=1 | |
| 75 | +COMPLETE=1 | |
| 76 | + | |
| 77 | +trap cleanup INT | |
| 78 | + | |
| 79 | +until [ -z "$1" ] | |
| 80 | +do | |
| 81 | + if [ ${1:0:2} = '--' ]; then | |
| 82 | + tmp=${1:2} | |
| 83 | + parameter=${tmp%%=*} | |
| 84 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 85 | + | |
| 86 | + case $parameter in | |
| 87 | + | |
| 88 | + 32) | |
| 89 | + ARCHS="x86_32" | |
| 90 | + ;; | |
| 91 | + | |
| 92 | + 64) | |
| 93 | + ARCHS="x86_64" | |
| 94 | + ;; | |
| 95 | + | |
| 96 | + OUT) | |
| 97 | + DESTDIR=$value | |
| 98 | + ;; | |
| 99 | + | |
| 100 | + ARCH) | |
| 101 | + value=${tmp##*=} | |
| 102 | + ARCHS=$value | |
| 103 | + ;; | |
| 104 | + | |
| 105 | + *) | |
| 106 | + value=${tmp##*=} | |
| 107 | + eval $parameter=$value | |
| 108 | + esac | |
| 109 | + | |
| 110 | + fi | |
| 111 | + | |
| 112 | + shift | |
| 113 | +done | |
| 114 | + | |
| 115 | +# Configura | |
| 116 | +aclocal | |
| 117 | +if [ "$?" != "0" ]; then | |
| 118 | + exit -1 | |
| 119 | +fi | |
| 120 | + | |
| 121 | +autoconf | |
| 122 | +if [ "$?" != "0" ]; then | |
| 123 | + exit -1 | |
| 124 | +fi | |
| 125 | + | |
| 126 | +# Gera pacotes | |
| 127 | +for i in ${ARCHS}; do | |
| 128 | + | |
| 129 | + build "${i}" | |
| 130 | + | |
| 131 | +done | |
| 132 | + | |
| 133 | +cd ${TEMPDIR}/package | |
| 134 | + | |
| 135 | +zip -9 -m -r ~/public_html/win/hllapi_$(date "+%Y%m%d").zip . | |
| 136 | + | ... | ... |
| ... | ... | @@ -0,0 +1,356 @@ |
| 1 | +#!/bin/bash | |
| 2 | +PKG_CONFIG="@PKG_CONFIG@" | |
| 3 | +GTK_VERSION="gtk+-@GTK_VERSION@" | |
| 4 | + | |
| 5 | +GTK_PREFIX=$($PKG_CONFIG --variable=prefix $GTK_VERSION) | |
| 6 | +TARGET_PATH=".bin/gtkruntime" | |
| 7 | + | |
| 8 | +# Clean target folder | |
| 9 | +rm -fr "$TARGET_PATH/*" | |
| 10 | +mkdir -p "$TARGET_PATH" | |
| 11 | + | |
| 12 | +copyFile() { | |
| 13 | + | |
| 14 | + GTKPATH=$(find "$GTK_PREFIX/bin" -name "$1") | |
| 15 | + SYSPATH=$(find "/bin" -name "$1") | |
| 16 | + | |
| 17 | + if [ ! -z "$GTKPATH" ]; then | |
| 18 | + echo "$GTKPATH ..." | |
| 19 | + cp $GTKPATH "$TARGET_PATH" | |
| 20 | + if [ "$?" != "0" ]; then | |
| 21 | + echo "Can´t copy $GTKPATH" | |
| 22 | + return 1 | |
| 23 | + fi | |
| 24 | + elif [ ! -z "$SYSPATH" ]; then | |
| 25 | + echo "$SYSPATH ..." | |
| 26 | + cp $SYSPATH "$TARGET_PATH" | |
| 27 | + if [ "$?" != "0" ]; then | |
| 28 | + echo "Can´t copy $SYSPATH" | |
| 29 | + return 1 | |
| 30 | + fi | |
| 31 | + | |
| 32 | + else | |
| 33 | + echo "Can´t find ${GTK_PREFIX}/bin/${1}" | |
| 34 | + return 1 | |
| 35 | + fi | |
| 36 | + | |
| 37 | + return 0 | |
| 38 | +} | |
| 39 | + | |
| 40 | +copyFiles() { | |
| 41 | + | |
| 42 | + while read FILE | |
| 43 | + do | |
| 44 | + copyFile "$FILE" | |
| 45 | + if [ "$?" != "0" ]; then | |
| 46 | + exit -1 | |
| 47 | + fi | |
| 48 | + done < $1 | |
| 49 | + rm -f $1 | |
| 50 | + | |
| 51 | +} | |
| 52 | + | |
| 53 | +copy_locale() { | |
| 54 | + | |
| 55 | + rm -fr $TARGET_PATH/share/locale/pt_BR/LC_MESSAGES | |
| 56 | + mkdir -p $TARGET_PATH/share/locale/pt_BR/LC_MESSAGES | |
| 57 | + | |
| 58 | + while read FILE | |
| 59 | + do | |
| 60 | + echo "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE ..." | |
| 61 | + | |
| 62 | + if [ -e "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE" ]; then | |
| 63 | + cp "$GTK_PREFIX/share/locale/pt_BR/LC_MESSAGES/$FILE" "$TARGET_PATH/share/locale/pt_BR/LC_MESSAGES" | |
| 64 | + if [ "$?" != "0" ]; then | |
| 65 | + echo "Can´t copy $FILE" | |
| 66 | + exit -1 | |
| 67 | + fi | |
| 68 | + fi | |
| 69 | + | |
| 70 | + done < $1 | |
| 71 | + rm -f $1 | |
| 72 | +} | |
| 73 | + | |
| 74 | +CopyGTK3Theme() { | |
| 75 | + | |
| 76 | + mkdir -p ${TARGET_PATH}/share/icons | |
| 77 | + if [ "$?" != 0 ]; then | |
| 78 | + echo "Can´t create icons folder" | |
| 79 | + exit -1 | |
| 80 | + fi | |
| 81 | + | |
| 82 | + cp -rv /usr/share/icons/${1} ${TARGET_PATH}/share/icons | |
| 83 | + if [ "$?" != 0 ]; then | |
| 84 | + echo "Can´t copy ${1} icons" | |
| 85 | + exit -1 | |
| 86 | + fi | |
| 87 | + | |
| 88 | + mkdir -p ${TARGET_PATH}/share/themes | |
| 89 | + if [ "$?" != 0 ]; then | |
| 90 | + echo "Can´t create themes folder" | |
| 91 | + exit -1 | |
| 92 | + fi | |
| 93 | + | |
| 94 | + cp -rv /usr/share/themes/${1} ${TARGET_PATH}/share/themes | |
| 95 | + if [ "$?" != 0 ]; then | |
| 96 | + echo "Can´t copy ${1} theme" | |
| 97 | + exit -1 | |
| 98 | + fi | |
| 99 | + | |
| 100 | + | |
| 101 | +} | |
| 102 | + | |
| 103 | + | |
| 104 | +gtk3() { | |
| 105 | + | |
| 106 | +TEMPFILE="temp1.tmp" | |
| 107 | +cat > $TEMPFILE << EOF | |
| 108 | +libglib-*.dll | |
| 109 | +libintl*.dll | |
| 110 | +libgmodule*.dll | |
| 111 | +libgobject*.dll | |
| 112 | +libffi*.dll | |
| 113 | +libgtk-*.dll | |
| 114 | +libgdk-*.dll | |
| 115 | +libcairo-gobject*.dll | |
| 116 | +libcairo-2*.dll | |
| 117 | +libfontconfig-1*.dll | |
| 118 | +libfreetype-6*.dll | |
| 119 | +zlib1.dll | |
| 120 | +libxml2-*.dll | |
| 121 | +libpixman-1*.dll | |
| 122 | +libpng*.dll | |
| 123 | +libgdk_pixbuf*.dll | |
| 124 | +libgio-*.dll | |
| 125 | +libjasper-*.dll | |
| 126 | +libjpeg-8*.dll | |
| 127 | +libtiff-5*.dll | |
| 128 | +liblzma-5*.dll | |
| 129 | +libpango-1*.dll | |
| 130 | +libpangocairo-1*.dll | |
| 131 | +libpangoft2-1*.dll | |
| 132 | +libpangowin32-1*.dll | |
| 133 | +libatk-*.dll | |
| 134 | +libcrypto-*.dll | |
| 135 | +libssl-*.dll | |
| 136 | +libharfbuzz-0.dll | |
| 137 | +libstdc++-6.dll | |
| 138 | +icule53.dll | |
| 139 | +icuuc53.dll | |
| 140 | +icudata53.dll | |
| 141 | +libgraphite2.dll | |
| 142 | +librsvg-*.dll | |
| 143 | +libepoxy-*.dll | |
| 144 | +gspawn-win*-helper-console.exe | |
| 145 | +gspawn-win*-helper.exe | |
| 146 | +gdk-pixbuf-query-loaders.exe | |
| 147 | +EOF | |
| 148 | +copyFiles $TEMPFILE | |
| 149 | + | |
| 150 | + | |
| 151 | +# Copy loaders | |
| 152 | +GDK_LOADERS=$(${PKG_CONFIG} --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0)/loaders | |
| 153 | +GDK_PREFIX=$(${PKG_CONFIG} --variable=prefix gdk-pixbuf-2.0) | |
| 154 | +GDK_TARGET=$(echo ${GDK_LOADERS}/ | sed -e "s@${GDK_PREFIX}@@g") | |
| 155 | + | |
| 156 | +mkdir -p ${TARGET_PATH}/${GDK_TARGET} | |
| 157 | + | |
| 158 | +cp -v ${GDK_LOADERS}/* ${TARGET_PATH}/${GDK_TARGET} | |
| 159 | +if [ "$?" != 0 ]; then | |
| 160 | + echo "Can´t copy loaders" | |
| 161 | + exit -1 | |
| 162 | +fi | |
| 163 | + | |
| 164 | + | |
| 165 | +# Copy optional files | |
| 166 | +copyFile libgcc_s_sjlj-1.dll | |
| 167 | +copyFile libgcc_s_seh-1.dll | |
| 168 | + | |
| 169 | +# Build locale dirs | |
| 170 | +cat > $TEMPFILE << EOF | |
| 171 | +atk10.mo | |
| 172 | +gdk-pixbuf.mo | |
| 173 | +glib20.mo | |
| 174 | +gtk30-properties.mo | |
| 175 | +EOF | |
| 176 | + | |
| 177 | +copy_locale $TEMPFILE | |
| 178 | + | |
| 179 | +mkdir -p $TARGET_PATH/share/glib-2.0/schemas | |
| 180 | +if [ "$?" != 0 ]; then | |
| 181 | + echo "Can´t create schemas folder" | |
| 182 | + exit -1 | |
| 183 | +fi | |
| 184 | + | |
| 185 | +if [ ! -e $GTK_PREFIX/share/glib-2.0/schemas/gschemas.compiled ]; then | |
| 186 | + glib-compile-schemas $GTK_PREFIX/share/glib-2.0/schemas | |
| 187 | +fi | |
| 188 | + | |
| 189 | +cp $GTK_PREFIX/share/glib-2.0/schemas/gschemas.compiled $TARGET_PATH/share/glib-2.0/schemas/gschemas.compiled | |
| 190 | +if [ "$?" != 0 ]; then | |
| 191 | + echo "Can´t copy gshemas.compiled" | |
| 192 | + exit -1 | |
| 193 | +fi | |
| 194 | + | |
| 195 | +# Copia Adwaita | |
| 196 | +CopyGTK3Theme "Adwaita" | |
| 197 | + | |
| 198 | +#mkdir -p $TARGET_PATH/share/icons/Adwaita | |
| 199 | +#if [ "$?" != 0 ]; then | |
| 200 | +# echo "Can´t create icons folder" | |
| 201 | +# exit -1 | |
| 202 | +#fi | |
| 203 | +# | |
| 204 | +#cp -rv /usr/share/icons/Adwaita $TARGET_PATH/share/icons/Adwaita | |
| 205 | +#if [ "$?" != 0 ]; then | |
| 206 | +# echo "Can´t copy icons" | |
| 207 | +# exit -1 | |
| 208 | +#fi | |
| 209 | +# | |
| 210 | +#mkdir -p $TARGET_PATH/share/themes/Adwaita | |
| 211 | +#if [ "$?" != 0 ]; then | |
| 212 | +# echo "Can´t create Adwaita theme" | |
| 213 | +# exit -1 | |
| 214 | +#fi | |
| 215 | +# | |
| 216 | +#cp -rv /usr/share/themes/Adwaita $TARGET_PATH/share/themes/Adwaita | |
| 217 | +#if [ "$?" != 0 ]; then | |
| 218 | +# echo "Can´t copy Adwaita theme" | |
| 219 | +# exit -1 | |
| 220 | +#fi | |
| 221 | + | |
| 222 | + | |
| 223 | +# Copia gnome | |
| 224 | +#mkdir -p $TARGET_PATH/share/icons/gnome | |
| 225 | +#if [ "$?" != 0 ]; then | |
| 226 | +# echo "Can´t create icons folder" | |
| 227 | +# exit -1 | |
| 228 | +#fi | |
| 229 | +# | |
| 230 | +#cp -rv $GTK_PREFIX/share/icons/gnome $TARGET_PATH/share/icons/gnome | |
| 231 | +#if [ "$?" != 0 ]; then | |
| 232 | +# echo "Can´t copy icons" | |
| 233 | +# exit -1 | |
| 234 | +#fi | |
| 235 | + | |
| 236 | +mkdir -p $TARGET_PATH/etc | |
| 237 | +cp -rv $GTK_PREFIX/etc/gtk-3.0 $TARGET_PATH/etc/gtk-3.0 | |
| 238 | +if [ "$?" != 0 ]; then | |
| 239 | + echo "Can´t copy theme" | |
| 240 | + exit -1 | |
| 241 | +fi | |
| 242 | + | |
| 243 | +cat > $TARGET_PATH/etc/gtk-3.0/settings.ini << EOF | |
| 244 | +[Settings] | |
| 245 | +gtk-theme-name = Adwaita | |
| 246 | +gtk-icon-theme-name = Adwaita | |
| 247 | +gtk-fallback-icon-theme = Adwaita | |
| 248 | +gtk-font-name = Sans 10 | |
| 249 | +gtk-button-images = 1 | |
| 250 | +EOF | |
| 251 | +} | |
| 252 | + | |
| 253 | +gtk2() { | |
| 254 | + | |
| 255 | +# Build DLL list | |
| 256 | +TEMPFILE="temp1.tmp" | |
| 257 | +cat > $TEMPFILE << EOF | |
| 258 | +intl.dll | |
| 259 | +libatk-1.0-0.dll | |
| 260 | +libcairo-2.dll | |
| 261 | +libgailutil-18.dll | |
| 262 | +libgdk_pixbuf-2.0-0.dll | |
| 263 | +libgdk-win32-2.0-0.dll | |
| 264 | +libgettextlib-0-*.dll | |
| 265 | +libgettextpo*.dll | |
| 266 | +libgettextsrc*.dll | |
| 267 | +libgio-2.0-0.dll | |
| 268 | +libglib-2.0-0.dll | |
| 269 | +libgmodule-2.0-0.dll | |
| 270 | +libgobject-2.0-0.dll | |
| 271 | +libgthread-2.0-0.dll | |
| 272 | +libgtk-win32-2.0-0.dll | |
| 273 | +libpango-1.0-0.dll | |
| 274 | +libpangocairo-1.0-0.dll | |
| 275 | +libpangoft2-1.0-0.dll | |
| 276 | +libpangowin32-1.0-0.dll | |
| 277 | +zlib1.dll | |
| 278 | +libpng*.dll | |
| 279 | +libfontconfig*.dll | |
| 280 | +libasprintf*.dll | |
| 281 | +libgettextlib*.dll | |
| 282 | +libexpat*.dll | |
| 283 | +freetype*.dll | |
| 284 | +gspawn-win32-helper-console.exe | |
| 285 | +gspawn-win32-helper.exe | |
| 286 | +gdk-pixbuf-query-loaders.exe | |
| 287 | +EOF | |
| 288 | + | |
| 289 | +# jpeg62.dll | |
| 290 | +# libtiff*.dll | |
| 291 | +copyFiles $TEMPFILE | |
| 292 | + | |
| 293 | +# Build locale dirs | |
| 294 | +cat > $TEMPFILE << EOF | |
| 295 | +atk10.mo | |
| 296 | +gdk-pixbuf.mo | |
| 297 | +gettext-runtime.mo | |
| 298 | +gettext-tools.mo | |
| 299 | +glib20.mo | |
| 300 | +gtk20-properties.mo | |
| 301 | +gtk20.mo | |
| 302 | +libiconv.mo | |
| 303 | +EOF | |
| 304 | + | |
| 305 | +copy_locale $TEMPFILE | |
| 306 | + | |
| 307 | +# Copy default theme | |
| 308 | +THEME_PATH="themes/MS-Windows/gtk-2.0" | |
| 309 | +rm -fr "$TARGET_PATH/$THEME_PATH" | |
| 310 | +mkdir -p "$TARGET_PATH/share/$THEME_PATH" | |
| 311 | + | |
| 312 | +echo "$GTK_PREFIX/share/$THEME_PATH/gtkrc ..." | |
| 313 | +cp "$GTK_PREFIX/share/$THEME_PATH/gtkrc" "$TARGET_PATH/share/$THEME_PATH/gtkrc" | |
| 314 | +if [ "$?" != "0" ]; then | |
| 315 | + echo "Can´t copy default theme" | |
| 316 | + exit -1 | |
| 317 | +fi | |
| 318 | + | |
| 319 | +cat > $TEMPFILE << EOF | |
| 320 | +engines | |
| 321 | +loaders | |
| 322 | +EOF | |
| 323 | + | |
| 324 | +rm -fr $TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/ | |
| 325 | +mkdir -p $TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/ | |
| 326 | +while read DIRNAME | |
| 327 | +do | |
| 328 | + if [ -d "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" ]; then | |
| 329 | + echo "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME ..." | |
| 330 | + mkdir -p "$TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" | |
| 331 | + cp -r "$GTK_PREFIX/lib/gtk-2.0/$GTK_RUNTIME_VERSION/$DIRNAME" "$TARGET_PATH/lib/gtk-2.0/$GTK_RUNTIME_VERSION" | |
| 332 | + if [ "$?" != "0" ]; then | |
| 333 | + echo "Can´t copy $DIRNAME" | |
| 334 | + exit -1 | |
| 335 | + fi | |
| 336 | + fi | |
| 337 | +done < $TEMPFILE | |
| 338 | +rm -f $TEMPFILE | |
| 339 | + | |
| 340 | +mkdir -p $TARGET_PATH/etc/gtk-2.0/ | |
| 341 | +echo "gtk-theme-name = \"MS-Windows\"" > $TARGET_PATH/etc/gtk-2.0/gtkrc | |
| 342 | +if [ "$?" != "0" ]; then | |
| 343 | + echo "Can´t set theme name" | |
| 344 | + exit -1 | |
| 345 | +fi | |
| 346 | + | |
| 347 | +} | |
| 348 | + | |
| 349 | +if [ "$GTK_VERSION" == "gtk+-3.0" ]; then | |
| 350 | + gtk3 | |
| 351 | +else | |
| 352 | + gtk2 | |
| 353 | +fi | |
| 354 | + | |
| 355 | +echo $0 Complete | |
| 356 | + | ... | ... |
| ... | ... | @@ -0,0 +1,355 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +PACKAGE_NAME="pw3270" | |
| 4 | + | |
| 5 | +cleanup() | |
| 6 | +{ | |
| 7 | + # | |
| 8 | + # Apaga diretorio temporário caso o script seja interrompido | |
| 9 | + # | |
| 10 | + cd ${myDIR} | |
| 11 | + rm -fr ${TEMPDIR} | |
| 12 | + rm -fr ${RUNTIMEDIR} | |
| 13 | + exit -1 | |
| 14 | +} | |
| 15 | + | |
| 16 | +failed() | |
| 17 | +{ | |
| 18 | + echo -e "\e]2;Failed!\a" | |
| 19 | + echo $1 | |
| 20 | + cleanup | |
| 21 | +} | |
| 22 | + | |
| 23 | +# | |
| 24 | +# Copia pacote gerado | |
| 25 | +# | |
| 26 | +# $1 = Arquitetura (i686/x86_64) | |
| 27 | +# $2 = Tipo do link | |
| 28 | +# | |
| 29 | +CopyPacket() | |
| 30 | +{ | |
| 31 | + # | |
| 32 | + # Primeiro move a versão baseada no runtime | |
| 33 | + # | |
| 34 | + FILENAME=$(find nsi -maxdepth 1 -name "${PACKAGE_NAME}-*-requires-gtk-*-${1}.exe" | head --lines 1) | |
| 35 | + | |
| 36 | + if [ ! -z ${FILENAME} ]; then | |
| 37 | + | |
| 38 | + mkdir -p ${DESTDIR}/${1} | |
| 39 | + | |
| 40 | + echo "Copiando ${FILENAME} para ${DESTDIR}/${1}" | |
| 41 | + | |
| 42 | + mv "${FILENAME}" "${DESTDIR}/${1}" | |
| 43 | + if [ "$?" != "0" ]; then | |
| 44 | + echo "src=${FILENAME}" | |
| 45 | + echo "dst=${DESTDIR}/${1}" | |
| 46 | + failed "Erro ao copiar instalador sem o runtime" | |
| 47 | + fi | |
| 48 | + | |
| 49 | + # | |
| 50 | + # Cria link do pacote sem GTK para "latest" | |
| 51 | + # | |
| 52 | + ln -sf $(basename ${FILENAME}) ${DESTDIR}/${1}/${PACKAGE_NAME}-without-gtk-${2}-${1}.exe | |
| 53 | + if [ "$?" != "0" ]; then | |
| 54 | + failed "Erro ao criar o link simbólico" | |
| 55 | + fi | |
| 56 | + | |
| 57 | + | |
| 58 | + fi | |
| 59 | + | |
| 60 | + # | |
| 61 | + # Depois copia o pacote completo | |
| 62 | + # | |
| 63 | + FILENAME=$(find nsi -maxdepth 1 -name "${PACKAGE_NAME}-*-gtk-*-${1}.exe" | head --lines 1) | |
| 64 | + | |
| 65 | + if [ ! -z ${FILENAME} ]; then | |
| 66 | + | |
| 67 | + mkdir -p ${DESTDIR}/${1} | |
| 68 | + | |
| 69 | + echo "Copiando ${FILENAME} para ${DESTDIR}/${1}" | |
| 70 | + | |
| 71 | + mv "${FILENAME}" "${DESTDIR}/${1}" | |
| 72 | + if [ "$?" != "0" ]; then | |
| 73 | + echo "src=${FILENAME}" | |
| 74 | + echo "dst=${DESTDIR}/${1}" | |
| 75 | + failed "Erro ao copiar instalador completo" | |
| 76 | + fi | |
| 77 | + | |
| 78 | + # | |
| 79 | + # Cria link do pacote completo para "latest" | |
| 80 | + # | |
| 81 | + ln -sf $(basename ${FILENAME}) ${DESTDIR}/${1}/${PACKAGE_NAME}-with-gtk-${2}-${1}.exe | |
| 82 | + if [ "$?" != "0" ]; then | |
| 83 | + failed "Erro ao criar o link simbólico" | |
| 84 | + fi | |
| 85 | + | |
| 86 | + fi | |
| 87 | + | |
| 88 | +} | |
| 89 | + | |
| 90 | + | |
| 91 | +# | |
| 92 | +# Gera pacote windows | |
| 93 | +# | |
| 94 | +# $1 = Arquitetura (x86_32/x86_64) | |
| 95 | +# | |
| 96 | +build() | |
| 97 | +{ | |
| 98 | + echo -e "\e]2;${PACKAGE_NAME}-${1}\a" | |
| 99 | + | |
| 100 | + case ${1} in | |
| 101 | + x86_32) | |
| 102 | + host=i686-w64-mingw32 | |
| 103 | + host_cpu=i686 | |
| 104 | + prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
| 105 | + tools=i686-w64-mingw32 | |
| 106 | + ;; | |
| 107 | + | |
| 108 | + x86_64) | |
| 109 | + host=x86_64-w64-mingw32 | |
| 110 | + host_cpu=x86_64 | |
| 111 | + prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
| 112 | + tools=x86_64-w64-mingw32 | |
| 113 | + ;; | |
| 114 | + | |
| 115 | + | |
| 116 | + *) | |
| 117 | + failed "Arquitetura desconhecida: ${1}" | |
| 118 | + | |
| 119 | + esac | |
| 120 | + | |
| 121 | + # Detecto argumentos | |
| 122 | + ARGS="" | |
| 123 | + | |
| 124 | + REXXCONFIG=$(which ${tools}-oorexx-config) | |
| 125 | + if [ -z ${REXXCONFIG} ]; then | |
| 126 | + echo "Desabilitando suporte ooRexx" | |
| 127 | + ARGS="${ARGS} --disable-rexx" | |
| 128 | + fi | |
| 129 | + | |
| 130 | + ./configure \ | |
| 131 | + --cache-file=.${1}.cache \ | |
| 132 | + --host=${host} \ | |
| 133 | + --prefix=${prefix} \ | |
| 134 | + --disable-python \ | |
| 135 | + ${ARGS} | |
| 136 | + | |
| 137 | + if [ "$?" != "0" ]; then | |
| 138 | + failed "Erro ao configurar" | |
| 139 | + fi | |
| 140 | + | |
| 141 | + make clean | |
| 142 | + rm -f *.exe | |
| 143 | + | |
| 144 | + make -C nsi ${PACKAGE_NAME}-${host_cpu}.nsi | |
| 145 | + if [ "$?" != "0" ]; then | |
| 146 | + failed "Erro ao gerar script de empacotamento windows" | |
| 147 | + fi | |
| 148 | + | |
| 149 | + make Release | |
| 150 | + if [ "$?" != "0" ]; then | |
| 151 | + failed "Erro ao compilar fontes" | |
| 152 | + fi | |
| 153 | + | |
| 154 | + ln -sf .${prefix}/share/locale .bin/Release/locale | |
| 155 | + if [ "$?" != "0" ]; then | |
| 156 | + failed "Erro ao criar link para traduções" | |
| 157 | + fi | |
| 158 | + | |
| 159 | + if [ "${COMPLETE}" != "0" ]; then | |
| 160 | + | |
| 161 | + # Gera pacote completo | |
| 162 | + | |
| 163 | + chmod +x makegtkruntime.sh | |
| 164 | + ./makegtkruntime.sh | |
| 165 | + if [ "$?" != "0" ]; then | |
| 166 | + failed "Erro ao construir runtime gtk" | |
| 167 | + fi | |
| 168 | + | |
| 169 | + echo -e "\e]2;${PACKAGE_NAME}-install-${host_cpu}.exe\a" | |
| 170 | + make -C nsi package | |
| 171 | + if [ "$?" != "0" ]; then | |
| 172 | + failed "Erro ao gerar pacote windows" | |
| 173 | + fi | |
| 174 | + | |
| 175 | + fi | |
| 176 | + | |
| 177 | + if [ "${RUNTIME}" != "0" ]; then | |
| 178 | + | |
| 179 | + make -C nsi package-no-gtk | |
| 180 | + if [ "$?" != "0" ]; then | |
| 181 | + failed "Erro ao gerar pacote windows" | |
| 182 | + fi | |
| 183 | + | |
| 184 | + fi | |
| 185 | + | |
| 186 | + CopyPacket ${host_cpu} "latest" | |
| 187 | + | |
| 188 | + make clean | |
| 189 | + rm -f *.exe | |
| 190 | + | |
| 191 | +} | |
| 192 | + | |
| 193 | +myDIR=$(readlink -f $(dirname $0)) | |
| 194 | +TEMPDIR=$(mktemp -d) | |
| 195 | +DESTDIR=${HOME}/public_html/win | |
| 196 | +RUNTIMEDIR=$(mktemp -d) | |
| 197 | +ARCHS="x86_32 x86_64" | |
| 198 | +RUNTIME=1 | |
| 199 | +COMPLETE=1 | |
| 200 | + | |
| 201 | +find . -exec touch {} \; | |
| 202 | + | |
| 203 | +trap cleanup INT | |
| 204 | + | |
| 205 | +until [ -z "$1" ] | |
| 206 | +do | |
| 207 | + if [ ${1:0:2} = '--' ]; then | |
| 208 | + tmp=${1:2} | |
| 209 | + parameter=${tmp%%=*} | |
| 210 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 211 | + | |
| 212 | + case $parameter in | |
| 213 | + | |
| 214 | + 32) | |
| 215 | + ARCHS="x86_32" | |
| 216 | + ;; | |
| 217 | + | |
| 218 | + 64) | |
| 219 | + ARCHS="x86_64" | |
| 220 | + ;; | |
| 221 | + | |
| 222 | + FULL) | |
| 223 | + RUNTIME=0 | |
| 224 | + COMPLETE=1 | |
| 225 | + ;; | |
| 226 | + | |
| 227 | + RT) | |
| 228 | + RUNTIME=1 | |
| 229 | + COMPLETE=0 | |
| 230 | + ;; | |
| 231 | + | |
| 232 | + NAME) | |
| 233 | + PACKAGE_NAME=$value | |
| 234 | + ;; | |
| 235 | + | |
| 236 | + OUT) | |
| 237 | + DESTDIR=$value | |
| 238 | + ;; | |
| 239 | + | |
| 240 | + ARCH) | |
| 241 | + value=${tmp##*=} | |
| 242 | + ARCHS=$value | |
| 243 | + ;; | |
| 244 | + | |
| 245 | + *) | |
| 246 | + value=${tmp##*=} | |
| 247 | + eval $parameter=$value | |
| 248 | + esac | |
| 249 | + | |
| 250 | + fi | |
| 251 | + | |
| 252 | + shift | |
| 253 | +done | |
| 254 | + | |
| 255 | +# Configura | |
| 256 | +aclocal | |
| 257 | +if [ "$?" != "0" ]; then | |
| 258 | + exit -1 | |
| 259 | +fi | |
| 260 | + | |
| 261 | +autoconf | |
| 262 | +if [ "$?" != "0" ]; then | |
| 263 | + exit -1 | |
| 264 | +fi | |
| 265 | + | |
| 266 | +# Gera pacotes | |
| 267 | +for i in ${ARCHS}; do | |
| 268 | + | |
| 269 | + build "${i}" | |
| 270 | + | |
| 271 | +done | |
| 272 | + | |
| 273 | +if [ "${RUNTIME}" == "1" ]; then | |
| 274 | + | |
| 275 | + echo -e "\e]2;Baixando runtime\a" | |
| 276 | + | |
| 277 | + # | |
| 278 | + # Puxo scripts de construção do GTK direto da sourceforge. | |
| 279 | + # | |
| 280 | + cd ${RUNTIMEDIR} | |
| 281 | + git clone http://git.code.sf.net/p/gtk3win/code . | |
| 282 | + if [ "$?" != "0" ]; then | |
| 283 | + exit -1 | |
| 284 | + fi | |
| 285 | + | |
| 286 | + for i in ${ARCHS}; do | |
| 287 | + | |
| 288 | + echo -e "\e]2;gtk-runtime-${i}\a" | |
| 289 | + | |
| 290 | + case ${i} in | |
| 291 | + x86_32) | |
| 292 | + host_cpu=i686 | |
| 293 | + ./win32.sh | |
| 294 | + if [ "$?" != "0" ]; then | |
| 295 | + exit -1 | |
| 296 | + fi | |
| 297 | + ;; | |
| 298 | + | |
| 299 | + x86_64) | |
| 300 | + host_cpu=x86_64 | |
| 301 | + ./win64.sh | |
| 302 | + if [ "$?" != "0" ]; then | |
| 303 | + exit -1 | |
| 304 | + fi | |
| 305 | + ;; | |
| 306 | + | |
| 307 | + *) | |
| 308 | + echo "Arquitetura desconhecida ${i}" | |
| 309 | + exit -1 | |
| 310 | + | |
| 311 | + esac | |
| 312 | + | |
| 313 | + rm -f gtk-runtime-*-${host_cpu}.exe | |
| 314 | + | |
| 315 | + | |
| 316 | + chmod +x ./makeruntime.sh | |
| 317 | + | |
| 318 | + ./makeruntime.sh | |
| 319 | + if [ "$?" != "0" ]; then | |
| 320 | + exit -1 | |
| 321 | + fi | |
| 322 | + | |
| 323 | + # Copia o pacote gerado | |
| 324 | + FILENAME=$(find . -maxdepth 1 -name "gtk-runtime-*-${host_cpu}.exe" | head --lines 1) | |
| 325 | + | |
| 326 | + mkdir -p ${DESTDIR}/${host_cpu} | |
| 327 | + | |
| 328 | + mv gtk-runtime-*-${host_cpu}.exe ${DESTDIR}/${host_cpu} | |
| 329 | + if [ "$?" != "0" ]; then | |
| 330 | + failed "Erro ao copiar instalador" | |
| 331 | + fi | |
| 332 | + | |
| 333 | + ln -sf $(basename ${FILENAME}) "${DESTDIR}/${host_cpu}/gtk-runtime-latest-${host_cpu}.exe" | |
| 334 | + if [ "$?" != "0" ]; then | |
| 335 | + failed "Erro ao criar o link simbólico" | |
| 336 | + fi | |
| 337 | + | |
| 338 | + done | |
| 339 | + | |
| 340 | +fi | |
| 341 | + | |
| 342 | +cd $myDIR | |
| 343 | +rm -fr ${TEMPDIR} | |
| 344 | +rm -fr ${RUNTIMEDIR} | |
| 345 | + | |
| 346 | +# Gera pacotes para envio ao SPB | |
| 347 | +zip -9 -r -j ${HOME}/public_html/win/${PACKAGE_NAME}-latest.zip \ | |
| 348 | + ${HOME}/public_html/win/x86_32/${PACKAGE_NAME}-with-gtk-latest-i686.exe \ | |
| 349 | + ${HOME}/public_html/win/x86_64/${PACKAGE_NAME}-with-gtk-latest-x86_64.exe | |
| 350 | + | |
| 351 | +echo -e "\e]2;Success!\a" | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | ... | ... |
winpacket.sh
| ... | ... | @@ -1,355 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | - | |
| 3 | -PACKAGE_NAME="pw3270" | |
| 4 | - | |
| 5 | -cleanup() | |
| 6 | -{ | |
| 7 | - # | |
| 8 | - # Apaga diretorio temporário caso o script seja interrompido | |
| 9 | - # | |
| 10 | - cd ${myDIR} | |
| 11 | - rm -fr ${TEMPDIR} | |
| 12 | - rm -fr ${RUNTIMEDIR} | |
| 13 | - exit -1 | |
| 14 | -} | |
| 15 | - | |
| 16 | -failed() | |
| 17 | -{ | |
| 18 | - echo -e "\e]2;Failed!\a" | |
| 19 | - echo $1 | |
| 20 | - cleanup | |
| 21 | -} | |
| 22 | - | |
| 23 | -# | |
| 24 | -# Copia pacote gerado | |
| 25 | -# | |
| 26 | -# $1 = Arquitetura (i686/x86_64) | |
| 27 | -# $2 = Tipo do link | |
| 28 | -# | |
| 29 | -CopyPacket() | |
| 30 | -{ | |
| 31 | - # | |
| 32 | - # Primeiro move a versão baseada no runtime | |
| 33 | - # | |
| 34 | - FILENAME=$(find nsi -maxdepth 1 -name "${PACKAGE_NAME}-*-requires-gtk-*-${1}.exe" | head --lines 1) | |
| 35 | - | |
| 36 | - if [ ! -z ${FILENAME} ]; then | |
| 37 | - | |
| 38 | - mkdir -p ${DESTDIR}/${1} | |
| 39 | - | |
| 40 | - echo "Copiando ${FILENAME} para ${DESTDIR}/${1}" | |
| 41 | - | |
| 42 | - mv "${FILENAME}" "${DESTDIR}/${1}" | |
| 43 | - if [ "$?" != "0" ]; then | |
| 44 | - echo "src=${FILENAME}" | |
| 45 | - echo "dst=${DESTDIR}/${1}" | |
| 46 | - failed "Erro ao copiar instalador sem o runtime" | |
| 47 | - fi | |
| 48 | - | |
| 49 | - # | |
| 50 | - # Cria link do pacote sem GTK para "latest" | |
| 51 | - # | |
| 52 | - ln -sf $(basename ${FILENAME}) ${DESTDIR}/${1}/${PACKAGE_NAME}-without-gtk-${2}-${1}.exe | |
| 53 | - if [ "$?" != "0" ]; then | |
| 54 | - failed "Erro ao criar o link simbólico" | |
| 55 | - fi | |
| 56 | - | |
| 57 | - | |
| 58 | - fi | |
| 59 | - | |
| 60 | - # | |
| 61 | - # Depois copia o pacote completo | |
| 62 | - # | |
| 63 | - FILENAME=$(find nsi -maxdepth 1 -name "${PACKAGE_NAME}-*-gtk-*-${1}.exe" | head --lines 1) | |
| 64 | - | |
| 65 | - if [ ! -z ${FILENAME} ]; then | |
| 66 | - | |
| 67 | - mkdir -p ${DESTDIR}/${1} | |
| 68 | - | |
| 69 | - echo "Copiando ${FILENAME} para ${DESTDIR}/${1}" | |
| 70 | - | |
| 71 | - mv "${FILENAME}" "${DESTDIR}/${1}" | |
| 72 | - if [ "$?" != "0" ]; then | |
| 73 | - echo "src=${FILENAME}" | |
| 74 | - echo "dst=${DESTDIR}/${1}" | |
| 75 | - failed "Erro ao copiar instalador completo" | |
| 76 | - fi | |
| 77 | - | |
| 78 | - # | |
| 79 | - # Cria link do pacote completo para "latest" | |
| 80 | - # | |
| 81 | - ln -sf $(basename ${FILENAME}) ${DESTDIR}/${1}/${PACKAGE_NAME}-with-gtk-${2}-${1}.exe | |
| 82 | - if [ "$?" != "0" ]; then | |
| 83 | - failed "Erro ao criar o link simbólico" | |
| 84 | - fi | |
| 85 | - | |
| 86 | - fi | |
| 87 | - | |
| 88 | -} | |
| 89 | - | |
| 90 | - | |
| 91 | -# | |
| 92 | -# Gera pacote windows | |
| 93 | -# | |
| 94 | -# $1 = Arquitetura (x86_32/x86_64) | |
| 95 | -# | |
| 96 | -build() | |
| 97 | -{ | |
| 98 | - echo -e "\e]2;${PACKAGE_NAME}-${1}\a" | |
| 99 | - | |
| 100 | - case ${1} in | |
| 101 | - x86_32) | |
| 102 | - host=i686-w64-mingw32 | |
| 103 | - host_cpu=i686 | |
| 104 | - prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
| 105 | - tools=i686-w64-mingw32 | |
| 106 | - ;; | |
| 107 | - | |
| 108 | - x86_64) | |
| 109 | - host=x86_64-w64-mingw32 | |
| 110 | - host_cpu=x86_64 | |
| 111 | - prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
| 112 | - tools=x86_64-w64-mingw32 | |
| 113 | - ;; | |
| 114 | - | |
| 115 | - | |
| 116 | - *) | |
| 117 | - failed "Arquitetura desconhecida: ${1}" | |
| 118 | - | |
| 119 | - esac | |
| 120 | - | |
| 121 | - # Detecto argumentos | |
| 122 | - ARGS="" | |
| 123 | - | |
| 124 | - REXXCONFIG=$(which ${tools}-oorexx-config) | |
| 125 | - if [ -z ${REXXCONFIG} ]; then | |
| 126 | - echo "Desabilitando suporte ooRexx" | |
| 127 | - ARGS="${ARGS} --disable-rexx" | |
| 128 | - fi | |
| 129 | - | |
| 130 | - ./configure \ | |
| 131 | - --cache-file=.${1}.cache \ | |
| 132 | - --host=${host} \ | |
| 133 | - --prefix=${prefix} \ | |
| 134 | - --disable-python \ | |
| 135 | - ${ARGS} | |
| 136 | - | |
| 137 | - if [ "$?" != "0" ]; then | |
| 138 | - failed "Erro ao configurar" | |
| 139 | - fi | |
| 140 | - | |
| 141 | - make clean | |
| 142 | - rm -f *.exe | |
| 143 | - | |
| 144 | - make -C nsi ${PACKAGE_NAME}-${host_cpu}.nsi | |
| 145 | - if [ "$?" != "0" ]; then | |
| 146 | - failed "Erro ao gerar script de empacotamento windows" | |
| 147 | - fi | |
| 148 | - | |
| 149 | - make Release | |
| 150 | - if [ "$?" != "0" ]; then | |
| 151 | - failed "Erro ao compilar fontes" | |
| 152 | - fi | |
| 153 | - | |
| 154 | - ln -sf .${prefix}/share/locale .bin/Release/locale | |
| 155 | - if [ "$?" != "0" ]; then | |
| 156 | - failed "Erro ao criar link para traduções" | |
| 157 | - fi | |
| 158 | - | |
| 159 | - if [ "${COMPLETE}" != "0" ]; then | |
| 160 | - | |
| 161 | - # Gera pacote completo | |
| 162 | - | |
| 163 | - chmod +x makegtkruntime.sh | |
| 164 | - ./makegtkruntime.sh | |
| 165 | - if [ "$?" != "0" ]; then | |
| 166 | - failed "Erro ao construir runtime gtk" | |
| 167 | - fi | |
| 168 | - | |
| 169 | - echo -e "\e]2;${PACKAGE_NAME}-install-${host_cpu}.exe\a" | |
| 170 | - make -C nsi package | |
| 171 | - if [ "$?" != "0" ]; then | |
| 172 | - failed "Erro ao gerar pacote windows" | |
| 173 | - fi | |
| 174 | - | |
| 175 | - fi | |
| 176 | - | |
| 177 | - if [ "${RUNTIME}" != "0" ]; then | |
| 178 | - | |
| 179 | - make -C nsi package-no-gtk | |
| 180 | - if [ "$?" != "0" ]; then | |
| 181 | - failed "Erro ao gerar pacote windows" | |
| 182 | - fi | |
| 183 | - | |
| 184 | - fi | |
| 185 | - | |
| 186 | - CopyPacket ${host_cpu} "latest" | |
| 187 | - | |
| 188 | - make clean | |
| 189 | - rm -f *.exe | |
| 190 | - | |
| 191 | -} | |
| 192 | - | |
| 193 | -myDIR=$(readlink -f $(dirname $0)) | |
| 194 | -TEMPDIR=$(mktemp -d) | |
| 195 | -DESTDIR=${HOME}/public_html/win | |
| 196 | -RUNTIMEDIR=$(mktemp -d) | |
| 197 | -ARCHS="x86_32 x86_64" | |
| 198 | -RUNTIME=1 | |
| 199 | -COMPLETE=1 | |
| 200 | - | |
| 201 | -find . -exec touch {} \; | |
| 202 | - | |
| 203 | -trap cleanup INT | |
| 204 | - | |
| 205 | -until [ -z "$1" ] | |
| 206 | -do | |
| 207 | - if [ ${1:0:2} = '--' ]; then | |
| 208 | - tmp=${1:2} | |
| 209 | - parameter=${tmp%%=*} | |
| 210 | - parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 211 | - | |
| 212 | - case $parameter in | |
| 213 | - | |
| 214 | - 32) | |
| 215 | - ARCHS="x86_32" | |
| 216 | - ;; | |
| 217 | - | |
| 218 | - 64) | |
| 219 | - ARCHS="x86_64" | |
| 220 | - ;; | |
| 221 | - | |
| 222 | - FULL) | |
| 223 | - RUNTIME=0 | |
| 224 | - COMPLETE=1 | |
| 225 | - ;; | |
| 226 | - | |
| 227 | - RT) | |
| 228 | - RUNTIME=1 | |
| 229 | - COMPLETE=0 | |
| 230 | - ;; | |
| 231 | - | |
| 232 | - NAME) | |
| 233 | - PACKAGE_NAME=$value | |
| 234 | - ;; | |
| 235 | - | |
| 236 | - OUT) | |
| 237 | - DESTDIR=$value | |
| 238 | - ;; | |
| 239 | - | |
| 240 | - ARCH) | |
| 241 | - value=${tmp##*=} | |
| 242 | - ARCHS=$value | |
| 243 | - ;; | |
| 244 | - | |
| 245 | - *) | |
| 246 | - value=${tmp##*=} | |
| 247 | - eval $parameter=$value | |
| 248 | - esac | |
| 249 | - | |
| 250 | - fi | |
| 251 | - | |
| 252 | - shift | |
| 253 | -done | |
| 254 | - | |
| 255 | -# Configura | |
| 256 | -aclocal | |
| 257 | -if [ "$?" != "0" ]; then | |
| 258 | - exit -1 | |
| 259 | -fi | |
| 260 | - | |
| 261 | -autoconf | |
| 262 | -if [ "$?" != "0" ]; then | |
| 263 | - exit -1 | |
| 264 | -fi | |
| 265 | - | |
| 266 | -# Gera pacotes | |
| 267 | -for i in ${ARCHS}; do | |
| 268 | - | |
| 269 | - build "${i}" | |
| 270 | - | |
| 271 | -done | |
| 272 | - | |
| 273 | -if [ "${RUNTIME}" == "1" ]; then | |
| 274 | - | |
| 275 | - echo -e "\e]2;Baixando runtime\a" | |
| 276 | - | |
| 277 | - # | |
| 278 | - # Puxo scripts de construção do GTK direto da sourceforge. | |
| 279 | - # | |
| 280 | - cd ${RUNTIMEDIR} | |
| 281 | - git clone http://git.code.sf.net/p/gtk3win/code . | |
| 282 | - if [ "$?" != "0" ]; then | |
| 283 | - exit -1 | |
| 284 | - fi | |
| 285 | - | |
| 286 | - for i in ${ARCHS}; do | |
| 287 | - | |
| 288 | - echo -e "\e]2;gtk-runtime-${i}\a" | |
| 289 | - | |
| 290 | - case ${i} in | |
| 291 | - x86_32) | |
| 292 | - host_cpu=i686 | |
| 293 | - ./win32.sh | |
| 294 | - if [ "$?" != "0" ]; then | |
| 295 | - exit -1 | |
| 296 | - fi | |
| 297 | - ;; | |
| 298 | - | |
| 299 | - x86_64) | |
| 300 | - host_cpu=x86_64 | |
| 301 | - ./win64.sh | |
| 302 | - if [ "$?" != "0" ]; then | |
| 303 | - exit -1 | |
| 304 | - fi | |
| 305 | - ;; | |
| 306 | - | |
| 307 | - *) | |
| 308 | - echo "Arquitetura desconhecida ${i}" | |
| 309 | - exit -1 | |
| 310 | - | |
| 311 | - esac | |
| 312 | - | |
| 313 | - rm -f gtk-runtime-*-${host_cpu}.exe | |
| 314 | - | |
| 315 | - | |
| 316 | - chmod +x ./makeruntime.sh | |
| 317 | - | |
| 318 | - ./makeruntime.sh | |
| 319 | - if [ "$?" != "0" ]; then | |
| 320 | - exit -1 | |
| 321 | - fi | |
| 322 | - | |
| 323 | - # Copia o pacote gerado | |
| 324 | - FILENAME=$(find . -maxdepth 1 -name "gtk-runtime-*-${host_cpu}.exe" | head --lines 1) | |
| 325 | - | |
| 326 | - mkdir -p ${DESTDIR}/${host_cpu} | |
| 327 | - | |
| 328 | - mv gtk-runtime-*-${host_cpu}.exe ${DESTDIR}/${host_cpu} | |
| 329 | - if [ "$?" != "0" ]; then | |
| 330 | - failed "Erro ao copiar instalador" | |
| 331 | - fi | |
| 332 | - | |
| 333 | - ln -sf $(basename ${FILENAME}) "${DESTDIR}/${host_cpu}/gtk-runtime-latest-${host_cpu}.exe" | |
| 334 | - if [ "$?" != "0" ]; then | |
| 335 | - failed "Erro ao criar o link simbólico" | |
| 336 | - fi | |
| 337 | - | |
| 338 | - done | |
| 339 | - | |
| 340 | -fi | |
| 341 | - | |
| 342 | -cd $myDIR | |
| 343 | -rm -fr ${TEMPDIR} | |
| 344 | -rm -fr ${RUNTIMEDIR} | |
| 345 | - | |
| 346 | -# Gera pacotes para envio ao SPB | |
| 347 | -zip -9 -r -j ${HOME}/public_html/win/${PACKAGE_NAME}-latest.zip \ | |
| 348 | - ${HOME}/public_html/win/x86_32/${PACKAGE_NAME}-with-gtk-latest-i686.exe \ | |
| 349 | - ${HOME}/public_html/win/x86_64/${PACKAGE_NAME}-with-gtk-latest-x86_64.exe | |
| 350 | - | |
| 351 | -echo -e "\e]2;Success!\a" | |
| 352 | - | |
| 353 | - | |
| 354 | - | |
| 355 | - |