summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2015-11-01 19:41:28 +0100
committerAndrew Shadura <andrewsh@debian.org>2015-11-01 19:41:28 +0100
commit61c1a106bd81794f48e4cd85bae129f9270279e8 (patch)
tree29ecf644c4a13c2645bd8067e66ae8944dd2daf9 /debian
libdigidoc (3.10.1.1208-1) unstable; urgency=medium
* Initial upload (Closes: #658300). # imported from the archive
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control129
-rw-r--r--debian/copyright28
-rw-r--r--debian/libdigidoc-common.install2
-rw-r--r--debian/libdigidoc-dev.install4
-rw-r--r--debian/libdigidoc-doc.install1
-rw-r--r--debian/libdigidoc-tools.install2
-rw-r--r--debian/libdigidoc2.install1
-rw-r--r--debian/patches/01-manpage.patch32
-rw-r--r--debian/patches/02-no-rpath.patch12
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules23
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
15 files changed, 246 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8c8aeb2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libdigidoc (3.10.1.1208-1) unstable; urgency=medium
+
+ * Initial upload (Closes: #658300).
+
+ -- Andrew Shadura <andrewsh@debian.org> Sun, 01 Nov 2015 19:41:28 +0100
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..a5bff60
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,129 @@
+Source: libdigidoc
+Section: libs
+Priority: extra
+Maintainer: Andrew Shadura <andrewsh@debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ cmake,
+ libssl-dev,
+ libxml2-dev,
+ zlib1g-dev
+Standards-Version: 3.9.6
+Homepage: https://github.com/open-eid/libdigidoc
+
+Package: libdigidoc-common
+Architecture: all
+Section: misc
+Multi-Arch: foreign
+Depends:
+ ${misc:Depends}
+Breaks:
+ libdigidoc2 (<< ${binary:Version})
+Replaces:
+ libdigidoc2 (<< ${binary:Version})
+Description: DigiDoc digital signature library common files
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package contains common architecture-independent files for the
+ applications using the DigiDoc digital signature library.
+
+Package: libdigidoc2
+Replaces:
+ libdigidoc
+Breaks:
+ libdigidoc
+Architecture: any
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends}
+Depends:
+ libdigidoc-common (= ${source:Version}),
+ opensc,
+ pcscd,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: DigiDoc digital signature library
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package provides the shared libraries.
+
+Package: libdigidoc-tools
+Architecture: any
+Section: misc
+Depends:
+ libdigidoc2 (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: DigiDoc digital signature library tools
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package contains tools for manipulating signatures created with the
+ DigiDoc digital signature library.
+
+Package: libdigidoc-dbg
+Architecture: any
+Section: debug
+Multi-Arch: same
+Depends:
+ libdigidoc2 (= ${binary:Version}),
+ libssl1.0.0-dbg,
+ libxml2-dbg,
+ ${misc:Depends}
+Description: debugging symbols for DigiDoc digital signature library
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package provides the debugging symbols.
+
+Package: libdigidoc-dev
+Architecture: any
+Section: libdevel
+Depends:
+ libdigidoc2 (= ${binary:Version}),
+ libssl-dev,
+ libxml2-dev,
+ ${misc:Depends}
+Description: DigiDoc digital signature development files
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package provides the development files.
+
+Package: libdigidoc-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends}
+Description: DigiDoc digital signature library documentation
+ DigiDoc is an XML file format for documents with digital signatures in use by
+ the Estonian ID card infrastructure. This library allows for creation and
+ reading of DigiDoc files.
+ .
+ This library implements a subset of the XAdES digital signature standard on
+ top of Estonian-specific .ddoc container format.
+ .
+ This package contains documentation for developing applications with the
+ DigiDoc digital signature library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fc1f191
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libdigidoc
+Upstream-Contact: abi@id.ee
+Source: https://github.com/open-eid/libdigidoc
+
+Files: *
+Copyright: 2012—2015 Estonian Information System's Authority
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright:
+ 2012—2015 Estonian Information System's Authority
+ 2015 Andrew Shadura <andrewsh@debian.org>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+ This library 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 library 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.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License can be found in </usr/share/common-licenses/LGPL-2.1>.
diff --git a/debian/libdigidoc-common.install b/debian/libdigidoc-common.install
new file mode 100644
index 0000000..468beba
--- /dev/null
+++ b/debian/libdigidoc-common.install
@@ -0,0 +1,2 @@
+debian/tmp/etc
+debian/tmp/usr/share/libdigidoc
diff --git a/debian/libdigidoc-dev.install b/debian/libdigidoc-dev.install
new file mode 100644
index 0000000..af8a8e5
--- /dev/null
+++ b/debian/libdigidoc-dev.install
@@ -0,0 +1,4 @@
+usr/include
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig
+usr/share/libdigidoc/TEST*
diff --git a/debian/libdigidoc-doc.install b/debian/libdigidoc-doc.install
new file mode 100644
index 0000000..7276ecd
--- /dev/null
+++ b/debian/libdigidoc-doc.install
@@ -0,0 +1 @@
+usr/share/doc
diff --git a/debian/libdigidoc-tools.install b/debian/libdigidoc-tools.install
new file mode 100644
index 0000000..a65408f
--- /dev/null
+++ b/debian/libdigidoc-tools.install
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man
diff --git a/debian/libdigidoc2.install b/debian/libdigidoc2.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libdigidoc2.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/patches/01-manpage.patch b/debian/patches/01-manpage.patch
new file mode 100644
index 0000000..f79a6a6
--- /dev/null
+++ b/debian/patches/01-manpage.patch
@@ -0,0 +1,32 @@
+From fa90da1834c255ed72e377a96e5c92f8e1a858de Mon Sep 17 00:00:00 2001
+From: Andrew Shadura <andrew@shadura.me>
+Date: Sun, 1 Nov 2015 19:07:15 +0100
+Subject: [PATCH] Fix spelling in the manpage
+
+Signed-off-by: Andrew Shadura <andrew@shadura.me>
+---
+ libdigidoc/cdigidoc.1.cmake | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libdigidoc/cdigidoc.1.cmake b/libdigidoc/cdigidoc.1.cmake
+index 20ad67e..effe492 100644
+--- a/libdigidoc/cdigidoc.1.cmake
++++ b/libdigidoc/cdigidoc.1.cmake
+@@ -200,7 +200,7 @@ Decrypts and possibly decompresses the encrypted file just read in and writes to
+ Input file (required) specifies the input file’s name.
+ Pin (required) represents the recipient’s pin1 (in context of Estonian ID cards).
+ pkcs12-file (optional) specifies the PKCS#12 file if decrypting is done with a software token.
+-slot deafult is slot 0 containing Estonian ID cards authentication keypair. This parameter can be used to decrypt with a key from the second id card attached to the computer etc.
++slot default is slot 0 containing Estonian ID cards authentication keypair. This parameter can be used to decrypt with a key from the second id card attached to the computer etc.
+ Note: There are also alternative commands for decryption, depending on the encrypted file’s format, size and the certificate type used for decrypting it.
+ .RS
+ .TP
+@@ -209,7 +209,7 @@ Offers same functionality as -decrypt-sk, should be used for decrypting small fi
+ Input file (required) specifies the input file’s name.
+ Pin (required) represents the recipient’s pin1 (in contexts of Estonian ID cards).
+ pkcs12-file (optional) specifies the PKCS#12 file if decrypting is done with a software token.
+-slot deafult is slot 0 containing Estonian ID cards authentication keypair. This parameter can be used to decrypt with a key from the second id card attached to the computer etc.
++slot default is slot 0 containing Estonian ID cards authentication keypair. This parameter can be used to decrypt with a key from the second id card attached to the computer etc.
+ .TP
+ .I "-decrypt-file <input-file> <output-file> <pin> [pkcs12-file]"
+ Offers same functionality as -decrypt for decrypting documents, should be used for decrypting large files (which do not need to be inside a DigiDoc container). Expects the encrypted data not to be compressed. Note that the command is not currently tested.
diff --git a/debian/patches/02-no-rpath.patch b/debian/patches/02-no-rpath.patch
new file mode 100644
index 0000000..9e03800
--- /dev/null
+++ b/debian/patches/02-no-rpath.patch
@@ -0,0 +1,12 @@
+Subject: No rpath, please.
+
+--- a/libdigidoc/CMakeLists.txt
++++ b/libdigidoc/CMakeLists.txt
+@@ -94,7 +94,6 @@
+ )
+
+ add_executable(cdigidoc cdigidoc.c cdigidoc.rc)
+-set_target_properties(cdigidoc PROPERTIES INSTALL_RPATH "@loader_path/../../../..;@loader_path/../..")
+ target_link_libraries(cdigidoc digidoc)
+
+ install( TARGETS digidoc
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b8d86dd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-manpage.patch
+02-no-rpath.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3104e56
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+DEB_CMAKE_EXTRA_FLAGS = \
+ -DCMAKE_INSTALL_SYSCONFDIR="/etc" \
+ -DCMAKE_INSTALL_LIBDIR="lib/$(DEB_HOST_MULTIARCH)" \
+ -DINSTALL_DOC=YES
+
+%:
+ dh "$@" --buildsystem=cmake
+
+override_dh_auto_configure:
+ dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
+
+override_dh_strip:
+ dh_strip --dbg-package=libdigidoc-dbg
+
+override_dh_install:
+ dh_install -plibdigidoc-common --exclude=TEST
+ dh_install --remaining-packages --list-missing
+
+.PHONY: override_dh_auto_configure
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..2785dc9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+https://github.com/open-eid/libdigidoc/releases /open-eid/libdigidoc/releases/download/.*/libdigidoc-([\d.]*).tar.gz