Репозиторий Sisyphus
Последнее обновление: 21 июня 2018 | Пакетов: 18578 | Посещений: 11724428
en ru br
Репозитории ALT

Группа :: Сети/WWW
Пакет: gtorrentviewer

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

Group: Networking/WWW
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install /usr/bin/glib-gettextize
# END SourceDeps(oneline)
%define fedora 27
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: gtorrentviewer
Version: 0.2b
Release: alt4_38
Summary: A GTK2-based viewer and editor for BitTorrent meta files
License: GPL+
URL: http://gtorrentviewer.sourceforge.net/
Source0: http://downloads.sf.net/gtorrentviewer/GTorrentViewer-%{version}.tar.gz
Patch0: gtorrentviewer-0.2b-desktop.patch
Patch1: gtorrentviewer-0.2b-dso-linking.patch
Patch2: GTorrentViewer-0.2b-tracker-details-refresh.patch
Patch3: gtorrentviewer-0.2b-trackerdetails.patch
Patch4: GTorrentViewer-0.2b-curl-types.patch
Patch5: GTorrentViewer-0.2b-format.patch
Patch6: GTorrentViewer-0.2b-missing-tracker.patch
BuildRequires: coreutils
BuildRequires: gcc
BuildRequires: gtk-builder-convert gtk-demo libgail-devel libgtk+2-devel libgtk+2-gir-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext gettext-tools
BuildRequires: intltool
BuildRequires: libcurl-devel

# Scriptlets replaced by File Triggers from Fedora 26 onwards

%if 0%{?fedora} < 26 && 0%{?rhel} < 8
Requires(post):  desktop-file-utils
Requires(postun): desktop-file-utils
Source44: import.info

GTorrentViewer gives you the ability to see and modify all the possible
information from .torrent files without having to start downloading, and
the ability to see in real time the current number of seeds and peers on
the torrent, so you will always know the status before starting the

%setup -q -n GTorrentViewer-%{version}

# Let drag and drop work with URIs as well as files (#206262)

# Also drop ".png" suffix from icon filename, as per Icon Theme spec

# mainwindow.c requires ceil() from libm (#564928)

%patch1 -p1

# Fix crash due to use of uninitialized GValue (#542502, #572806)

%patch2 -p1

# Improve tracker support (#674726)

%patch3 -p1

# <curl/types.h> went away in curl 7.22.0

%patch4 -p1

# Add missing format strings in g_warning() invocations


# Avoid segfault when dealing with torrent that has no tracker (#1178062)


# curl/types.h are no more; was true for  0.2b-22.

sed -i 's,#include <curl/types.h>,,' src/main.c


make install DESTDIR=%{buildroot} INSTALL="install -p"
rm -f %{buildroot}%{_datadir}/GTorrentViewer/README
desktop-file-install \
--vendor "" \
--delete-original \
--dir %{buildroot}%{_datadir}/applications \

desktop-file-install --dir %buildroot%_desktopdir \
       --add-category=FileTransfer \
       --add-category=P2P \

# Scriptlets replaced by File Triggers from Fedora 26 onwards

%if 0%{?_licensedir:1}
%doc --no-dereference COPYING


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

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