Commit 25f83172c23fa761fe912db0b710d15f9e312e45
1 parent
a824aaf0
Exists in
master
Incluindo arquivos para empacotamento .deb no git
Showing
7 changed files
with
228 additions
and
88 deletions
Show diff stats
.gitignore
@@ -15,10 +15,15 @@ stamp-h1 | @@ -15,10 +15,15 @@ stamp-h1 | ||
15 | *.zip | 15 | *.zip |
16 | *.tar | 16 | *.tar |
17 | *.bz2 | 17 | *.bz2 |
18 | -rpm | ||
19 | *.pc | 18 | *.pc |
20 | *.depend | 19 | *.depend |
21 | ChangeLog | 20 | ChangeLog |
22 | revision | 21 | revision |
23 | revision.m4 | 22 | revision.m4 |
23 | +BUILD | ||
24 | +BUILDROOT | ||
25 | +RPMS | ||
26 | +SOURCES | ||
27 | +SPECS | ||
28 | +SRPMS | ||
24 | 29 |
Makefile.in
@@ -144,7 +144,6 @@ $(SRCDIR): \ | @@ -144,7 +144,6 @@ $(SRCDIR): \ | ||
144 | @cp *.in $(SRCDIR) | 144 | @cp *.in $(SRCDIR) |
145 | @cp *.cbp $(SRCDIR) | 145 | @cp *.cbp $(SRCDIR) |
146 | @cp *.sh $(SRCDIR) | 146 | @cp *.sh $(SRCDIR) |
147 | - @cp *.spec $(SRCDIR) | ||
148 | @cp README.md $(SRCDIR) | 147 | @cp README.md $(SRCDIR) |
149 | @cp LICENCA $(SRCDIR) | 148 | @cp LICENCA $(SRCDIR) |
150 | @cp LICENSE $(SRCDIR) | 149 | @cp LICENSE $(SRCDIR) |
@@ -152,6 +151,11 @@ $(SRCDIR): \ | @@ -152,6 +151,11 @@ $(SRCDIR): \ | ||
152 | # @$(MKDIR) $(SRCDIR)/testprograms | 151 | # @$(MKDIR) $(SRCDIR)/testprograms |
153 | # @cp testprograms/* $(SRCDIR)/testprograms | 152 | # @cp testprograms/* $(SRCDIR)/testprograms |
154 | 153 | ||
154 | + @cp rpm/*.spec $(SRCDIR) | ||
155 | + | ||
156 | + @$(MKDIR) $(SRCDIR)/debian | ||
157 | + @cp debian/* $(SRCDIR)/debian | ||
158 | + | ||
155 | @$(MKDIR) $(SRCDIR)/scripts | 159 | @$(MKDIR) $(SRCDIR)/scripts |
156 | @cp scripts/* $(SRCDIR)/scripts | 160 | @cp scripts/* $(SRCDIR)/scripts |
157 | 161 |
@@ -0,0 +1,19 @@ | @@ -0,0 +1,19 @@ | ||
1 | +Source: pw3270-plugin-rexx | ||
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, oorexx-dev (>= 4.2.0) | ||
6 | + | ||
7 | +Package: pw3270-plugin-rexx | ||
8 | +Architecture: any | ||
9 | +Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), oorexx (>= 4.2.0), oorexx-extension-pw3270 (= ${binary:Version}) | ||
10 | +Description: REXX script support for pw3270. | ||
11 | + This package provides the plugin for ooRexx script support in pw3270 | ||
12 | + | ||
13 | +Package: oorexx-extension-pw3270 | ||
14 | +Architecture: any | ||
15 | +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx (>= 4.2.0) | ||
16 | +Description: tn3270 REXX library. | ||
17 | + This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. | ||
18 | + | ||
19 | + |
@@ -0,0 +1,106 @@ | @@ -0,0 +1,106 @@ | ||
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 | + | ||
34 | + rm -f debian/*.install | ||
35 | + make clean | ||
36 | + make Release | ||
37 | + # --- end custom part for compiling | ||
38 | + | ||
39 | + touch build-stamp | ||
40 | + | ||
41 | +clean: | ||
42 | + dh_testdir | ||
43 | + dh_testroot | ||
44 | + rm -f build-stamp | ||
45 | + | ||
46 | + # Add here commands to clean up after the build process. | ||
47 | + if [ -e Makefile ]; then make clean ; fi | ||
48 | + # --- end custom part for cleaning up | ||
49 | + | ||
50 | + dh_clean | ||
51 | + | ||
52 | +install: build | ||
53 | + dh_testdir | ||
54 | + dh_testroot | ||
55 | + dh_clean -k | ||
56 | + dh_installdirs | ||
57 | + | ||
58 | + # Install ooRexx extension | ||
59 | + make DESTDIR=$(PWD)/debian/extension install-extension | ||
60 | + | ||
61 | + # Install pw3270's plugin | ||
62 | + make DESTDIR=$(PWD)/debian/plugin install-plugin | ||
63 | + | ||
64 | + # Create updated file lists | ||
65 | + find $(PWD)/debian/extension -type f | sed -e "s@^$(PWD)/debian/extension/@/@g" > $(PWD)/debian/oorexx-extension-pw3270.install | ||
66 | + find $(PWD)/debian/plugin -type f | sed -e "s@^$(PWD)/debian/plugin/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install | ||
67 | + | ||
68 | + | ||
69 | + # --- end custom part for installing | ||
70 | + | ||
71 | +# Build architecture-independent files here. | ||
72 | +binary-indep: build install | ||
73 | + # We have nothing to do by default. | ||
74 | + | ||
75 | +# Build architecture-dependent files here. | ||
76 | +binary-arch: build install | ||
77 | + dh_testdir | ||
78 | + dh_testroot | ||
79 | +# dh_installdebconf | ||
80 | + dh_installdocs | ||
81 | + dh_installexamples | ||
82 | + dh_installmenu | ||
83 | +# dh_installlogrotate | ||
84 | +# dh_installemacsen | ||
85 | +# dh_installpam | ||
86 | +# dh_installmime | ||
87 | +# dh_installinit | ||
88 | + dh_installcron | ||
89 | + dh_installman | ||
90 | + dh_installinfo | ||
91 | +# dh_undocumented | ||
92 | + dh_installchangelogs | ||
93 | + dh_link | ||
94 | + dh_strip | ||
95 | + dh_compress | ||
96 | + dh_fixperms | ||
97 | +# dh_makeshlibs | ||
98 | + dh_installdeb | ||
99 | +# dh_perl | ||
100 | + dh_shlibdeps | ||
101 | + dh_gencontrol | ||
102 | + dh_md5sums | ||
103 | + dh_builddeb | ||
104 | + | ||
105 | +binary: binary-indep binary-arch | ||
106 | +.PHONY: build clean binary-indep binary-arch binary install |
pw3270-plugin-rexx.spec
@@ -1,86 +0,0 @@ | @@ -1,86 +0,0 @@ | ||
1 | -Summary: Plugin module for ooRexx scripts. | ||
2 | -Name: pw3270-plugin-rexx | ||
3 | -Version: 5.1 | ||
4 | -Release: 0 | ||
5 | -License: GPL-2.0 | ||
6 | -Source: %{name}-%{version}.tar.bz2 | ||
7 | -URL: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
8 | -Group: Development/Languages/Rexx | ||
9 | - | ||
10 | -BuildRoot: /var/tmp/%{name}-%{version} | ||
11 | - | ||
12 | -BuildRequires: ooRexx-devel | ||
13 | -BuildRequires: autoconf >= 2.61 | ||
14 | -BuildRequires: automake | ||
15 | -BuildRequires: binutils | ||
16 | -BuildRequires: coreutils | ||
17 | -BuildRequires: gcc-c++ | ||
18 | -BuildRequires: m4 | ||
19 | -BuildRequires: pkgconfig | ||
20 | -BuildRequires: pw3270-devel >= 5.1 | ||
21 | - | ||
22 | -Requires: pw3270 >= 5.1 | ||
23 | -Requires: ooRexx-extension-tn3270 = %{version} | ||
24 | - | ||
25 | -%description | ||
26 | - | ||
27 | -Plugin module for ooRexx plugins in pw3270. | ||
28 | - | ||
29 | -This package provides a pw3270 plugin allowing use o rexx scripts | ||
30 | -directly from pw3270 main window. | ||
31 | - | ||
32 | -%package -n ooRexx-extension-tn3270 | ||
33 | - | ||
34 | -Summary: ooRexx API for tn3270 acesss using pw3270 ou lib3270 | ||
35 | -Group: Development/Languages/Other | ||
36 | -Requires: lib3270 >= 5.1 | ||
37 | -Requires: ooRexx >= 4.2 | ||
38 | - | ||
39 | -%description -n ooRexx-extension-tn3270 | ||
40 | - | ||
41 | -This package provides Rexx class and associated libraries | ||
42 | -allowing rexx scripts to access tn3270e hosts. | ||
43 | - | ||
44 | - | ||
45 | -%prep | ||
46 | - | ||
47 | -%setup | ||
48 | - | ||
49 | -export CFLAGS="$RPM_OPT_FLAGS" | ||
50 | -export CXXFLAGS="$RPM_OPT_FLAGS" | ||
51 | -export FFLAGS="$RPM_OPT_FLAGS" | ||
52 | - | ||
53 | -aclocal | ||
54 | -autoconf | ||
55 | -%configure | ||
56 | - | ||
57 | -# No dev packet | ||
58 | -rm -f $RPM_BUILD_ROOT/%{_libdir}/librx3270.so | ||
59 | - | ||
60 | -%build | ||
61 | -make clean | ||
62 | -make Release | ||
63 | - | ||
64 | -%install | ||
65 | -rm -rf $RPM_BUILD_ROOT | ||
66 | - | ||
67 | -%makeinstall | ||
68 | - | ||
69 | -%fdupes $RPM_BUILD_ROOT | ||
70 | - | ||
71 | -%clean | ||
72 | -rm -rf $RPM_BUILD_ROOT | ||
73 | - | ||
74 | -%files | ||
75 | -%defattr(-,root,root) | ||
76 | -%{_libdir}/pw3270-plugins/prx3270.so | ||
77 | -%{_datadir}/pw3270/ui/80rexx.xml | ||
78 | - | ||
79 | -%files -n ooRexx-extension-tn3270 | ||
80 | -%{_libdir}/librx3270.* | ||
81 | -%{_datadir}/ooRexx/rx3270.cls | ||
82 | - | ||
83 | - | ||
84 | -%changelog | ||
85 | - | ||
86 | - |
@@ -0,0 +1,86 @@ | @@ -0,0 +1,86 @@ | ||
1 | +Summary: Plugin module for ooRexx scripts. | ||
2 | +Name: pw3270-plugin-rexx | ||
3 | +Version: 5.1 | ||
4 | +Release: 0 | ||
5 | +License: GPL-2.0 | ||
6 | +Source: %{name}-%{version}.tar.bz2 | ||
7 | +URL: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
8 | +Group: Development/Languages/Rexx | ||
9 | + | ||
10 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
11 | + | ||
12 | +BuildRequires: ooRexx-devel | ||
13 | +BuildRequires: autoconf >= 2.61 | ||
14 | +BuildRequires: automake | ||
15 | +BuildRequires: binutils | ||
16 | +BuildRequires: coreutils | ||
17 | +BuildRequires: gcc-c++ | ||
18 | +BuildRequires: m4 | ||
19 | +BuildRequires: pkgconfig | ||
20 | +BuildRequires: pw3270-devel >= 5.1 | ||
21 | + | ||
22 | +Requires: pw3270 >= 5.1 | ||
23 | +Requires: ooRexx-extension-tn3270 = %{version} | ||
24 | + | ||
25 | +%description | ||
26 | + | ||
27 | +Plugin module for ooRexx plugins in pw3270. | ||
28 | + | ||
29 | +This package provides a pw3270 plugin allowing use o rexx scripts | ||
30 | +directly from pw3270 main window. | ||
31 | + | ||
32 | +%package -n ooRexx-extension-tn3270 | ||
33 | + | ||
34 | +Summary: ooRexx API for tn3270 acesss using pw3270 ou lib3270 | ||
35 | +Group: Development/Languages/Other | ||
36 | +Requires: lib3270 >= 5.1 | ||
37 | +Requires: ooRexx >= 4.2 | ||
38 | + | ||
39 | +%description -n ooRexx-extension-tn3270 | ||
40 | + | ||
41 | +This package provides Rexx class and associated libraries | ||
42 | +allowing rexx scripts to access tn3270e hosts. | ||
43 | + | ||
44 | + | ||
45 | +%prep | ||
46 | + | ||
47 | +%setup | ||
48 | + | ||
49 | +export CFLAGS="$RPM_OPT_FLAGS" | ||
50 | +export CXXFLAGS="$RPM_OPT_FLAGS" | ||
51 | +export FFLAGS="$RPM_OPT_FLAGS" | ||
52 | + | ||
53 | +aclocal | ||
54 | +autoconf | ||
55 | +%configure | ||
56 | + | ||
57 | +# No dev packet | ||
58 | +rm -f $RPM_BUILD_ROOT/%{_libdir}/librx3270.so | ||
59 | + | ||
60 | +%build | ||
61 | +make clean | ||
62 | +make Release | ||
63 | + | ||
64 | +%install | ||
65 | +rm -rf $RPM_BUILD_ROOT | ||
66 | + | ||
67 | +%makeinstall | ||
68 | + | ||
69 | +%fdupes $RPM_BUILD_ROOT | ||
70 | + | ||
71 | +%clean | ||
72 | +rm -rf $RPM_BUILD_ROOT | ||
73 | + | ||
74 | +%files | ||
75 | +%defattr(-,root,root) | ||
76 | +%{_libdir}/pw3270-plugins/prx3270.so | ||
77 | +%{_datadir}/pw3270/ui/80rexx.xml | ||
78 | + | ||
79 | +%files -n ooRexx-extension-tn3270 | ||
80 | +%{_libdir}/librx3270.* | ||
81 | +%{_datadir}/ooRexx/rx3270.cls | ||
82 | + | ||
83 | + | ||
84 | +%changelog | ||
85 | + | ||
86 | + |