diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9462438 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mdp (1.0.3-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Lev Lamberov Mon, 14 Dec 2015 22:22:35 +0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..563e9f1 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: mdp +Section: misc +Priority: optional +Maintainer: Lev Lamberov +Build-Depends: debhelper (>= 9), libncursesw5-dev, libtinfo-dev +Standards-Version: 3.9.6 +Homepage: https://github.com/visit1985/mdp +Vcs-Git: https://github.com/visit1985/mdp.git +Vcs-Browser: https://github.com/visit1985/mdp + +Package: mdp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libncursesw5 (>= 6) +Description: command-line based markdown presentation tool + 'mdp' is a command-line program that allows you to make elegant presentations + from markdown formatted files. + . + It is as easy as write your presentation content in the text editor of your + preference and launch the presentation from the command-line. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d764f9b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mdp +Source: https://github.com/visit1985/mdp + +Files: * +Copyright: 2015 Michael Goehler visit@what.what +License: GPL-3+ + +Files: debian/* +Copyright: 2015 Lev Lamberov +License: GPL-3+ + +License: GPL-3+ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + . + 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, 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, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. + . + Comment: + . + On a Debian system you can find a copy of this license in + /usr/share/common-licenses/GPL-3. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b423a15 --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +README.md +sample.md +utf8.md +long-lines.md diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..4a13208 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +mdp_1.0.3-1_amd64.deb misc optional diff --git a/debian/patches/10-makefile_prefix.patch b/debian/patches/10-makefile_prefix.patch new file mode 100644 index 0000000..537aeb9 --- /dev/null +++ b/debian/patches/10-makefile_prefix.patch @@ -0,0 +1,15 @@ +Corrects PREFIX in upstream Makefile, so Debian package can be build. + +--- a/Makefile ++++ b/Makefile +@@ -24,7 +24,7 @@ SOURCES = $(wildcard src/*.c) + OBJECTS = $(SOURCES:.c=.o) + TARGET = mdp + DESTDIR = +-PREFIX = /usr/local ++PREFIX ?= /usr/local + + CURSES = ncursesw + LDFLAGS ?= -s +-- +2.6.2 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f89d512 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +10-makefile_prefix.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f083437 --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 + +export PREFIX=/usr + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +# main packaging script based on dh7 syntax +%: + dh $@ + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) 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/watch b/debian/watch new file mode 100644 index 0000000..bda4d96 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/-$1\.tar\.gz/ \ + https://github.com/visit1985/mdp/tags .*/?(\d\.\d.\d)\.tar\.gz