Compare commits
9 commits
70c11d34fc
...
b504c36ae5
Author | SHA1 | Date | |
---|---|---|---|
b504c36ae5 | |||
00254086fe | |||
7576aab6e1 | |||
f826a78219 | |||
073af092f6 | |||
6ac7a64d19 | |||
c42685d825 | |||
c0aca35c29 | |||
f8c1d7df47 |
8 changed files with 157 additions and 0 deletions
26
debian/changelog
vendored
Normal file
26
debian/changelog
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
python-feedgen (1.0.0-4) sid; urgency=medium
|
||||||
|
|
||||||
|
* Adding vcs fields.
|
||||||
|
* Using codenames in changelog.
|
||||||
|
* Updating year in debian copyright for 2025.
|
||||||
|
|
||||||
|
-- Daniel Baumann <daniel@debian.org> Wed, 05 Feb 2025 09:29:52 +0100
|
||||||
|
|
||||||
|
python-feedgen (1.0.0-3) sid; urgency=medium
|
||||||
|
|
||||||
|
* Adding patch from Lars Kellogg-Stedman <lars@oddbit.com> to fix links
|
||||||
|
in atom feeds.
|
||||||
|
|
||||||
|
-- Daniel Baumann <daniel@debian.org> Sat, 14 Dec 2024 07:01:35 +0100
|
||||||
|
|
||||||
|
python-feedgen (1.0.0-2) sid; urgency=medium
|
||||||
|
|
||||||
|
* Adding python3-dateutil to build-depends to fix FTBFS in test target.
|
||||||
|
|
||||||
|
-- Daniel Baumann <daniel@debian.org> Sat, 14 Dec 2024 05:13:11 +0100
|
||||||
|
|
||||||
|
python-feedgen (1.0.0-1) sid; urgency=medium
|
||||||
|
|
||||||
|
* Initial upload to sid (depends of ablog).
|
||||||
|
|
||||||
|
-- Daniel Baumann <daniel@debian.org> Thu, 12 Dec 2024 12:18:31 +0100
|
26
debian/control
vendored
Normal file
26
debian/control
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
Source: python-feedgen
|
||||||
|
Section: python
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Daniel Baumann <daniel@debian.org>
|
||||||
|
Build-Depends:
|
||||||
|
debhelper-compat (= 13),
|
||||||
|
dh-sequence-python3,
|
||||||
|
python3-all,
|
||||||
|
python3-dateutil <!nocheck>,
|
||||||
|
python3-lxml <!nocheck>,
|
||||||
|
python3-setuptools,
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
Standards-Version: 4.7.0
|
||||||
|
Homepage: https://github.com/lkiesow/python-feedgen
|
||||||
|
Vcs-Browser: https://forgejo.debian.net/python/python-feedgen
|
||||||
|
Vcs-Git: https://forgejo.debian.net/python/python-feedgen
|
||||||
|
|
||||||
|
Package: python3-feedgen
|
||||||
|
Section: python
|
||||||
|
Architecture: all
|
||||||
|
Depends:
|
||||||
|
${misc:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
Description: generate ATOM and RSS feeds (Python)
|
||||||
|
This Python module can be used to generate web feeds in both ATOM and RSS
|
||||||
|
format.
|
52
debian/copyright
vendored
Normal file
52
debian/copyright
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: python-feedgen
|
||||||
|
Upstream-Contact: https://github.com/lkiesow/python-feedgen/issues
|
||||||
|
Source: https://github.com/lkiesow/python-feedgen/tags
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2017-2023 Lars Kiesow <lkiesow@uos.de>
|
||||||
|
License: BSD-2-clause or LGPL-3+
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2024-2025 Daniel Baumann <daniel.baumann@progress-linux.org>
|
||||||
|
License: BSD-2-Clause or LGPL-3+
|
||||||
|
|
||||||
|
License: BSD-2-Clause
|
||||||
|
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.
|
||||||
|
.
|
||||||
|
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 HOLDER 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.
|
||||||
|
|
||||||
|
License: LGPL-3+
|
||||||
|
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 3 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.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
.
|
||||||
|
The complete text of the GNU Lesser General Public License
|
||||||
|
can be found in /usr/share/common-licenses/LGPL-3 file.
|
38
debian/patches/debian/0001-fix-atom-feed-links.patch
vendored
Normal file
38
debian/patches/debian/0001-fix-atom-feed-links.patch
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
Author: Lars Kellogg-Stedman <lars@oddbit.com>
|
||||||
|
Subject: Fix handling of links in atom feeds
|
||||||
|
The existing code iterated over entry links like this:
|
||||||
|
.
|
||||||
|
for link in self.__atom_link or []:
|
||||||
|
link = xml_elem('link', entry, href=link['href'])
|
||||||
|
.
|
||||||
|
The first line in the loop overwrites the `link` variable, rendering the
|
||||||
|
rest of the loop a no-op. This commit corrects the situation by creating a
|
||||||
|
new variable rather than overwriting the loop variable.
|
||||||
|
|
||||||
|
diff -Naurp python-feedgen.orig/feedgen/entry.py python-feedgen/feedgen/entry.py
|
||||||
|
--- python-feedgen.orig/feedgen/entry.py
|
||||||
|
+++ python-feedgen/feedgen/entry.py
|
||||||
|
@@ -137,17 +137,17 @@ class FeedEntry(object):
|
||||||
|
_add_text_elm(entry, self.__atom_content, 'content')
|
||||||
|
|
||||||
|
for link in self.__atom_link or []:
|
||||||
|
- link = xml_elem('link', entry, href=link['href'])
|
||||||
|
+ linkelm = xml_elem('link', entry, href=link['href'])
|
||||||
|
if link.get('rel'):
|
||||||
|
- link.attrib['rel'] = link['rel']
|
||||||
|
+ linkelm.attrib['rel'] = link['rel']
|
||||||
|
if link.get('type'):
|
||||||
|
- link.attrib['type'] = link['type']
|
||||||
|
+ linkelm.attrib['type'] = link['type']
|
||||||
|
if link.get('hreflang'):
|
||||||
|
- link.attrib['hreflang'] = link['hreflang']
|
||||||
|
+ linkelm.attrib['hreflang'] = link['hreflang']
|
||||||
|
if link.get('title'):
|
||||||
|
- link.attrib['title'] = link['title']
|
||||||
|
+ linkelm.attrib['title'] = link['title']
|
||||||
|
if link.get('length'):
|
||||||
|
- link.attrib['length'] = link['length']
|
||||||
|
+ linkelm.attrib['length'] = link['length']
|
||||||
|
|
||||||
|
_add_text_elm(entry, self.__atom_summary, 'summary')
|
||||||
|
|
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
debian/0001-fix-atom-feed-links.patch
|
10
debian/rules
vendored
Executable file
10
debian/rules
vendored
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export PYBUILD_NAME=feedgen
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh ${@} --buildsystem=pybuild
|
||||||
|
|
||||||
|
execute_after_dh_auto_clean:
|
||||||
|
# help pybuild
|
||||||
|
rm -rf *.egg-info
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
3
debian/watch
vendored
Normal file
3
debian/watch
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
version=4
|
||||||
|
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/feedgen-$1\.tar\.gz/ \
|
||||||
|
https://github.com/lkiesow/python-feedgen/tags .*/v?(\d\S+)\.tar\.gz
|
Loading…
Add table
Reference in a new issue