diff options
| -rw-r--r-- | debian/changelog | 261 | ||||
| -rw-r--r-- | debian/control | 89 | ||||
| -rw-r--r-- | debian/copyright | 250 | ||||
| -rw-r--r-- | debian/gbp.conf | 2 | ||||
| -rw-r--r-- | debian/nikola.bash-completion | 1 | ||||
| -rw-r--r-- | debian/nikola.dirs | 2 | ||||
| -rw-r--r-- | debian/nikola.docs | 1 | ||||
| -rw-r--r-- | debian/nikola.links | 26 | ||||
| -rwxr-xr-x | debian/nikola.sh | 4 | ||||
| -rwxr-xr-x | debian/rules | 51 | ||||
| -rw-r--r-- | debian/source/format | 1 | ||||
| -rw-r--r-- | debian/watch | 2 |
12 files changed, 690 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b9ede69 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,261 @@ +nikola (8.2.3-0vanir1) unstable; urgency=medium + + * New upstream version 8.2.3. + * d/control: + - Drop python3-pygal Build-Depends. + - Update my email address. + * Update Standards-Version to 4.6.2. + + -- Unit 193 <unit193@unit193.net> Fri, 05 Aug 2022 01:03:30 -0400 + +nikola (8.2.0-0vanir1) unstable; urgency=medium + + * New upstream version 8.2.0. + * d/control: Bump DH compat to 13. + * d/nikola.manpages: Drop, let upstream's buildsystem handle this. + * Update Standards-Version to 4.6.0. + + -- Unit 193 <unit193@debian.org> Wed, 20 Apr 2022 00:14:48 -0400 + +nikola (8.1.3-0vanir1) unstable; urgency=medium + + * d/watch: Update to find new GitHub releases. + * New upstream version 8.1.3. + - Drop upstream patch. + + -- Unit 193 <unit193@debian.org> Thu, 22 Apr 2021 20:35:02 -0400 + +nikola (8.1.2-0vanir1) unstable; urgency=medium + + [ Ulises Vitulli ] + * New Upstream release (Closes: #801796). + * Refreshed local patches. + * Prune also Nikola.egg-info + * Updated debian/copyright on new files + * Upgrade pkg policy + + [ Unit 193 ] + * New upstream version 8.1.2. + - Drop patches, no longer needed. + * d/compat, d/control: + - Drop d/compat in favor of debhelper-compat, bump to 12. + * d/control: + - Rely on dh-python for Python depends. + - Update (Build-)Depends for Python 3 version, adding nocheck where useful. + - Drop X-Python-Version. + - Set myself as sole maintainer. + - Update Vcs-* fields for new location. + - Use 'https' in 'homepage' field. + - R³: no. + * d/copyright: Update format spec and attribution. + * d/nikola.links: + - Update links for new version and bootstrap, leaving popper.js unlinked. + * d/rules: + - Update for Python 3. + - Set LC_ALL=C.UTF-8 and re-enable tests. + - Convert new documentation files. + - Remove extra license files. + - Drop deprecated get-orig-source target and dpkg-parsechangelog calls. + * d/watch: Update version to 4. + * d/p/fix_traceback_on_deploy.patch: + - Grab an upstream commit to fix traceback on deploy. + * d/missing-sources, d/NEWS, d/nikola.doc-base, d/pydist-overrides, + d/README.source: Drop, no longer needed. + * Update Standards-Version to 4.5.1. + + -- Unit 193 <unit193@debian.org> Wed, 03 Feb 2021 19:38:15 -0500 + +nikola (7.6.4-1) unstable; urgency=medium + + * Add Recommends on python-ws4py and python-watchdog for `nikola auto` + (Closes: #795769) + * Set version number on (build)?dependencies + * Imported Upstream version 7.6.4 + + -- Agustin Henze <tin@debian.org> Wed, 26 Aug 2015 07:43:19 -0300 + +nikola (7.6.0-3) unstable; urgency=medium + + * Added bootstrap(3)-jinja themes missing pieces (Closes: #793953). + + -- Ulises Vitulli <dererk@debian.org> Wed, 29 Jul 2015 22:38:10 -0300 + +nikola (7.6.0-2) unstable; urgency=medium + + * Add missing build-dep on python-requests (Closes: #792352). + * Bind to python-yapsy specific version (required by nikola). + + -- Ulises Vitulli <dererk@debian.org> Wed, 22 Jul 2015 06:20:14 -0300 + +nikola (7.6.0-1) unstable; urgency=medium + + * Add missing patch (Closes: #790710) + * Imported Upstream version 7.6.0 (Closes: #789072, #790906) + * Replace strict dependency on dateutil for the current one in debian + archive (Closes: #767536) + * Fix manpage path + + -- Agustin Henze <tin@debian.org> Wed, 08 Jul 2015 09:20:02 -0300 + +nikola (7.1.0-2) unstable; urgency=medium + + * Add suggestion on python-pygal for easy Charts. + + -- Ulises Vitulli <dererk@debian.org> Fri, 20 Feb 2015 06:37:25 -0300 + +nikola (7.1.0-1) unstable; urgency=medium + + * Imported Upstream version 7.1.0 + * Remove patches for bootstrap3 + * Add dependency on libjs-bootstrap + * Add symlinks to bootstrap3 debian package + * Fix get-orig-source to import bootstrap3 theme + * Fix quoting when generate zsh completion (Closes: #762241) + * Bumped Standard-Version to 3.9.6 (no changes required) + + -- Agustin Henze <tin@debian.org> Tue, 21 Oct 2014 10:47:58 -0300 + +nikola (7.0.1-4) unstable; urgency=medium + + * Add missing build dependency on python-dateutil + + -- Agustin Henze <tin@debian.org> Fri, 08 Aug 2014 08:06:18 -0300 + +nikola (7.0.1-3) unstable; urgency=medium + + * Remove depends on obsolete python-support + * Remove echo sentence from nikola.sh (Closes: #757352) + + -- Agustin Henze <tin@debian.org> Thu, 07 Aug 2014 10:47:12 -0300 + +nikola (7.0.1-2) unstable; urgency=medium + + * Add nikola.sh (nikola runner to create sh_completion files) (Closes: + #752954) + + -- Agustin Henze <tin@debian.org> Wed, 06 Aug 2014 19:10:19 -0300 + +nikola (7.0.1-1) unstable; urgency=medium + + * Imported Upstream version 7.0.1 + * Update patch to add install_bs3 command + * Add patch to replace natsort python module by naturalsort + * Add html5shiv.js to debian/missing-sources + * Update debian/copyright file + * Remove depends on python-tz and add depends on python-naturalsort + * Update debian/rules + + -- Agustin Henze <tin@debian.org> Mon, 16 Jun 2014 15:28:28 -0300 + +nikola (6.4.0-1) unstable; urgency=medium + + * New upstream release version 6.4.0 + * Update patch of the custom debian install_bs3 command + + -- Agustin Henze <tin@debian.org> Sun, 09 Mar 2014 03:22:30 +0100 + +nikola (6.3.0-1) unstable; urgency=medium + + * New upstream release version 6.3.0 + * Add the awesome patch by Chris "kwpolska" Warrick (add install_bs3 + command) (Closes: #734613) + * Add bash and zsh completion + * Use pybuild as buildsystem + + -- Agustin Henze <tin@debian.org> Fri, 28 Feb 2014 11:33:42 -0300 + +nikola (6.2.1-1) unstable; urgency=low + + * Imported Upstream version 6.2.1 (Closes: #722177) + * Updating debian/watch file to the new url of the project + * Add get-orig-source target + * Change the default theme bootstrap3 by bootstrap + * Update dependencies, recommendations and suggestions + + -- Agustin Henze <tin@debian.org> Mon, 18 Nov 2013 19:26:32 -0300 + +nikola (5.4.4-1) unstable; urgency=low + + [ Agustin Henze ] + * Imported Upstream version 5.4.4 + * debian/copyright: + - Converted to machine readable. + - Update copyrights. + * debian/rules: + - Fix wrong permission files + - Remove a copy of MIT License + - Remove the command that deletes a file that is no longer part of the + project. + * Update debian/README.source file with the new file differences. + + [ Dererk ] + * Recommend py-requests for install_theme feature (Closes: #706658). + + -- Agustin Henze <tin@sluc.org.ar> Fri, 31 May 2013 20:50:03 -0300 + +nikola (5.4.2-1) unstable; urgency=low + + * Imported Upstream version 5.4.2 + * Removed unused manuals under debian folder + * Updated README.source file with details about the files deleted for make + the package dfsg compliant + * Fixed lintian warning about non-canonical vcs field + + -- Agustin Henze <tin@sluc.org.ar> Wed, 13 Mar 2013 21:31:44 -0300 + +nikola (5.3-1) unstable; urgency=low + + * Imported Upstream version 5.3 + * Updated debian/rules: + - Removed the copy of the custom.css file, fixed in upstream. + + -- Agustin Henze <tin@sluc.org.ar> Wed, 27 Feb 2013 17:11:04 -0300 + +nikola (5.2-1) unstable; urgency=low + + * Imported Upstream version 5.2 (Closes: #696358, #699910). + * Bump Standards-Version to 3.9.4 (no changes required). + * Added libjs-jquery-slides dependency. + - Removed slides.jquery.js file of the upstream installation. + * Updated copyright file: + - The license of nikola has changed from GPL-3 to MIT. + - Added license of slides.jquery.js file. + * Fixed assets symlinks on debian/nikola.links. + * Updated debian/rules: + - Deleted the remove sentence of PyRSS2Gen, fixed in upstream. + - Copy custom.css into the right place, it'll be reported to upstream. + - Added conversion from rst to html of the docs/creating-a-theme.txt file. + * Created debian/pydist-overrides: pillow overridden by python-imaging. + * Added Vcs-git and Vcs-browser to debian/control file. + + -- Agustin Henze <tin@sluc.org.ar> Wed, 13 Feb 2013 18:42:55 -0300 + +nikola (5-1) unstable; urgency=low + + * New upstream release, adds new features and fixes several bugs: + Features: + - Templates now know their name from template_name in their context. + - Made most of Nikola into Yapsy plugins. + - Recurse galleries/ and render each folder as a gallery. + - Breadcrumbs and folder links in image galleries. + Bugfixes: + - Fixed doc installation + - Put webassets cache in cache/webassets + - Don't crash on incomplete translations + - Fixed Issue 160: render_tags didn't call scan_posts() + - Fixed Issue 161: webassets setting USE_BUNDLES was ignored + - Fixed Issue 153: index.txt was being ignored in galleries. + + -- Agustin Henze <tin@sluc.org.ar> Wed, 12 Dec 2012 20:33:41 -0300 + +nikola (4.0.3-2) unstable; urgency=low + + * Fix broken symlinks not being included on the repkg source. + + -- Agustin Henze <tin@sluc.org.ar> Mon, 19 Nov 2012 20:34:44 -0300 + +nikola (4.0.3-1) unstable; urgency=low + + * Initial release (Closes: #690159). + + -- Agustin Henze <tin@sluc.org.ar> Wed, 09 Oct 2012 18:10:41 -0300 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..acd34c9 --- /dev/null +++ b/debian/control @@ -0,0 +1,89 @@ +Source: nikola +Section: python +Priority: optional +Maintainer: Unit 193 <unit193@unit193.net> +Build-Depends: + debhelper-compat (= 13), + dh-python, + bash-completion, + python3-all, + python3-aiohttp <!nocheck>, + python3-babel <!nocheck>, + python3-blinker, + python3-dateutil <!nocheck>, + python3-doit (>= 0.32.0~), + python3-docutils, + python3-freezegun <!nocheck>, + python3-ipykernel <!nocheck>, + python3-jinja2 <!nocheck>, + python3-lxml, + python3-mako, + python3-markdown <!nocheck>, + python3-natsort, + python3-notebook <!nocheck>, + python3-phpserialize <!nocheck>, + python3-piexif, + python3-pil <!nocheck>, + python3-pygments, + python3-pyrss2gen, + python3-pytest <!nocheck>, + python3-pytest-cov <!nocheck>, + python3-requests, + python3-ruamel.yaml <!nocheck>, + python3-setuptools, + python3-toml <!nocheck>, + python3-typogrify <!nocheck>, + python3-unidecode, + python3-watchdog <!nocheck>, + python3-yaml <!nocheck>, + python3-yapsy, +Rules-Requires-Root: no +Standards-Version: 4.6.2 +Homepage: https://getnikola.com/ +Vcs-Git: https://git.unit193.net/cgit/users/unit193/nikola.git +Vcs-Browser: https://git.unit193.net/cgit/users/unit193/nikola.git + +Package: nikola +Architecture: all +Depends: + ${python3:Depends}, + ${misc:Depends}, + libjs-bootstrap4, + libjs-jquery, +# libjs-popper.js, + node-html5shiv, +Recommends: + python3-typogrify, + python3-ws4py, + python3-watchdog, +Suggests: + python3-jinja2, + python3-feedparser, + ipython, + bpython, + pandoc, + python3-textile, + txt2tags, + node-less, + python3-pygal, +Description: simple yet powerful and flexible static website and blog generator + Nikola is a static site and blog generator. Feed information to it on one + side and get a ready-to-deploy website on the other. + . + Nikola goodies on generating static pages are, between others, that: + * Static websites are safer, no database nor dynamic code interpreter needed + * They use fewer resources + * You avoid vendor and platform lockin. + . + Between some of Nikola's features you may find: + * Blog generator, including tags, feeds, archives, comments, etc. + * Theme support + * Fast building process, thanks to doit + * Easy Image Gallery, just drop files in a folder! + * reStructuredText or Markdown as Input languages + * Flexible design + * Small codebase. + * Syntax highlighting for almost any programming language or markup + * Multi-language sites + * Small, since based on leverages existing tools + * Between others diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9c88946 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,250 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Nikola +Upstream-Contact: Roberto Alsina <ralsina@kde.org> +Source: https://github.com/getnikola/nikola + +Files: * +Copyright: (c) 2012-2013 Roberto Alsina y otros. +License: Expat + +Files: nikola/rc4.py +Copyright: (C) 2012 Bo Zhu http://about.bozhu.me +License: Expat + +Files: nikola/plugins/compile/misaka.py +Copyright: (c) 2013 Chris Lee +License: Expat + +Files: nikola/plugins/compile/markdown/mdx_podcast.py +Copyright: (c) 2013 Michael Rabbitt, Roberto Alsina +License: Expat + +Files: nikola/plugins/compile_markdown/mdx_gist.py +Copyright: (c) 2013 Michael Rabbitt +License: Expat + +Files: nikola/plugins/compile/ipynb* +Copyright: (c) 2013 Damian Avila +License: Expat + +Files: nikola/plugins/task_localsearch/files/* +Copyright: (c) 2013 Tipue +License: Expat + +Files: bower_components/bootstrap/* +Copyright: (c) 2011-2014 Twitter, Inc +License: Expat + +Files: bower_components/jquery/* +Copyright: 2005, 2014 jQuery Foundation, Inc. and other contributors +License: Expat + +Files: bower_components/jquery-colorbox/* +Copyright: 2014 Jack Moore +License: Expat + +Files: nikola/data/themes/base/assets/js/html5.js +Copyright: @afarkas @jdalton @jon_neal @rem +License: Expat + +Files: nikola/packages/tzlocal/* +Copyright: Public domain (CC0) +License: CC0 + +Files: nikola/packages/datecond/* +Copyright: 2016 Chris Warrick +License: BSD-3 + +Files: debian/* +Copyright: (C) 2012-2013 Agustin Henze <tin@debian.org> +License: GPL-3 + +License: GPL-3 + 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 3 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 + . + On Debian systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-3'. + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +License: CC0 + Creative Commons Legal Code + . + CC0 1.0 Universal + . + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + . + Statement of Purpose + . + The laws of most jurisdictions throughout the world automatically confer + exclusive Copyright and Related Rights (defined below) upon the creator + and subsequent owner(s) (each and all, an "owner") of an original work of + authorship and/or a database (each, a "Work"). + . + Certain owners wish to permanently relinquish those rights to a Work for + the purpose of contributing to a commons of creative, cultural and + scientific works ("Commons") that the public can reliably and without fear + of later claims of infringement build upon, modify, incorporate in other + works, reuse and redistribute as freely as possible in any form whatsoever + and for any purposes, including without limitation commercial purposes. + These owners may contribute to the Commons to promote the ideal of a free + culture and the further production of creative, cultural and scientific + works, or to gain reputation or greater distribution for their Work in + part through the use and efforts of others. + . + For these and/or other purposes and motivations, and without any + expectation of additional consideration or compensation, the person + associating CC0 with a Work (the "Affirmer"), to the extent that he or she + is an owner of Copyright and Related Rights in the Work, voluntarily + elects to apply CC0 to the Work and publicly distribute the Work under its + terms, with knowledge of his or her Copyright and Related Rights in the + Work and the meaning and intended legal effect of CC0 on those rights. + . + 1. Copyright and Related Rights. A Work made available under CC0 may be + protected by copyright and related or neighboring rights ("Copyright and + Related Rights"). Copyright and Related Rights include, but are not + limited to, the following: + . + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); + iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and + vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + . + 2. Waiver. To the greatest extent permitted by, but not in contravention + of, applicable law, Affirmer hereby overtly, fully, permanently, + irrevocably and unconditionally waives, abandons, and surrenders all of + Affirmer's Copyright and Related Rights and associated claims and causes + of action, whether now known or unknown (including existing as well as + future claims and causes of action), in the Work (i) in all territories + worldwide, (ii) for the maximum duration provided by applicable law or + treaty (including future time extensions), (iii) in any current or future + medium and for any number of copies, and (iv) for any purpose whatsoever, + including without limitation commercial, advertising or promotional + purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each + member of the public at large and to the detriment of Affirmer's heirs and + successors, fully intending that such Waiver shall not be subject to + revocation, rescission, cancellation, termination, or any other legal or + equitable action to disrupt the quiet enjoyment of the Work by the public + as contemplated by Affirmer's express Statement of Purpose. + . + 3. Public License Fallback. Should any part of the Waiver for any reason + be judged legally invalid or ineffective under applicable law, then the + Waiver shall be preserved to the maximum extent permitted taking into + account Affirmer's express Statement of Purpose. In addition, to the + extent the Waiver is so judged Affirmer hereby grants to each affected + person a royalty-free, non transferable, non sublicensable, non exclusive, + irrevocable and unconditional license to exercise Affirmer's Copyright and + Related Rights in the Work (i) in all territories worldwide, (ii) for the + maximum duration provided by applicable law or treaty (including future + time extensions), (iii) in any current or future medium and for any number + of copies, and (iv) for any purpose whatsoever, including without + limitation commercial, advertising or promotional purposes (the + "License"). The License shall be deemed effective as of the date CC0 was + applied by Affirmer to the Work. Should any part of the License for any + reason be judged legally invalid or ineffective under applicable law, such + partial invalidity or ineffectiveness shall not invalidate the remainder + of the License, and in such case Affirmer hereby affirms that he or she + will not (i) exercise any of his or her remaining Copyright and Related + Rights in the Work or (ii) assert any associated claims and causes of + action with respect to the Work, in either case contrary to Affirmer's + express Statement of Purpose. + . + 4. Limitations and Disclaimers. + . + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. + + +License: BSD-3 + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions, and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + 3. Neither the name of the author of this software nor the names of + contributors to this software may be used to endorse or promote + products derived from this software without specific prior written + consent. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/nikola.bash-completion b/debian/nikola.bash-completion new file mode 100644 index 0000000..6c9035b --- /dev/null +++ b/debian/nikola.bash-completion @@ -0,0 +1 @@ +_nikola_bash nikola diff --git a/debian/nikola.dirs b/debian/nikola.dirs new file mode 100644 index 0000000..1cda6fd --- /dev/null +++ b/debian/nikola.dirs @@ -0,0 +1,2 @@ +/usr/share/doc/nikola +/usr/share/zsh/functions/Completion/Linux diff --git a/debian/nikola.docs b/debian/nikola.docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/nikola.docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/nikola.links b/debian/nikola.links new file mode 100644 index 0000000..db39aad --- /dev/null +++ b/debian/nikola.links @@ -0,0 +1,26 @@ +/usr/share/javascript/jquery/jquery.min.js +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4/assets/js/jquery.min.js + +/usr/share/javascript/jquery/jquery.min.js +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4-jinja/assets/js/jquery.min.js + +/usr/share/javascript/bootstrap4/js/bootstrap.min.js +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4/assets/js/bootstrap.min.js + +/usr/share/javascript/bootstrap4/js/bootstrap.min.js +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4-jinja/assets/js/bootstrap.min.js + +/usr/share/javascript/bootstrap4/css/bootstrap.min.css +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4/assets/css/bootstrap.min.css + +/usr/share/javascript/bootstrap4/css/bootstrap.min.css +/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4-jinja/assets/css/bootstrap.min.css + +#/usr/share/nodejs/popper.js/dist/popper.min.js +#/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4/assets/js/popper.min.js + +#/usr/share/nodejs/popper.js/dist/popper.min.js +#/usr/lib/python3/dist-packages/nikola/data/themes/bootstrap4-jinja/assets/js/popper.min.js + +/usr/share/nodejs/html5shiv/dist/html5shiv-printshiv.min.js +/usr/lib/python3/dist-packages/nikola/data/themes/base/assets/js/html5shiv-printshiv.min.js diff --git a/debian/nikola.sh b/debian/nikola.sh new file mode 100755 index 0000000..b5b2458 --- /dev/null +++ b/debian/nikola.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export PYTHONPATH=${ROOT_PATH} +${ROOT_PATH}/debian/nikola/usr/bin/nikola $@ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c3aa3df --- /dev/null +++ b/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export PYBUILD_NAME=nikola +export ROOT_PATH=$(CURDIR) +export LC_ALL=C.UTF-8 + +%: + dh $@ --with python3,bash-completion --buildsystem=pybuild + +override_dh_clean: + dh_clean + rm -rf cache + rm -f .doit.db + rm -f _nikola_zsh + rm -f _nikola_bash + rm -rf debian/dpackaging_site + rm -f debian/source/include-binaries + rm -rf Nikola.egg-info + +override_dh_bash-completion: + ./debian/nikola.sh init -q debian/dpackaging_site + cd debian/dpackaging_site/ && ../nikola.sh tabcompletion --shell bash --hardcode-tasks > ../../_nikola_bash + cd debian/dpackaging_site/ && ../nikola.sh tabcompletion --shell zsh --hardcode-tasks > ../../_nikola_zsh + dh_bash-completion + cp _nikola_zsh debian/nikola/usr/share/zsh/functions/Completion/Linux/_nikola + +override_dh_auto_install: + dh_auto_install + # Remove copy of licenses + find debian/nikola -name "MIT-LICENSE.txt" -type f -exec rm {} + + find debian/nikola -name "LICENSE.txt" -type f -exec rm {} + + find debian/nikola -name "LICENSE" -type f -exec rm {} + + # Drop wrong permission + find debian/nikola/usr/lib -perm /a+x -type f -exec chmod -x {} + + +override_dh_installdocs: + rst2html docs/creating-a-site.rst debian/nikola/usr/share/doc/nikola/creating-a-site.html + rst2html docs/creating-a-theme.rst debian/nikola/usr/share/doc/nikola/creating-a-theme.html + rst2html docs/extending.rst debian/nikola/usr/share/doc/nikola/extending.html + rst2html docs/internals.rst debian/nikola/usr/share/doc/nikola/internals.html + rst2html docs/manual.rst debian/nikola/usr/share/doc/nikola/manual.html + rst2html docs/path_handlers.rst debian/nikola/usr/share/doc/nikola/path_handlers.html + rst2html docs/social_buttons.rst debian/nikola/usr/share/doc/nikola/social_buttons.html + rst2html docs/support.rst debian/nikola/usr/share/doc/nikola/support.html + rst2html docs/theming.rst debian/nikola/usr/share/doc/nikola/theming.html + rst2html docs/template-variables.rst debian/nikola/usr/share/doc/nikola/template-variables.html + dh_installdocs 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..d3cd890 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/getnikola/nikola/releases .*/v?([0-9.]*).tar.gz |
