Commit ab2468d0cff36c680bee9f571b83263883d53489

Authored by Perry Werneck
1 parent 29ae7416
Exists in master

Atualizando empacotamento

@@ -15,7 +15,6 @@ stamp-h1 @@ -15,7 +15,6 @@ stamp-h1
15 *.zip 15 *.zip
16 *.tar 16 *.tar
17 *.bz2 17 *.bz2
18 -rpm  
19 *.depend 18 *.depend
20 ChangeLog 19 ChangeLog
21 revision 20 revision
@@ -23,3 +22,10 @@ revision.m4 @@ -23,3 +22,10 @@ revision.m4
23 *.ini 22 *.ini
24 jni3270.h 23 jni3270.h
25 doc 24 doc
  25 +rpm/BUILD
  26 +rpm/BUILDROOT
  27 +rpm/RPMS
  28 +rpm/SOURCES
  29 +rpm/SPECS
  30 +rpm/SRPMS
  31 +
@@ -174,10 +174,13 @@ $(SRCDIR): \ @@ -174,10 +174,13 @@ $(SRCDIR): \
174 @cp *.in $(SRCDIR) 174 @cp *.in $(SRCDIR)
175 @cp *.cbp $(SRCDIR) 175 @cp *.cbp $(SRCDIR)
176 @cp *.sh $(SRCDIR) 176 @cp *.sh $(SRCDIR)
177 - @cp *.spec $(SRCDIR)  
178 @cp README.md $(SRCDIR) 177 @cp README.md $(SRCDIR)
179 @cp LICENCA $(SRCDIR) 178 @cp LICENCA $(SRCDIR)
180 @cp LICENSE $(SRCDIR) 179 @cp LICENSE $(SRCDIR)
  180 + @cp rpm/*.spec $(SRCDIR)
  181 +
  182 + @$(MKDIR) $(SRCDIR)/debian
  183 + @cp debian/* $(SRCDIR)/debian
181 184
182 @$(MKDIR) $(SRCDIR)/testprograms 185 @$(MKDIR) $(SRCDIR)/testprograms
183 @cp testprograms/* $(SRCDIR)/testprograms 186 @cp testprograms/* $(SRCDIR)/testprograms
debian/changelog 0 → 100644
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
  1 +pw3270-plugin-java (5.1-0) unstable; urgency=low
  2 +
  3 + * Unstable release
  4 +
  5 + -- Perry Werneck <perry.werneck@gmail.com> Thu, 19 Apr 2016 17:38:00 -0300
  6 +
debian/control 0 → 100644
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
  1 +Source: pw3270-plugin-java
  2 +Section: unknown
  3 +Priority: optional
  4 +Maintainer: Perry Werneck <perry.werneck@gmail.com>
  5 +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, libgtk-3-dev, pw3270-dev, default-jdk
  6 +
  7 +Package: pw3270-plugin-java
  8 +Architecture: any
  9 +Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), pw3270-java (= ${binary:Version})
  10 +Description: Java support for pw3270.
  11 + This package provides a plugin allowing calling of java classes from pw3270 application.
  12 +
  13 +Package: pw3270-java
  14 +Architecture: any
  15 +Depends: ${misc:Depends}, lib3270 (= ${binary:Version})
  16 +Description: Java class for acessing 3270 hosts.
  17 + This package provides a Java class for acessing 3270 hosts.
  18 +
  19 +Package: pw3270-javadoc
  20 +Architecture: any
  21 +Depends: ${misc:Depends}, pw3270-java (= ${binary:Version})
  22 +Description: Javadoc for pw3270.
  23 + API Documentation for pw3270.
  24 +
debian/pw3270-plugin-java.dsc 0 → 100644
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +Format: 1.0
  2 +Source: pw3270-plugin-java
  3 +Version: 5.1-1
  4 +Binary: pw3270-plugin-java
  5 +Maintainer: Perry Werneck <perry.werneck@gmail.com>
  6 +Architecture: any
  7 +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, libgtk-3-dev, pw3270-dev, default-jdk
  8 +Standards-Version: 3.9.1.0
  9 +DEBTRANSFORM-RELEASE: 1
  10 +Files:
  11 + 00000000000000000000000000000000 000000 pw3270-plugin-java-5.1.tar.gz
  12 +
  13 +
debian/rules 0 → 100644
@@ -0,0 +1,115 @@ @@ -0,0 +1,115 @@
  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 +CFLAGS = -g
  12 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  13 +CFLAGS += -O0
  14 +else
  15 +CFLAGS += -O2
  16 +endif
  17 +
  18 +build: build-stamp
  19 +build-stamp:
  20 + dh_testdir
  21 +
  22 + set
  23 +
  24 + echo "m4_define([SVN_REVISION], 0)" > revision.m4
  25 + echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4
  26 + echo "m4_define([APP_LEVEL], 0)" >> revision.m4
  27 +
  28 + # Add here commands to compile the package.
  29 + aclocal
  30 + autoconf
  31 +
  32 + ./configure \
  33 + JRE_HOME="`readlink -f /usr/bin/java | sed "s@bin/java@@"`" \
  34 + JDK_HOME="`readlink -f /usr/bin/javac | sed "s@bin/javac@@"`" \
  35 +
  36 +
  37 + rm -f debian/*.install
  38 + make clean
  39 + make Release
  40 + # --- end custom part for compiling
  41 +
  42 + touch build-stamp
  43 +
  44 +clean:
  45 + dh_testdir
  46 + dh_testroot
  47 + rm -f build-stamp
  48 +
  49 + # Add here commands to clean up after the build process.
  50 + if [ -e Makefile ]; then make clean ; fi
  51 + # --- end custom part for cleaning up
  52 +
  53 + dh_clean
  54 +
  55 +install: build
  56 + dh_testdir
  57 + dh_testroot
  58 + dh_clean -k
  59 + dh_installdirs
  60 +
  61 + # Install Java plugin
  62 + make DESTDIR=$(PWD)/debian/pw3270-plugin-java BINDIR=../../.bin install-plugin
  63 +
  64 + # Install Java extension
  65 + make DESTDIR=$(PWD)/debian/pw3270-java BINDIR=../../.bin install-jni
  66 +
  67 + # Install Javadoc
  68 + make DESTDIR=$(PWD)/debian/pw3270-javadoc BINDIR=../../.bin install-doc
  69 +
  70 + # Create updated file lists
  71 + find $(PWD)/debian/pw3270-plugin-java -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-java/@/@g" > $(PWD)/debian/pw3270-plugin-java.install
  72 +
  73 + find $(PWD)/debian/pw3270-plugin-javadoc -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-java/@/@g" > $(PWD)/debian/pw3270-javadoc.install
  74 +
  75 + find $(PWD)/debian/pw3270-java -type f | sed -e "s@^$(PWD)/debian/pw3270-java/@/@g" > $(PWD)/debian/pw3270-java.install
  76 +
  77 +
  78 + # --- end custom part for installing
  79 +
  80 +# Build architecture-independent files here.
  81 +binary-indep: build install
  82 + # We have nothing to do by default.
  83 +
  84 +# Build architecture-dependent files here.
  85 +binary-arch: build install
  86 + dh_testdir
  87 + dh_testroot
  88 +# dh_installdebconf
  89 + dh_installdocs
  90 + dh_installexamples
  91 + dh_installmenu
  92 +# dh_installlogrotate
  93 +# dh_installemacsen
  94 +# dh_installpam
  95 +# dh_installmime
  96 +# dh_installinit
  97 + dh_installcron
  98 + dh_installman
  99 + dh_installinfo
  100 +# dh_undocumented
  101 + dh_installchangelogs
  102 + dh_link
  103 + dh_strip
  104 + dh_compress
  105 + dh_fixperms
  106 +# dh_makeshlibs
  107 + dh_installdeb
  108 +# dh_perl
  109 +# dh_shlibdeps
  110 + dh_gencontrol
  111 + dh_md5sums
  112 + dh_builddeb
  113 +
  114 +binary: binary-indep binary-arch
  115 +.PHONY: build clean binary-indep binary-arch binary install
pw3270-plugin-java.spec
@@ -1,119 +0,0 @@ @@ -1,119 +0,0 @@
1 -#  
2 -# spec file for package pw3270-plugin-java  
3 -#  
4 -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.  
5 -# Copyright (C) <2008> <Banco do Brasil S.A.>  
6 -#  
7 -# All modifications and additions to the file contributed by third parties  
8 -# remain the property of their copyright owners, unless otherwise agreed  
9 -# upon. The license for this file, and modifications and additions to the  
10 -# file, is the same license as for the pristine package itself (unless the  
11 -# license for the pristine package is not an Open Source License, in which  
12 -# case the license is the MIT License). An "Open Source License" is a  
13 -# license that conforms to the Open Source Definition (Version 1.9)  
14 -# published by the Open Source Initiative.  
15 -  
16 -# Please submit bugfixes or comments via http://bugs.opensuse.org/  
17 -#  
18 -Summary: Plugin module for embedding java on pw3270.  
19 -Name: pw3270-plugin-java  
20 -Version: 5.1  
21 -Release: 0  
22 -License: GPL-2.0  
23 -Source: %{name}-%{version}.tar.bz2  
24 -URL: https://portal.softwarepublico.gov.br/social/pw3270/  
25 -Group: Development/Languages/Java  
26 -  
27 -BuildRoot: /var/tmp/%{name}-%{version}  
28 -  
29 -BuildRequires: autoconf >= 2.61  
30 -BuildRequires: automake  
31 -BuildRequires: binutils  
32 -BuildRequires: coreutils  
33 -BuildRequires: gcc-c++  
34 -BuildRequires: m4  
35 -BuildRequires: pkgconfig  
36 -BuildRequires: pw3270-devel >= 5.1  
37 -  
38 -BuildRequires: java-devel  
39 -BuildRequires: javapackages-tools  
40 -  
41 -Requires: pw3270 >= 5.1  
42 -Requires: java-extension-tn3270 = %{version}  
43 -  
44 -%description  
45 -  
46 -Plugin module for java plugins in pw3270.  
47 -  
48 -This package provides a pw3270 plugin allowing use o rexx scripts  
49 -directly from pw3270 main window.  
50 -  
51 -%package -n pw3270-java  
52 -  
53 -Summary: Java class to interact with pw3270  
54 -Group: Development/Libraries/Java  
55 -Requires: lib3270 >= 5.1  
56 -Requires: java >= 4.2  
57 -  
58 -%description -n pw3270-java  
59 -  
60 -This package provides Java class for lib3270/pw3270 interaction.  
61 -  
62 -%package -n pw3270-java-doc  
63 -Summary: Javadoc for %{name}  
64 -Group: Documentation  
65 -Requires: jpackage-utils  
66 -  
67 -%description -n pw3270-java-doc  
68 -API documentation for %{name}.  
69 -  
70 -%prep  
71 -  
72 -%setup  
73 -  
74 -export CFLAGS="$RPM_OPT_FLAGS"  
75 -export CXXFLAGS="$RPM_OPT_FLAGS"  
76 -export FFLAGS="$RPM_OPT_FLAGS"  
77 -export JAVA_HOME=%{java_home}  
78 -  
79 -aclocal  
80 -autoconf  
81 -  
82 -%configure --with-jnidir="%{_jnidir}" \  
83 - --with-jvmjardir="%{_jvmjardir}" \  
84 - --with-javadocdir="%{_javadocdir}"  
85 -  
86 -%build  
87 -make clean  
88 -make Release  
89 -  
90 -%install  
91 -rm -rf $RPM_BUILD_ROOT  
92 -  
93 -%makeinstall  
94 -  
95 -%fdupes $RPM_BUILD_ROOT  
96 -  
97 -%clean  
98 -rm -rf $RPM_BUILD_ROOT  
99 -  
100 -%files  
101 -%defattr(-,root,root)  
102 -%{_libdir}/pw3270-plugins/j3270.so  
103 -  
104 -%files -n pw3270-java  
105 -%defattr(-,root,root)  
106 -%dir %{_jnidir}  
107 -%dir %{_jvmjardir}  
108 -  
109 -%{_jnidir}/libjni3270.so  
110 -%{_jvmjardir}/pw3270.jar  
111 -  
112 -%files -n pw3270-java-doc  
113 -%defattr(-,root,root)  
114 -%dir %{_javadocdir}/pw3270  
115 -%{_javadocdir}/pw3270/*  
116 -  
117 -%changelog  
118 -  
119 -  
rpm/pw3270-plugin-java.spec 0 → 100644
@@ -0,0 +1,119 @@ @@ -0,0 +1,119 @@
  1 +#
  2 +# spec file for package pw3270-plugin-java
  3 +#
  4 +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
  5 +# Copyright (C) <2008> <Banco do Brasil S.A.>
  6 +#
  7 +# All modifications and additions to the file contributed by third parties
  8 +# remain the property of their copyright owners, unless otherwise agreed
  9 +# upon. The license for this file, and modifications and additions to the
  10 +# file, is the same license as for the pristine package itself (unless the
  11 +# license for the pristine package is not an Open Source License, in which
  12 +# case the license is the MIT License). An "Open Source License" is a
  13 +# license that conforms to the Open Source Definition (Version 1.9)
  14 +# published by the Open Source Initiative.
  15 +
  16 +# Please submit bugfixes or comments via http://bugs.opensuse.org/
  17 +#
  18 +Summary: Plugin module for embedding java on pw3270.
  19 +Name: pw3270-plugin-java
  20 +Version: 5.1
  21 +Release: 0
  22 +License: GPL-2.0
  23 +Source: %{name}-%{version}.tar.bz2
  24 +URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270-java
  25 +Group: Development/Languages/Java
  26 +
  27 +BuildRoot: /var/tmp/%{name}-%{version}
  28 +
  29 +BuildRequires: autoconf >= 2.61
  30 +BuildRequires: automake
  31 +BuildRequires: binutils
  32 +BuildRequires: coreutils
  33 +BuildRequires: gcc-c++
  34 +BuildRequires: m4
  35 +BuildRequires: pkgconfig
  36 +BuildRequires: pkgconfig(pw3270) >= 5.1
  37 +
  38 +BuildRequires: java-devel
  39 +BuildRequires: javapackages-tools
  40 +
  41 +Requires: pw3270 >= 5.1
  42 +Requires: java-extension-tn3270 = %{version}
  43 +
  44 +%description
  45 +
  46 +Plugin module for java plugins in pw3270.
  47 +
  48 +This package provides a pw3270 plugin allowing use o rexx scripts
  49 +directly from pw3270 main window.
  50 +
  51 +%package -n pw3270-java
  52 +
  53 +Summary: Java class to interact with pw3270
  54 +Group: Development/Libraries/Java
  55 +Requires: lib3270 >= 5.1
  56 +Requires: java >= 4.2
  57 +
  58 +%description -n pw3270-java
  59 +
  60 +This package provides Java class for lib3270/pw3270 interaction.
  61 +
  62 +%package -n pw3270-java-doc
  63 +Summary: Javadoc for %{name}
  64 +Group: Documentation
  65 +Requires: jpackage-utils
  66 +
  67 +%description -n pw3270-java-doc
  68 +API documentation for %{name}.
  69 +
  70 +%prep
  71 +
  72 +%setup
  73 +
  74 +export CFLAGS="$RPM_OPT_FLAGS"
  75 +export CXXFLAGS="$RPM_OPT_FLAGS"
  76 +export FFLAGS="$RPM_OPT_FLAGS"
  77 +export JAVA_HOME=%{java_home}
  78 +
  79 +aclocal
  80 +autoconf
  81 +
  82 +%configure --with-jnidir="%{_jnidir}" \
  83 + --with-jvmjardir="%{_jvmjardir}" \
  84 + --with-javadocdir="%{_javadocdir}"
  85 +
  86 +%build
  87 +make clean
  88 +make Release
  89 +
  90 +%install
  91 +rm -rf $RPM_BUILD_ROOT
  92 +
  93 +%makeinstall
  94 +
  95 +%fdupes $RPM_BUILD_ROOT
  96 +
  97 +%clean
  98 +rm -rf $RPM_BUILD_ROOT
  99 +
  100 +%files
  101 +%defattr(-,root,root)
  102 +%{_libdir}/pw3270-plugins/j3270.so
  103 +
  104 +%files -n pw3270-java
  105 +%defattr(-,root,root)
  106 +%dir %{_jnidir}
  107 +%dir %{_jvmjardir}
  108 +
  109 +%{_jnidir}/libjni3270.so
  110 +%{_jvmjardir}/pw3270.jar
  111 +
  112 +%files -n pw3270-java-doc
  113 +%defattr(-,root,root)
  114 +%dir %{_javadocdir}/pw3270
  115 +%{_javadocdir}/pw3270/*
  116 +
  117 +%changelog
  118 +
  119 +