File transmission.spec of Package transmission

#
# spec file for package transmission (Version 1.34)
#
# Copyright (c) 2008 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
Summary:        Lightweight, yet powerful BitTorrent client
Source:         http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2
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

%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
* Tue Sep 23 2008 maw@suse.de
- Update to version 1.34:
  + All Clients:
  * Don't reconnect too frequently to the same peer
  * Webseed bugfix
  * Fix bug that caused some transfers to not be scraped
  * Handle OpenTracker's `downloaded' key in announce responses
  + GTK+
  * Minor display fixes
  * Updated translations
  + Daemon+:
  * Minor display fixes
  + Web Client:
  * Minor display fixes
  + CLI:
  * Fix crash when creating a torrent file.
* Fri Sep 12 2008 maw@suse.de
- Update to version 1.33:
  + Too many changes and bugfixes to list; see the included NEWS
  file.
* Fri Aug 22 2008 meissner@suse.de
- actually use optflags.
* Mon Apr 14 2008 vuntz@suse.de
- Update to version 1.11:
  + Fix a couple of minor display issues
* Fri Apr 04 2008 vuntz@suse.de
- Import from the build service, with cleanups.
* Thu Apr 03 2008 awafaa@opensuse.org 
- Initial build in new repository
- Create a .changes file
  Sat Mar 29 2008 Pascal Bleser <guru@unixtech.be> 1.10
- new upstream version
  Wed Feb 27 2008 Pascal Bleser <guru@unixtech.be> 1.06
- new upstream version
  Sat Feb  9 2008 Pascal Bleser <guru@unixtech.be> 1.05
- new upstream version
  Sat Feb  2 2008 Pascal Bleser <guru@unixtech.be> 1.04
- new upstream version
  Wed Jan 30 2008 Pascal Bleser <guru@unixtech.be> 1.03
- new upstream version
  Wed Jan 23 2008 Pascal Bleser <guru@unixtech.be> 1.02
- new upstream version
  Sat Jan 12 2008 Pascal Bleser <guru@unixtech.be> 1.01
- update to 1.01
  Sat Jan  5 2008 Pascal Bleser <guru@unixtech.be> 1.00
- update to 1.00
  Wed Jan  2 2008 Pascal Bleser <guru@unixtech.be> 0.96
- update to 0.96
  Wed Dec  5 2007 Pascal Bleser <guru@unixtech.be> 0.95
- update to 0.95
  Tue Nov 27 2007 Pascal Bleser <guru@unixtech.be> 0.94
- update to 0.94
  Tue Nov 13 2007 Pascal Bleser <guru@unixtech.be> 0.93
- update to 0.93
  Mon Oct 29 2007 Pascal Bleser <guru@unixtech.be> 0.91
- removed libevent BuildRequires, has an in-tree copy that is used anyway
- update to 0.91
  Thu Oct 25 2007 Pascal Bleser <guru@unixtech.be> 0.90
- lots of upstream cleanups, dropped patches
- gettext translations are now in the main package instead of in -gtk
- several binary renames
- man pages have been removed by upstream
- uses autotools now
- zsh completion has been removed by upstream
- update to 0.90
  Wed Oct  3 2007 Pascal Bleser <guru@unixtech.be> 0.82
- cli subpackage merged in (and provided by main package)
- gtk subpackage split out
- merged with Carlos Rodgriguez' transmission spec file
- moved to openSUSE Build Service
  Sun Sep 23 2007 Pascal Bleser <guru@unixtech.be> 0.82-0.pm.1
- moved to Packman
- new upstream version
  Tue Aug  7 2007 Pascal Bleser <guru@unixtech.be> 0.80-1
- new upstream version
  Tue May  1 2007 Pascal Bleser <guru@unixtech.be> 0.72-1
- now builds transmission daemon, proxy and remote
- new upstream version
  Tue Apr 24 2007 Pascal Bleser <guru@unixtech.be> 0.71-1
- new upstream version
  Wed Apr 18 2007 Pascal Bleser <guru@unixtech.be> 0.70-1
- new upstream version
  Fri Nov 10 2006 Pascal Bleser <guru@unixtech.be> 0.6.1-2
- added patch to disable broken gtk2 version test in configure, to build properly on 10.2beta with GTK2 2.10.x and enforce >= 2.6.0 through BuildRequires instead
  Tue Aug  8 2006 Pascal Bleser <guru@unixtech.be> 0.6.1-1
- new package
openSUSE Build Service is sponsored by