Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37478328
en ru br
Репозитории ALT
S:3.11.3-alt1
5.1: 0.12.1-alt1
4.1: 0.10.3-alt1.1.qa1
www.altlinux.org/Changes

Группа :: Сети/Новости
Пакет: gpodder

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable snapshot
%def_enable check

Name: gpodder
Version: 3.11.3
Release: alt1

Summary: Media aggregator and podcast client
License: GPL-3.0-or-later
Group: Networking/News
Url: https://gpodder.org

%if_disabled snapshot
Source: https://github.com/gpodder/gpodder/archive/%version/%name-%version.tar.gz
%else
Vcs: https://github.com/gpodder/gpodder.git
Source: %name-%version.tar
%endif
Patch: %name-3.11.1-alt-AyatanaAppIndicator.patch

BuildArch: noarch

%add_python3_path %_datadir/%name

# should be provided by python3-module-requests

%add_python3_req_skip requests.packages.urllib3.exceptions
%add_python3_req_skip requests.packages.urllib3.util.retry

# M$ and ubuntu specific

%add_python3_req_skip comtypes pywintypes win32gui appindicator
%filter_from_requires /win32ctypes/d
%add_typelib_req_skiplist typelib(Unity)
# Optional dependencies
# https://github.com/SoCo/SoCo
%add_python3_req_skip soco
# https://github.com/freevo/kaa-metadata
# last commit in 2015
%add_python3_req_skip kaa.metadata

%define urllib3_ver 1.26.5
%define mgpoclient_ver 1.8
%define podcastparser_ver 0.6.9

Requires: typelib(Gtk) = 3.0 typelib(WebKit2) = 4.0
Requires: python3-module-mygpoclient >= %mgpoclient_ver
Requires: python3-module-podcastparser >= %podcastparser_ver
Requires: python3-module-urllib3 >= %urllib3_ver
Requires: %_bindir/ffmpeg xdg-utils
Requires: python3-module-eyeD3

BuildRequires(pre): rpm-build-python3 rpm-build-gir
BuildRequires: python3-devel python3-module-mygpoclient
BuildRequires: python3-module-feedparser
BuildRequires: help2man intltool desktop-file-utils
%if_enabled check
BuildRequires: %_bindir/py.test3
BuildRequires: python3-module-pytest-cov python3-module-pytest-httpserver
BuildRequires: python3-module-podcastparser >= %podcastparser_ver python3-modules-sqlite3
BuildRequires: python3-module-minimock python3-module-coverage
BuildRequires: python3-module-requests
%endif

%description
gPodder lets you manage your Podcast subscriptions, discover new content
and download episodes to your devices.
You can also take advantage of the service gpodder.net, which lets you
sync subscriptions, playback progress and starred episodes.

%prep
%setup
%autopatch -p1
find ./ -name "*.py" -print0 | \
xargs -r0 sed -i -e "s|\(#\!/usr/bin/python\)$|\13|" --

%build
%make

%install
%makeinstall_std

%find_lang %name
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=Tuner \
%buildroot%_desktopdir/gpodder.desktop

%check
PYTHON=python3 PYTEST=%_bindir/py.test3 %make unittest

%files -f %name.lang
%_bindir/*
%python3_sitelibdir/*
%_desktopdir/%name.desktop
%_desktopdir/%name-url-handler.desktop
%_datadir/dbus-1/services/org.gpodder.service
%_datadir/%name
%_iconsdir/hicolor/*/apps/%name.svg
%_iconsdir/hicolor/*/apps/%name.png
%_man1dir/*
%_datadir/metainfo/*.appdata.xml


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin