File gtorrentviewer.spec of Package gtorrentviewer

#
# spec file for package gtorrentviewer
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           gtorrentviewer
Version:        0.2b
Release:        0
License:        GPL-2.0+
Summary:        Viewer and Editor for BitTorrent Meta Files
Url:            http://gtorrentviewer.sourceforge.net/
Group:          Productivity/Networking/File-Sharing
Source0:        http://downloads.sourceforge.net/%{name}/GTorrentViewer-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM gtorrentviewer-0.2b-desktop.patch rh#206262 -- Let drag and drop work with URIs as well as files
Patch0:         gtorrentviewer-0.2b-desktop.patch
# PATCH-FIX-UPSTREAM gtorrentviewer-0.2b-dso-linking.patch rh#564928 -- mainwindow.c requires ceil() from libm
Patch1:         gtorrentviewer-0.2b-dso-linking.patch
# PATCH-FIX-UPSTREAM GTorrentViewer-0.2b-tracker-details-refresh.patch rh#542502, rh#572806 -- Fix crash due to use of uninitialized GValue
Patch2:         GTorrentViewer-0.2b-tracker-details-refresh.patch
# PATCH-FIX-UPSTREAM gtorrentviewer-0.2b-trackerdetails.patch rh#674726 -- Improve tracker support
Patch3:         gtorrentviewer-0.2b-trackerdetails.patch
# PATCH-FIX-UPSTREAM GTorrentViewer-0.2b-curl-types.patch -- <curl/types.h> went away in curl 7.22.0
Patch4:         GTorrentViewer-0.2b-curl-types.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-2.0)
BuildRequires:  pkgconfig(libcurl)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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
download.

%prep
%setup -qn GTorrentViewer-%{version}
%patch0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%configure
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}%{_datadir}/{GTorrentViewer/README,pixmaps/%{name}.xpm}
%fdupes -s %{buildroot}
%suse_update_desktop_file %{name}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/GTorrentViewer
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%doc %{_mandir}/man?/*

%changelog
openSUSE Build Service is sponsored by