From 28968a1fb69d24bea7c8d297dc8e5143e92f32ca Mon Sep 17 00:00:00 2001 From: Trent Petersen Date: Fri, 20 Sep 2019 08:44:20 -0500 Subject: [PATCH] split --- .gitignore | 3 +- build_for_ppa.py | 27 ++-- debian/changelog | 263 +++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 14 +++ debian/copyright | 23 ++++ debian/dirs | 1 + debian/pdf2htmlex.NEWS | 0 debian/pdf2htmlex.README | 1 + debian/pdf2htmlex.TODO | 0 debian/rules | 6 + debian/source/format | 2 + 12 files changed, 328 insertions(+), 13 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/pdf2htmlex.NEWS create mode 100644 debian/pdf2htmlex.README create mode 100644 debian/pdf2htmlex.TODO create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitignore b/.gitignore index a56d2ea..d541374 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ test export-ignore Testing/* DartConfiguration.tcl test/test.py - +*.swp +pdf2htmlex-*.tar.bz2 diff --git a/build_for_ppa.py b/build_for_ppa.py index 81dea72..f0c4e28 100755 --- a/build_for_ppa.py +++ b/build_for_ppa.py @@ -12,15 +12,14 @@ modified for general git repo 2013.05.30 """ - import os import sys import re import time package='pdf2htmlex' -ppa_name='ppa:coolwanglu/pdf2htmlex' -supported_distributions=('precise', 'trusty') +ppa_name='ppa:pdf2htmlex/pdf2htmlex' +supported_distributions=('cosmic',) dist_pattern=re.compile('|'.join(['\\) '+i for i in supported_distributions])) archive_cmd='(rm CMakeCache.txt || true) && cmake . && make dist' archive_suffix='.tar.bz2' @@ -39,10 +38,13 @@ except: sys.exit(-1) projectdir=os.getcwd() -today_timestr = time.strftime('%Y%m%d%H%M') +today_timestr = time.strftime('%Y%m%d') deb_version = version+'-1~git'+today_timestr+'r'+rev full_deb_version = deb_version+'-0ubuntu1' +print 'Version: %s' % (version,) +print 'Full Version: %s' % (full_deb_version,) + #check if we need to update debian/changelog with open('debian/changelog') as f: if re.findall(r'\(([^)]+)\)', f.readline())[0] == full_deb_version: @@ -72,6 +74,7 @@ if os.system(archive_cmd) != 0: sys.exit(-1) orig_tar_filename = package+'-'+version+archive_suffix +os.mkdir('../build-area') if os.system('test -e %s && cp %s ../build-area/' % (orig_tar_filename, orig_tar_filename)) != 0: print 'Cannot copy tarball file to build area' sys.exit(-1) @@ -102,16 +105,15 @@ os.system('cp -r %s/debian .' % (projectdir,)) for cur_dist in supported_distributions: print print 'Building for ' + cur_dist + ' ...' - # substitute distribution name + # substitute distribution name with open('debian/changelog', 'w') as f: f.write(dist_pattern.sub('~%s1) %s' % (cur_dist, cur_dist), changelog, 1)) - # building + # building for ppa if os.system('debuild -S -sa') != 0: print 'Failed in debuild' sys.exit(-1) - """ print sys.stdout.write('Everything seems to be good so far, upload?(y/n)') sys.stdout.flush() @@ -123,15 +125,16 @@ for cur_dist in supported_distributions: if ans == 'n': print 'Skipped.' sys.exit(0) - """ - print 'Uploading' + print 'Uploading' if os.system('dput %s ../%s' % (ppa_name, package+'_'+full_deb_version+'~'+cur_dist+'1_source.changes')) != 0: print 'Failed in uploading by dput' sys.exit(-1) + # building for dpkg + if os.system('dpkg-buildpackage') != 0: + print 'Failed in dpkg-buildpackage' + sys.exit(-1) + print 'Build area not cleaned.' print 'All done. Cool!' - - - diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..298426a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,263 @@ +pdf2htmlex (0.17.0-1~git201909200825r21a9f-0ubuntu1) cosmic; urgency=low + + * Package for 18.10 + + -- Trent Petersen Fri, 20 Sep 2019 08:18:28 -0500 + +pdf2htmlex (0.16.0-1~git201909191126r32f7c-0ubuntu1) bionic; urgency=low + + * Package for 18.04 + + -- Trent Petersen Thu, 19 Sep 2019 10:33:35 -0500 + +pdf2htmlex (0.11-1~git201311150048r23755-0ubuntu1) saucy; urgency=low + + * Fix packaging + + -- WANG Lu Fri, 15 Nov 2013 00:48:06 +0800 + +pdf2htmlex (0.11-1~git201311042119refddc-0ubuntu1) saucy; urgency=low + + * Packaging for 13.10 + + -- WANG Lu Mon, 04 Nov 2013 21:19:41 +0800 + +pdf2htmlex (0.11-1~git201310172203re1b11-0ubuntu1) raring; urgency=low + + * Fix typo in dependencies + + -- WANG Lu Thu, 17 Oct 2013 22:03:42 +0800 + +pdf2htmlex (0.10-1~git201310171220rc344e-0ubuntu1) raring; urgency=low + + * Fix build + + -- WANG Lu Thu, 17 Oct 2013 12:20:59 +0800 + +pdf2htmlex (0.10-1~git201310171209rdc970-0ubuntu1) raring; urgency=low + + * v0.10 released, see Changelog + + -- WANG Lu Thu, 17 Oct 2013 12:09:01 +0800 + +pdf2htmlex (0.9-1~git201309161133rd60eb-0ubuntu1) raring; urgency=low + + * fix cmake test for packaging + + -- WANG Lu Mon, 16 Sep 2013 11:33:11 +0800 + +pdf2htmlex (0.9-1~git201309161021rf2993-0ubuntu1) raring; urgency=low + + * v0.9 released, see Changelog + + -- WANG Lu Mon, 16 Sep 2013 10:21:05 +0800 + +pdf2htmlex (0.9-1~git201305291247rf655a-0ubuntu1) raring; urgency=low + + * Regular upload + + -- WANG Lu Wed, 29 May 2013 12:47:16 +0800 + +pdf2htmlex (0.8-1~git201305051429r92eab-0ubuntu1) raring; urgency=low + + * v0.8 released, see Changelog + + -- WANG Lu Sun, 05 May 2013 14:29:07 +0800 + +pdf2htmlex (0.8-1~git201304281550rd5f9c-0ubuntu1) raring; urgency=low + + * Test packaging for multiple distributions + * Fix crashing with --split-pages + + -- WANG Lu Sun, 28 Apr 2013 15:39:34 +0800 + +pdf2htmlex (0.8-1~git201304151420r1da9b-0ubuntu1) quantal; urgency=low + + * HTML optimization + * New options: --optimize-text, --fallabck + * See more in Changelog + + -- WANG Lu Mon, 15 Apr 2013 14:20:22 +0800 + +pdf2htmlex (0.8-1~git201303011406r3bc73-0ubuntu1) quantal; urgency=low + + * Experimental printing support + * New version + + -- WANG Lu Fri, 01 Mar 2013 14:06:42 +0800 + +pdf2htmlex (0.7-1~git201302282259r3bc73-0ubuntu1) quantal; urgency=low + + * suggests ttfautohint + + -- WANG Lu Thu, 28 Feb 2013 22:59:45 +0800 + +pdf2htmlex (0.7-1~git201302271054r3bc73-0ubuntu1) precise; urgency=low + + * Packaging for 12.04 + + -- WANG Lu Wed, 27 Feb 2013 10:54:12 +0800 + +pdf2htmlex (0.7-1~git201302271053r3bc73-0ubuntu1) quantal; urgency=low + + * Fix packpage dependency + + -- WANG Lu Wed, 27 Feb 2013 10:52:17 +0800 + +pdf2htmlex (0.7-1~git201302270111r3bc73-0ubuntu1) quantal; urgency=low + + * Regular upload + + -- WANG Lu Wed, 27 Feb 2013 01:11:56 +0800 + +pdf2htmlex (0.7-1~git201302182049r3bc73-0ubuntu1) quantal; urgency=low + + * New parameter: process-outline + + -- WANG Lu Mon, 18 Feb 2013 20:49:57 +0800 + +pdf2htmlex (0.7-1~git201301292229r2595c-0ubuntu1) quantal; urgency=low + + * Fixed a CSS issue + + -- WANG Lu Tue, 29 Jan 2013 22:29:21 +0800 + +pdf2htmlex (0.7-1~git201301282229r2595c-0ubuntu1) quantal; urgency=low + + * Process PDF Outline + + -- WANG Lu Mon, 28 Jan 2013 22:29:35 +0800 + +pdf2htmlex (0.7-1~git201301261427r2595c-0ubuntu1) quantal; urgency=low + + * New version, see Changelog for changelog + + -- WANG Lu Sat, 26 Jan 2013 14:27:18 +0800 + +pdf2htmlex (0.6-1~git201212182148rd76af-0ubuntu1) quantal; urgency=low + + * fix dependency of poppler for quantal + + -- WANG Lu Tue, 18 Dec 2012 21:48:35 +0800 + +pdf2htmlex (0.6-1~git201212111844rd76af-0ubuntu1) quantal; urgency=low + + * Package for quantal + + -- WANG Lu Tue, 11 Dec 2012 18:44:44 +0800 + +pdf2htmlex (0.6-1~git201210070052rcb9a8-0ubuntu1) precise; urgency=low + + * New version + + -- WANG Lu Sun, 07 Oct 2012 00:52:42 +0800 + +pdf2htmlex (0.5-1~git201210051800rbaa37-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Fri, 05 Oct 2012 18:00:48 +0800 + +pdf2htmlex (0.5-1~git201209270317r6fa14-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Thu, 27 Sep 2012 03:17:02 +0800 + +pdf2htmlex (0.5-1~git201209261622r170a0-0ubuntu1) precise; urgency=low + + * new version + + -- WANG Lu Wed, 26 Sep 2012 16:22:50 +0800 + +pdf2htmlex (0.4-1~git201209241628r30aee-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Mon, 24 Sep 2012 16:28:18 +0800 + +pdf2htmlex (0.4-1~git201209170124r8b4ec-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Mon, 17 Sep 2012 01:24:29 +0800 + +pdf2htmlex (0.4-1~git201209162328r8b4ec-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Sun, 16 Sep 2012 23:28:03 +0800 + +pdf2htmlex (0.3-1~git201209152353rf02e1-0ubuntu1) precise; urgency=low + + * Regularly re-packing. + + -- WANG Lu Sat, 15 Sep 2012 23:53:43 +0800 + +pdf2htmlex (0.3-1~git201209071504ra0de6-0ubuntu1) precise; urgency=low + + * fix build + * 0.3 comes with more bug fixed + + -- WANG Lu Fri, 07 Sep 2012 15:04:09 +0800 + +pdf2htmlex (0.2-3~git201209052329rbc256-0ubuntu1) precise; urgency=low + + * Change dependency of fontforge + + -- WANG Lu Wed, 05 Sep 2012 23:29:49 +0800 + +pdf2htmlex (0.2-3~git201209030158r926cf-0ubuntu1) precise; urgency=low + + * Fix dependency of libpoppler27 + + -- WANG Lu Mon, 03 Sep 2012 01:58:42 +0800 + +pdf2htmlex (0.2-3~git201209010002rfe7b3-0ubuntu1) precise; urgency=low + + * update license + + -- WANG Lu Sat, 01 Sep 2012 00:02:23 +0800 + +pdf2htmlex (0.2-3~git201208312351rd12b8-0ubuntu1) precise; urgency=low + + * 0.2dev, many bugs fixed + + -- WANG Lu Fri, 31 Aug 2012 23:51:57 +0800 + +pdf2htmlex (0.1-3~git201208281638r1addb-0ubuntu1) precise; urgency=low + + * Add debian files + + -- WANG Lu Tue, 28 Aug 2012 16:38:19 +0800 + +pdf2htmlex (0.1-3~git201208281523r80dc3-0ubuntu1) precise; urgency=low + + * Add dependency libpng + + -- WANG Lu Tue, 28 Aug 2012 15:22:22 +0800 + +pdf2htmlex (0.1-3~git201208281431r383b1-0ubuntu1) precise; urgency=low + + * Updated CMakeList.txt + + -- WANG Lu Tue, 28 Aug 2012 14:29:43 +0800 + +pdf2htmlex (0.1-3~git201208281420rc53d7-0ubuntu1) precise; urgency=low + + * Added config.h.in + + -- WANG Lu Tue, 28 Aug 2012 14:06:22 +0800 + +pdf2htmlex (0.1-3~git201208281356r5731e-0ubuntu1) precise; urgency=low + + * Fix version for package + + -- WANG Lu Tue, 28 Aug 2012 13:46:09 +0800 + +pdf2htmlex (0.1-1~git20120828rf083f-0ubuntu1) precise; urgency=low + + * Initial release. + + -- WANG Lu Tue, 28 Aug 2012 01:26:33 +0800 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..673bc9a --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: pdf2htmlex +Section: universe/web +Priority: extra +Maintainer: Trent Petersen +Build-Depends: cmake (>= 2.6.0), pkg-config, debhelper (>= 10), libpoppler-dev (>= 0.20.3), libpng-dev, libjpeg-dev, libfontforge-dev, libspiro-dev, python-dev, openjdk-8-jre-headless +Standards-Version: 3.9.3 +Homepage: http://github.com/pdf2htmlEX/pdf2htmlEX + +Package: pdf2htmlex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: ttfautohint +Description: Converts PDF to HTML without losing format + pdf2htmlEX converts PDF to HTML while retaining text, format & style as much as possible diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..836b598 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pdf2htmlEX +Upstream-Contact: WANG Lu . +Source: http://github.com/pdf2htmlEX/pdf2htmlEX + +Files: * +Copyright: 2012 WANG Lu +License: GPL-3+ + +License: GPL-3 + This program 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 3 of the License, or + (at your option) any later version. + . + This program 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 program. If not, see . + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/pdf2htmlex.NEWS b/debian/pdf2htmlex.NEWS new file mode 100644 index 0000000..e69de29 diff --git a/debian/pdf2htmlex.README b/debian/pdf2htmlex.README new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/pdf2htmlex.README @@ -0,0 +1 @@ +README.md diff --git a/debian/pdf2htmlex.TODO b/debian/pdf2htmlex.TODO new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c1d3eaa --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_test: + dh_auto_test || true diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..c3d9f24 --- /dev/null +++ b/debian/source/format @@ -0,0 +1,2 @@ +3.0 (quilt) +