Commits (3)
Gnucap for Debian
With the arrival of the shared library, the gnucap package has been split into
several packages.
The the new gnucap package replace the former package in terms of
functionality. /usr/bin/gnucap has become a thin executable, which
- no longer statically links the default plugins, but they are
loaded by default (see below) and with
- most functionality transferred to libgnucap.
- plugin choices can be overridden in /etc/gnucap.rc.
the library is libgnucap.so.0. it is expected not to change in relevant ways,
but if it does, will move to libgnucap.so.1.
gnucap-default-plugins0 contains the default plugins. these are installed into
/usr/lib/<multiarch>/gnucap0/. The "0" indicates the relation to libgnucap0.
This is the library, these plugins have been tested with. libgnucap loads
plugins from the path read from the environment variable GNUCAP_PLUGPATH (colon
separated, first wins, like PATH).
/usr/bin/gnucap sets the GNUCAP_PLUGPATH environment to
/usr/lib/<multiarch>/gnucap0, unless otherwise specified. This is where
further packages are expected to install plugins to.
(not yet, currently part of the gnucap package..)
The gnucap-devel package provides the files necessary to compile plugins.
Plugins can be compiled upon loading from within libgnucap, through dispatched
gnucap-common contains some architecture independent files, headers, examples
and (not yet:) pkg-config wrapper.
The libgnucap-dev package provides the necessary files to build/link programs
similar to /usr/bin/gnucap.
-- Felix Salfelder <felix@salfelder.org>, April 2018
......@@ -3,9 +3,9 @@ gnucap (1:0.36~20171003-1) unstable; urgency=medium
* Split gnucap package into several packages
This is required, as gnucap now provides a shared library.
* libgnucap0 + libgnucap-dev (Closes: #224467)
These packages contain the shared library and provide the files neccesary
These packages contain the shared library and provide the files necessary
to build/link against it, respectively. For example users can create their
own binary programs to subtitute the "gnucap" example executable provided
own binary programs to substitute the "gnucap" example executable provided
in the "gnucap" package. Other packages may depend on libgnucap-dev, if
they make use of the gnucap library, which will provide most gnucap
functionality without the need to install all gnucap packages and files.
......@@ -100,6 +100,15 @@ override_dh_auto_install:
# mv $(CURDIR)/debian/tmp/usr/bin/gnucap-conf $(CURDIR)/debian/tmp/${pkglibdir}/
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/gnucap/examples
cp tests/*.gc $(CURDIR)/debian/tmp/usr/share/doc/gnucap/examples
cp tests/*.ckt $(CURDIR)/debian/tmp/usr/share/doc/gnucap/examples
# workaround: some are duplicate (reported upstream, trivial),
# remove a superset, for now.
rm $(CURDIR)/debian/tmp/usr/share/doc/gnucap/examples/d_mos6*.ckt
rm $(CURDIR)/debian/tmp/usr/share/doc/gnucap/examples/d_mos49.nand1.ckt