Skip to content

Commit

Permalink
Refactoring deb packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
PerryWerneck committed Dec 6, 2024
1 parent 0400aa5 commit 5774666
Show file tree
Hide file tree
Showing 9 changed files with 174 additions and 1 deletion.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
libv3270 (5.4-0) unstable; urgency=low

* Initial Release

-- Perry Werneck <perry.werneck@gmail.com> Wed, 2 May 2012 15:20:56 -0300


2 changes: 2 additions & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
9

35 changes: 35 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Source: libv3270
Section: unknown
Priority: optional
Maintainer: Perry Werneck <perry.werneck@gmail.com>
Build-Depends: debhelper (>= 7), meson, gettext, pkg-config, lib3270-dev, libgtk-3-dev, imagemagick

Package: libv3270
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Provides: libv3270 (= ${binary:Version}), libv3270 (= 5.4)
Description: TN3270 Access library.
3270 Virtual Terminal for GTK.

Package: libv3270-dev
Architecture: any
Section: libdevel
Depends: ${misc:Depends}, pkg-config, libgtk-3-dev, lib3270-dev, libv3270 (= ${binary:Version})
Provides: libv3270-dev (= ${binary:Version})
Description: TN3270 Access library development files.
3270 Virtual Terminal for GTK development files.

Package: libv3270-glade
Architecture: any
Section: libdevel
Depends: ${misc:Depends}, libv3270-dev (= ${binary:Version})
Description: Glade files for v3270 library.
Glade files for 3270 Virtual Terminal for GTK.

Package: libv3270-dbg
Architecture: any
Depends: libv3270 (= ${binary:Version})
Description: Debugging symbols for GTK 3270 virtual terminal
This package contains the debugging symbols for libv3270.

11 changes: 11 additions & 0 deletions debian/lib3270.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Format: 1.0
Source: libv3270
Version: 5.4-0
Binary: libv3270
Maintainer: Perry Werneck <perry.werneck@gmail.com>
Architecture: any
Build-Depends: debhelper (>= 7), meson, pkg-config, gettext, lib3270-dev, libgtk-3-dev, imagemagick
Standards-Version: 3.9.1.0
DEBTRANSFORM-RELEASE: 1
Files:
00000000000000000000000000000000 000000 libv3270-5.4.tar.bz2
13 changes: 13 additions & 0 deletions debian/libv3270.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Format: 1.0
Source: libv3270
Version: 5.4-0
Binary: libv3270
Maintainer: Perry Werneck <perry.werneck@gmail.com>
Architecture: any
Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, pkg-config, gettext, libssl-dev, lib3270-dev, libgtk-3-dev, imagemagick
Standards-Version: 3.9.1.0
DEBTRANSFORM-RELEASE: 1
Files:
00000000000000000000000000000000 000000 libv3270-5.4.tar.bz2


3 changes: 3 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
/sbin/ldconfig

3 changes: 3 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
/sbin/ldconfig

99 changes: 99 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# This is the debhelper compatibility version to use.
export DH_COMPAT=9

# Name of the package
PACKAGE_NAME=libv3270

CFLAGS = -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif

build: build-stamp
build-stamp:
dh_testdir

# Add here commands to compile the package.
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr
make all
# --- end custom part for compiling

touch build-stamp

clean:
dh_testdir
dh_testroot
rm -f build-stamp

# Add here commands to clean up after the build process.
if [ -e Makefile ]; then make clean ; fi
# --- end custom part for cleaning up

dh_clean

install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs

# Build package
make all

# Install library
make DESTDIR=$(PWD)/debian/$(PACKAGE_NAME) install-linux-lib

# Install dev
make DESTDIR=$(PWD)/debian/$(PACKAGE_NAME)-dev install-dev

# Install glade
make DESTDIR=$(PWD)/debian/libv3270-glade install-glade

# --- end custom part for installing

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs AUTHORS LICENSE README.md
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip --dbg-package=$(PACKAGE_NAME)-dbg
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
2 changes: 1 addition & 1 deletion rpm/libv3270.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


Name: libv3270
Version: 5.5.0
Version: 5.4+git20240219
Release: 0
Summary: 3270 Virtual Terminal for GTK
License: LGPL-3.0-only
Expand Down

0 comments on commit 5774666

Please sign in to comment.