Commit 5e275983930c8b5dc3e8cdde2953d88506b8b9c2
1 parent
0c5f3601
Exists in
master
and in
1 other branch
Adding "deb" files, updating package.
Showing
7 changed files
with
159 additions
and
3 deletions
Show diff stats
@@ -0,0 +1,35 @@ | @@ -0,0 +1,35 @@ | ||
1 | +Source: libv3270 | ||
2 | +Section: unknown | ||
3 | +Priority: optional | ||
4 | +Maintainer: Perry Werneck <perry.werneck@gmail.com> | ||
5 | +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, libssl-dev, libssl-dev, lib3270-5.2-dev, libgtk-3-dev, imagemagick | ||
6 | + | ||
7 | +Package: libv3270 | ||
8 | +Architecture: any | ||
9 | +Section: libs | ||
10 | +Depends: ${shlibs:Depends}, ${misc:Depends} | ||
11 | +Provides: libv3270 (= ${binary:Version}), libv3270-5.2 (= ${binary:Version}) | ||
12 | +Description: TN3270 Access library. | ||
13 | + 3270 Virtual Terminal for GTK. | ||
14 | + | ||
15 | +Package: libv3270-dev | ||
16 | +Architecture: any | ||
17 | +Section: libdevel | ||
18 | +Depends: ${misc:Depends}, pkg-config, lib3270-dev, libv3270-5.2 (= ${binary:Version}) | ||
19 | +Provides: libv3270-5.2-dev | ||
20 | +Description: TN3270 Access library development files. | ||
21 | + 3270 Virtual Terminal for GTK development files. | ||
22 | + | ||
23 | +Package: libv3270-glade | ||
24 | +Architecture: any | ||
25 | +Section: libdevel | ||
26 | +Depends: ${misc:Depends}, libv3270-5.2-dev (= ${binary:Version}) | ||
27 | +Description: Glade files for v3270 library. | ||
28 | + Glade files for 3270 Virtual Terminal for GTK. | ||
29 | + | ||
30 | +Package: libv3270-dbg | ||
31 | +Architecture: any | ||
32 | +Depends: ${misc:Depends}, libv3270-5.2-dev (= ${binary:Version}) | ||
33 | +Description: Debugging symbols for GTK 3270 virtual terminal | ||
34 | + This package contains the debugging symbols for libv3270. | ||
35 | + |
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
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=9 | ||
10 | + | ||
11 | +# Name of the package | ||
12 | +PACKAGE_NAME=libv3270 | ||
13 | + | ||
14 | +CFLAGS = -g | ||
15 | +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
16 | +CFLAGS += -O0 | ||
17 | +else | ||
18 | +CFLAGS += -O2 | ||
19 | +endif | ||
20 | + | ||
21 | +build: build-stamp | ||
22 | +build-stamp: | ||
23 | + dh_testdir | ||
24 | + | ||
25 | + # Add here commands to compile the package. | ||
26 | + aclocal | ||
27 | + autoconf | ||
28 | + | ||
29 | + mkdir -p scripts | ||
30 | + automake --add-missing 2> /dev/null | true | ||
31 | + | ||
32 | + ./configure --prefix=/usr | ||
33 | + make all | ||
34 | + # --- end custom part for compiling | ||
35 | + | ||
36 | + touch build-stamp | ||
37 | + | ||
38 | +clean: | ||
39 | + dh_testdir | ||
40 | + dh_testroot | ||
41 | + rm -f build-stamp | ||
42 | + | ||
43 | + # Add here commands to clean up after the build process. | ||
44 | + if [ -e Makefile ]; then make clean ; fi | ||
45 | + # --- end custom part for cleaning up | ||
46 | + | ||
47 | + dh_clean | ||
48 | + | ||
49 | +install: build | ||
50 | + dh_testdir | ||
51 | + dh_testroot | ||
52 | + dh_clean -k | ||
53 | + dh_installdirs | ||
54 | + | ||
55 | + # Build package | ||
56 | + make all | ||
57 | + | ||
58 | + # Install libv3270 | ||
59 | + make DESTDIR=$(PWD)/debian/libv3270 install-shared | ||
60 | + find $(PWD)/debian/libv3270 -type f | sed -e "s@^$(PWD)/debian/libv3270/@/@g" > $(PWD)/debian/libv3270.install | ||
61 | + | ||
62 | + # Install glade | ||
63 | + make DESTDIR=$(PWD)/debian/libv3270-glade install-glade | ||
64 | + find $(PWD)/debian/libv3270-glade -type f | sed -e "s@^$(PWD)/debian/libv3270-glade/@/@g" > $(PWD)/debian/libv3270-glade.install | ||
65 | + | ||
66 | + # Install dev | ||
67 | + make DESTDIR=$(PWD)/debian/libv3270-dev install-dev | ||
68 | + find $(PWD)/debian/libv3270-dev -type f | sed -e "s@^$(PWD)/debian/libv3270-dev/@/@g" > $(PWD)/debian/libv3270-dev.install | ||
69 | + | ||
70 | + # --- end custom part for installing | ||
71 | + | ||
72 | +# Build architecture-independent files here. | ||
73 | +binary-indep: build install | ||
74 | + # We have nothing to do by default. | ||
75 | + | ||
76 | +# Build architecture-dependent files here. | ||
77 | +binary-arch: build install | ||
78 | + dh_testdir | ||
79 | + dh_testroot | ||
80 | +# dh_installdebconf | ||
81 | + dh_installdocs AUTHORS LICENSE README.md | ||
82 | + dh_installexamples | ||
83 | + dh_installmenu | ||
84 | +# dh_installlogrotate | ||
85 | +# dh_installemacsen | ||
86 | +# dh_installpam | ||
87 | +# dh_installmime | ||
88 | +# dh_installinit | ||
89 | + dh_installcron | ||
90 | + dh_installman | ||
91 | + dh_installinfo | ||
92 | +# dh_undocumented | ||
93 | + dh_installchangelogs | ||
94 | + dh_link | ||
95 | + dh_strip --dbg-package=libv3270-dbg | ||
96 | + dh_compress | ||
97 | + dh_fixperms | ||
98 | + dh_makeshlibs | ||
99 | + dh_installdeb | ||
100 | +# dh_perl | ||
101 | + dh_shlibdeps | ||
102 | + dh_gencontrol | ||
103 | + dh_md5sums | ||
104 | + dh_builddeb | ||
105 | + | ||
106 | +binary: binary-indep binary-arch | ||
107 | +.PHONY: build clean binary-indep binary-arch binary install |
rpm/_service
@@ -5,18 +5,17 @@ | @@ -5,18 +5,17 @@ | ||
5 | <param name="changesgenerate">enable</param> | 5 | <param name="changesgenerate">enable</param> |
6 | <param name="sslverify">disable</param> | 6 | <param name="sslverify">disable</param> |
7 | <param name="versionformat">%ct</param> | 7 | <param name="versionformat">%ct</param> |
8 | - <!-- param name="version">5.2</param --> | ||
9 | <param name="url">https://softwarepublico.gov.br/gitlab/pw3270/libv3270.git</param> | 8 | <param name="url">https://softwarepublico.gov.br/gitlab/pw3270/libv3270.git</param> |
10 | <param name="scm">git</param> | 9 | <param name="scm">git</param> |
11 | <param name="filename">libv3270-5_2</param> | 10 | <param name="filename">libv3270-5_2</param> |
12 | </service> | 11 | </service> |
13 | 12 | ||
14 | <!-- https://github.com/openSUSE/obs-service-extract_file --> | 13 | <!-- https://github.com/openSUSE/obs-service-extract_file --> |
15 | - <service name="extract_file"> | 14 | + <!-- service name="extract_file"> |
16 | <param name="archive">*.tar</param> | 15 | <param name="archive">*.tar</param> |
17 | <param name="files">*/rpm/libv3270.spec</param> | 16 | <param name="files">*/rpm/libv3270.spec</param> |
18 | <param name="outfilename">libv3270-5_2.spec</param> | 17 | <param name="outfilename">libv3270-5_2.spec</param> |
19 | - </service> | 18 | + </service --> |
20 | 19 | ||
21 | <service name="recompress"> | 20 | <service name="recompress"> |
22 | <param name="file">*.tar</param> | 21 | <param name="file">*.tar</param> |
v3270.cbp
@@ -62,6 +62,9 @@ | @@ -62,6 +62,9 @@ | ||
62 | <Unit filename="src/v3270/accessible.c"> | 62 | <Unit filename="src/v3270/accessible.c"> |
63 | <Option compilerVar="CC" /> | 63 | <Option compilerVar="CC" /> |
64 | </Unit> | 64 | </Unit> |
65 | + <Unit filename="src/v3270/blink.c"> | ||
66 | + <Option compilerVar="CC" /> | ||
67 | + </Unit> | ||
65 | <Unit filename="src/v3270/charset.c"> | 68 | <Unit filename="src/v3270/charset.c"> |
66 | <Option compilerVar="CC" /> | 69 | <Option compilerVar="CC" /> |
67 | </Unit> | 70 | </Unit> |