File transmission.spec of Package transmission

#
# spec file for package transmission (Version 1.34)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           transmission
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  libcurl-devel
BuildRequires:  libnotify-devel
BuildRequires:  openssl-devel
BuildRequires:  update-desktop-files
BuildRequires:  gtk2-devel >= 2.6.0
Version:        1.34
Release:        1.<RELEASE33>
Summary:        Lightweight, yet powerful BitTorrent client
Source:         http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM transmission-CVE-2010-0012.patch vuntz@opensuse.org -- Taken from Debian
Patch1:         transmission-CVE-2010-0012.patch
# PATCH-FIX-UPSTREAM transmission-data-corruption-ticket1242.patch vuntz@opensuse.org -- Taken from upstream
Patch2:         transmission-data-corruption-ticket1242.patch
Url:            http://www.transmissionbt.com/
Group:          Productivity/Networking/Other
License:        GPL v2 only; X11/MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
Transmission is a fast, easy, and free multi-platform BitTorrent client
with a focus on being lightweight yet feature-filled. Its simple,
intuitive interface is designed to integrate tightly with whatever
computing environment you choose to use. Transmission strikes a balance
between providing useful functionality without feature bloat.
Furthermore, it is free for anyone to use or modify.



Authors:
--------
    Mitchell Livingston <livings124@gmail.com>
    Charles Kerr <charles@rebelbase.com>
    Eric Petit <titer@m0k.org>
    Josh Elsasser <josh@elsasser.org>
    Bryan Varner <bryan@varnernet.com>

%package gtk
License:        GPL v2 only; X11/MIT
Summary:        Lightweight, yet powerful BitTorrent client
Group:          Productivity/Networking/Other
Requires:       %{name}-lang = %{version}

%description gtk
Transmission is a fast, easy, and free multi-platform BitTorrent client
with a focus on being lightweight yet feature-filled. Its simple,
intuitive interface is designed to integrate tightly with whatever
computing environment you choose to use. Transmission strikes a balance
between providing useful functionality without feature bloat.
Furthermore, it is free for anyone to use or modify.

This package contains a graphical user interface to transmission.



Authors:
--------
    Mitchell Livingston <livings124@gmail.com>
    Charles Kerr <charles@rebelbase.com>
    Eric Petit <titer@m0k.org>
    Josh Elsasser <josh@elsasser.org>
    Bryan Varner <bryan@varnernet.com>

%lang_package
%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
%configure \
	--with-gtk
%__make %{?jobs:-j%{jobs}} CFLAGS="$RPM_OPT_FLAGS -fPIC" CXXFLAGS="$RPM_OPT_FLAGS -fPIC"

%install
%makeinstall
rm -rf $RPM_BUILD_ROOT/%{_datadir}/transmission/web
%find_lang %{name}
%suse_update_desktop_file -r transmission Network P2P
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README COPYING
%{_bindir}/transmission-daemon
%{_bindir}/transmission-remote
%{_bindir}/transmissioncli
%doc %{_mandir}/man1/transmission-daemon.1*
%doc %{_mandir}/man1/transmission-remote.1*
%doc %{_mandir}/man1/transmissioncli.1*

%files lang -f %{name}.lang

%files gtk
%defattr(-,root,root)
%doc AUTHORS NEWS README COPYING
%{_bindir}/transmission
%{_datadir}/applications/transmission.desktop
%{_datadir}/icons/*/*/apps/transmission.*
%{_datadir}/pixmaps/transmission.png
%doc %{_mandir}/man1/transmission.1*

%changelog
openSUSE Build Service is sponsored by