diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..b44bb6a --- /dev/null +++ b/debian/README.source @@ -0,0 +1,17 @@ +The chmlib package uses quilt to maintain local changes to the chmlib +distribution. The Debian-specific patches are maintained in the debian/patches/ +directory. + +To apply all the patches, preparing the source for building, use: + debian/rules patch + +To revert the patches, preparing to build a source package, use: + debian/rules unpatch + +You do not need to manually execute these targets when building the package; +they are part of the debian/rules target chain. + +For more information on the quilt integration with Debian packages, as well as +editing, adding or removing patches, please see the quilt documentation; in +recent versions of the Debian package of quilt: + /usr/share/doc/quilt/README.source diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4ce37c8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +chmlib (2:0.40a-8ok1build1) yangtze; urgency=medium + + * Build for openkylin. + + -- rtlhq Tue, 13 Sep 2022 15:49:05 +0800 diff --git a/debian/chm_http.1 b/debian/chm_http.1 new file mode 100644 index 0000000..96f58fa --- /dev/null +++ b/debian/chm_http.1 @@ -0,0 +1,30 @@ +.TH chm_http 1 "2007-04-05" "" "" +.SH NAME +chm_http \- Simplistic web server to allow browsing of chm files without +extracting them. +.SH SYNOPSIS +.B chm_http +[\fIOPTION\fR]... [\fIFILE\fR]... +.SH DESCRIPTION +.PP +chm_http sets up a simplistic webserver that allows you to view the specified +chm file through a regular web browser, without extracting them. In the words of +the author it's "probably badly broken", so use it with caution. +.PP +.SH USAGE +chm_http [\-\-port=PORT] [\-\-bind=IP] +.SH OPTIONS +.TP +\fB\-\-port=\fIPORT\fR +PORT Specify the port for server +.TP +\fB\-\-bind=\fIIP_ADDRESS\fR +Bind the server with IP ADDRESS +.SH SEE ALSO +Website: +.SH AUTHOR +chm_http was written by Jed Wing +.PP +This manual page was written by Bymin Cutler and +formatted by Kartik Mistry , for the Debian project +(but may be used by others). diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a1a7995 --- /dev/null +++ b/debian/control @@ -0,0 +1,57 @@ +Source: chmlib +Section: libs +Priority: optional +Maintainer: openKylin KDE SIG +Uploaders: rtlhq +Build-Depends: debhelper-compat (= 13), libtool +Standards-Version: 4.6.0 +Homepage: https://github.com/jedwing/CHMLib +Vcs-Git: https://gitee.com/openkylin/chmlib.git +Vcs-Browser: https://gitee.com/openkylin/chmlib +Rules-Requires-Root: no + +Package: libchm1 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: library for dealing with Microsoft CHM files + It is a very simple library, but sufficient for dealing with all of the chm + files. Library currently does not has write support. + . + CHM files are used on the Microsoft Windows platform to store program + documentation, almost always in the form of HTML, with some non-standard + quirks. CHM files are a form of archive known as InfoTech Storage Format + (ITSF) files and contain some special files to implement features of the + CHM viewer. + +Package: libchm-dev +Architecture: any +Section: libdevel +Depends: libchm1 (= ${binary:Version}), ${misc:Depends} +Multi-Arch: same +Description: library for dealing with Microsoft CHM files (development) + It is a very simple library, but sufficient for dealing with all of the chm + files. Library currently does not has write support. + . + CHM files are used on the Microsoft Windows platform to store program + documentation, almost always in the form of HTML, with some non-standard + quirks. CHM files are a form of archive known as InfoTech Storage Format + (ITSF) files and contain some special files to implement features of the + CHM viewer. + . + This package includes development headers, libraries and test programs. + +Package: libchm-bin +Architecture: any +Section: utils +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: library for dealing with Microsoft CHM files (test programs) + It is a very simple library, but sufficient for dealing with all of the chm + files. Library currently does not has write support. + . + CHM files are used on the Microsoft Windows platform to store program + documentation, almost always in the form of HTML, with some non-standard + quirks. CHM files are a form of archive known as InfoTech Storage Format + (ITSF) files and contain some special files to implement features of the + CHM viewer. + . + This package includes test programs. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..56ab095 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,62 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: chmlib +Source: http://www.jedrea.com/chmlib/ +Upstream-Contact: Jed Wing + +Files: * +Copyright: 2004-2007, Jed Wing +License: LGPL-2.1+ + +License: LGPL-2.1+ + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free + Software Foundation; either version 2.1 of the License, or (at your option) + any later version. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + details. + . + You should have received a copy of the GNU Lesser General Public License along + with this package; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU Lesser General Public License + can be found in `/usr/share/common-licenses/LGPL-2' and + `/usr/share/common-licenses/LGPL-2.1' and + `/usr/share/common-licenses/LGPL-3.1'. + +Files: src/lzx.* ltmain.sh +Copyright: 2004-2007, Jed Wing +License: GPL-2+ + +Files: debian/* +Copyright: 2004-2007, Julien Lemoine + 2007-2022, Kartik Mistry +License: GPL-2+ + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this package; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + . + Note: + . + Note that an exemption to this license has been granted by Stuart Caie for the + purposes of distribution with chmlib. This does not, to the best of my + knowledge, constitute a change in the license of this (the LZX) code in + general. + . + On Debian GNU/Linux systems, the complete text of the GNU General Public + License can be found in `/usr/share/common-licenses/GPL-2' and + `/usr/share/common-licenses/GPL-3'. diff --git a/debian/enum_chmLib.1 b/debian/enum_chmLib.1 new file mode 100644 index 0000000..ed45416 --- /dev/null +++ b/debian/enum_chmLib.1 @@ -0,0 +1,22 @@ +.TH enum_chmLib 1 "2007-04-05" "" "" +.SH NAME +enum_chmLib \- Lists the contents of a chm file. +.SH SYNOPSIS +.B enum_chmLib +[\fIFILE\fR]... +.SH DESCRIPTION +.PP +enum_chmLib lists the contents of the specified chm file to stdout. +.PP +.SH USAGE +enum_chmLib +.SH OPTIONS +enum_chmLib has no options. +.SH SEE ALSO +Website: +.SH AUTHOR +enum_chmLib was written by Jed Wing +.PP +This manual page was written by Bymin Cutler and +formatted by Kartik Mistry , for the Debian project +(but may be used by others). diff --git a/debian/enumdir_chmLib.1 b/debian/enumdir_chmLib.1 new file mode 100644 index 0000000..a1b9b3b --- /dev/null +++ b/debian/enumdir_chmLib.1 @@ -0,0 +1,22 @@ +.TH enumdir_chmLib 1 "2007-04-05" "" "" +.SH NAME +enumdir_chmLib \- Lists the contents of chm file(s). +.SH SYNOPSIS +.B enumdir_chmLib +[\fIFILE\fR] +.SH DESCRIPTION +.PP +enumdir_chmLib lists the contents of the specified chm file(s) to stdout. +.PP +.SH USAGE +enumdir_chmLib ... +.SH OPTIONS +enumdir_chmLib has no options. +.SH SEE ALSO +Website: +.SH AUTHOR +enumdir_chmLib was written by Jed Wing +.PP +This manual page was written Bymin Cutler and +formatted by Kartik Mistry , for the Debian project +(but may be used by others). diff --git a/debian/extract_chmLib.1 b/debian/extract_chmLib.1 new file mode 100644 index 0000000..da371ad --- /dev/null +++ b/debian/extract_chmLib.1 @@ -0,0 +1,23 @@ +.TH extract_chmLib 1 "2007-04-05" "" "" +.SH NAME +extract_chmLib \- Extracts a chm file into a directory. +.SH SYNOPSIS +.B extract_chmLib +[\fIFILE\fR]... [\fIDIR\fR]... +.SH DESCRIPTION +.PP +extract_chmLib extracts the contents of the specified chm file into the +specified directory. +.PP +.SH USAGE +extract_chmLib +.SH OPTIONS +extract_chmLib has no options. +.SH SEE ALSO +Website: +.SH AUTHOR +extract_chmLib was written by Jed Wing +.PP +This manual page was written by Bymin Cutler and +formatted by Kartik Mistry , for the Debian project +(but may be used by others). diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml new file mode 100644 index 0000000..ac7bc44 --- /dev/null +++ b/debian/gitlab-ci.yml @@ -0,0 +1,6 @@ +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + +variables: + RELEASE: 'unstable' diff --git a/debian/libchm-bin.install b/debian/libchm-bin.install new file mode 100644 index 0000000..4cb4bd3 --- /dev/null +++ b/debian/libchm-bin.install @@ -0,0 +1 @@ +/usr/bin/* diff --git a/debian/libchm-bin.manpages b/debian/libchm-bin.manpages new file mode 100644 index 0000000..3c53c20 --- /dev/null +++ b/debian/libchm-bin.manpages @@ -0,0 +1,5 @@ +debian/chm_http.1 +debian/enum_chmLib.1 +debian/enumdir_chmLib.1 +debian/extract_chmLib.1 +debian/test_chmLib.1 diff --git a/debian/libchm-dev.install b/debian/libchm-dev.install new file mode 100644 index 0000000..ab6c99a --- /dev/null +++ b/debian/libchm-dev.install @@ -0,0 +1,2 @@ +/usr/include/* +/usr/lib/*.so diff --git a/debian/libchm1.docs b/debian/libchm1.docs new file mode 100644 index 0000000..747a824 --- /dev/null +++ b/debian/libchm1.docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +contrib/mozilla_helper.sh diff --git a/debian/libchm1.install b/debian/libchm1.install new file mode 100644 index 0000000..49cc562 --- /dev/null +++ b/debian/libchm1.install @@ -0,0 +1 @@ +/usr/lib/*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4712e11 --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/dpkg/architecture.mk + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +CFLAGS += -Wall +CFLAGS+=$(CPPFLAGS) +CXXFLAGS+=$(CPPFLAGS) + +%: + dh $@ + +override_dh_auto_configure: + dh_autoreconf + ./configure CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --enable-examples + +override_dh_auto_clean: + dh_auto_clean + rm -rf build-stamp configure-stamp test_chmLib config.log config.cache + [ ! -f Makefile ] || $(MAKE) distclean + dh_autoreconf_clean + +override_dh_auto_install: + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + rm -f $(CURDIR)/debian/tmp/usr/lib/libchm.a \ + $(CURDIR)/debian/tmp/usr/lib/libchm.la + +override_dh_installchangelogs: + dh_installchangelogs -k NEWS + +override_dh_installexamples: + dh_installexamples -p libchm-dev src/chm_http.c \ + src/enum_chmLib.c src/enumdir_chmLib.c \ + src/extract_chmLib.c src/test_chmLib.c + +override_dh_makeshlibs: + dh_makeshlibs -plibchm1 -V 'libchm1 (>= 0.39-5)' diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/symbols b/debian/symbols new file mode 100644 index 0000000..3548fb2 --- /dev/null +++ b/debian/symbols @@ -0,0 +1,13 @@ +libchm.so.1 libchm1 #MINVER# +* Build-Depends-Package: libchm-dev + LZXdecompress@Base 0.40 + LZXinit@Base 0.40 + LZXreset@Base 0.40 + LZXteardown@Base 0.40 + chm_close@Base 0.40 + chm_enumerate@Base 0.40 + chm_enumerate_dir@Base 0.40 + chm_open@Base 0.40 + chm_resolve_object@Base 0.40 + chm_retrieve_object@Base 0.40 + chm_set_param@Base 0.40 diff --git a/debian/test_chmLib.1 b/debian/test_chmLib.1 new file mode 100644 index 0000000..edcc860 --- /dev/null +++ b/debian/test_chmLib.1 @@ -0,0 +1,22 @@ +.TH test_chmLib 1 "2007-04-05" "" "" +.SH NAME +test_chmLib \- Extracts a file out of a chm file. +.SH SYNOPSIS +.B test_chmLib +[\fIFILE\fR] [\fIFILENAME\fR] [\fIDESTFILE\fR] +.SH DESCRIPTION +.PP +test_chmLib pulls out of and writes it to . +.PP +.SH USAGE +test_chmLib +.SH OPTIONS +test_chmLib has no options. +.SH SEE ALSO +Website: +.SH AUTHOR +test_chmLib was written by Jed Wing +.PP +This manual page was written Bymin Cutler and +formatted by Kartik Mistry , for the Debian project +(but may be used by others). diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..b182196 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/jedwing/CHMLib/issues +Bug-Submit: https://github.com/jedwing/CHMLib/issues/new +Repository: https://github.com/jedwing/CHMLib.git +Repository-Browse: https://github.com/jedwing/CHMLib diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..a2e540d --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +http://www.jedrea.com/chmlib/chmlib-@ANY_VERSION@@ARCHIVE_EXT@