Name: transmission Version: 2.33 Release: 1%{?dist} Summary: A lightweight GTK+ BitTorrent client Group: Applications/Internet # See COPYING. This licensing situation is... special. License: MIT and GPLv2 URL: http://www.transmissionbt.com Source0: http://download.transmissionbt.com/files/transmission-%{version}.tar.xz # This is intended to be merged by upstream post 1.80 release Source1: transmission-qt.desktop # init script. Upstream doesn't want it because it is distro specific Source2: transmission-daemon-init # Example conf file Source3: transmission-daemon-sysconfig BuildRequires: openssl-devel >= 0.9.4 BuildRequires: glib2-devel >= 2.15.5 BuildRequires: gtk2-devel >= 2.6.0 BuildRequires: libnotify-devel >= 0.4.3 BuildRequires: libcanberra-devel BuildRequires: libcurl-devel >= 7.16.3 BuildRequires: dbus-glib-devel >= 0.70 BuildRequires: libevent-devel >= 1.4.5 BuildRequires: desktop-file-utils BuildRequires: gettext intltool BuildRequires: qt4-devel # this modification applies to the Qt qtr.pro file Patch1: fix-optflags.patch Requires: transmission-cli Requires: transmission-gtk %description Transmission is a free, lightweight BitTorrent client. It features a simple, intuitive interface on top on an efficient, cross-platform back-end. %package common Summary: Transmission common files Group: Applications/Internet Conflicts: transmission < 1.80-0.3.b4 %description common Common files for Transmission BitTorrent client sub-packages. It includes the web user interface, icons and transmission-remote, transmission-create, transmission-edit, transmission-show utilities. %package cli Summary: Transmission command line implementation Group: Applications/Internet Requires: transmission-common Provides: transmission = %{version}-%{release} %description cli Command line version of Transmission BitTorrent client. %package daemon Summary: Transmission daemon Group: Applications/Internet Requires: transmission-common Requires(pre): shadow-utils Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts Provides: transmission = %{version}-%{release} %description daemon Transmission BitTorrent client daemon. %package gtk Summary: Transmission GTK interface Group: Applications/Internet Requires: transmission-common Obsoletes: transmission <= 1.80-0.3.b4 Provides: transmission = %{version}-%{release} %description gtk GTK graphical interface of Transmission BitTorrent client. %package qt Summary: Transmission Qt interface Group: Applications/Internet Requires: transmission-common %{?_qt4_version:Requires: qt4 >= %{_qt4_version}} %description qt Qt graphical interface of Transmission BitTorrent client. %pre daemon getent group transmission >/dev/null || groupadd -r transmission getent passwd transmission >/dev/null || \ useradd -r -g transmission -d /var/lib/transmission -s /sbin/nologin \ -c "transmission daemon account" transmission exit 0 %prep %setup -q %patch1 -p1 iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new mv AUTHORS.new AUTHORS iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new mv NEWS.new NEWS %build %configure --disable-static --enable-gtk --enable-utp --enable-libcanberra --enable-libnotify --enable-daemon \ --enable-nls --enable-cli --enable-daemon --with-gnu-ld --with-inotify make %{?_smp_mflags} pushd qt qmake-qt4 qtr.pro make %{?_smp_mflags} popd %install mkdir -p %{buildroot}%{_initddir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig install -m755 %{SOURCE2} %{buildroot}%{_initddir}/transmission-daemon install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/transmission-daemon mkdir -p %{buildroot}/var/lib/transmission make install DESTDIR=%{buildroot} make install INSTALL_ROOT=%{buildroot}%{_prefix} -C qt %find_lang %{name}-gtk desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gtk.desktop desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1} %post common touch --no-create %{_datadir}/icons/hicolor || : %post daemon /sbin/chkconfig --add transmission-daemon %post gtk update-desktop-database > /dev/null 2>&1 || : %post qt update-desktop-database > /dev/null 2>&1 || : %preun daemon if [ $1 = 0 ] ; then /sbin/service transmission-daemon stop >/dev/null 2>&1 /sbin/chkconfig --del transmission-daemon fi %postun common if [ $1 -eq 0 ]; then touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun daemon if [ "$1" -ge "1" ] ; then /sbin/service transmission-daemon condrestart >/dev/null 2>&1 || : fi %postun gtk update-desktop-database > /dev/null 2>&1 || : %postun qt update-desktop-database > /dev/null 2>&1 || : %posttrans common %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %files %files common %doc AUTHORS COPYING NEWS README %{_bindir}/transmission-remote %{_bindir}/transmission-create %{_bindir}/transmission-edit %{_bindir}/transmission-show %{_datadir}/transmission/ %{_datadir}/pixmaps/* %{_datadir}/icons/hicolor/*/apps/transmission.* %doc %{_mandir}/man1/transmission-remote* %doc %{_mandir}/man1/transmission-create* %doc %{_mandir}/man1/transmission-edit* %doc %{_mandir}/man1/transmission-show* %files cli %{_bindir}/transmission-cli %doc %{_mandir}/man1/transmission-cli* %files daemon %{_bindir}/transmission-daemon %{_initddir}/transmission-daemon %config(noreplace) %{_sysconfdir}/sysconfig/transmission-daemon %attr(-,transmission, transmission)/var/lib/transmission/ %doc %{_mandir}/man1/transmission-daemon* %files gtk -f %{name}-gtk.lang %{_bindir}/transmission-gtk %{_datadir}/applications/transmission-gtk.desktop %doc %{_mandir}/man1/transmission-gtk.* %files qt %{_bindir}/transmission-qt %{_datadir}/applications/transmission-qt.desktop %doc %{_mandir}/man1/transmission-qt.* %changelog * Thu Jul 21 2011 Raghu Udiyar - 2.33-1 - https://trac.transmissionbt.com/wiki/Changes#version-2.33 - Remove deprecated gconf2 dependencies * Tue Jul 05 2011 Rahul Sundaram - 2.32-1 - Upstream 2.32 release - https://trac.transmissionbt.com/wiki/Changes#version-2.32 - Drop defattr throughout the spec since recent RPM makes it redundant * Sun Apr 24 2011 Rahul Sundaram - 2.31-1 - Upstream 2.31 release - https://trac.transmissionbt.com/wiki/Changes#version-2.31 - Fix source url * Sun Apr 24 2011 Rahul Sundaram - 2.30-0.b3 - Upstream 2.30 Beta 3 release - https://trac.transmissionbt.com/wiki/Changes#version-2.30b3 * Mon Apr 04 2011 Rahul Sundaram - 2.30-0.b1 - Upstream 2.30 Beta 1 release - Enable configure options explicitly - Drop source and patch for icons since it is now upstream - https://trac.transmissionbt.com/wiki/Changes#version-2.30b1 * Major changes include the following: * µTP, UDP tracker, Multiscrape support * Download scarcest pieces first * The "lazy bitfield" feature has been superseded by the "Fast Extension" BEP6 * GTK: Register as a magnet link handler in the .desktop file * Web: Peer and Network preferences * Thu Mar 10 2011 Bastien Nocera 2.22-2 - Add new icons * Thu Mar 10 2011 Bastien Nocera 2.22-1 - Update to 2.22 * Wed Mar 2 2011 Ville Skyttä - 2.21-2 - Own %%{_datadir}/transmission dir. * Wed Feb 09 2011 Rahul Sundaram - 2.21-1 - Update to latest upstream release - Drop no longer needed libnotify patch - https://trac.transmissionbt.com/wiki/Changes * Tue Dec 28 2010 Ankur Sinha - 2.13-1 - updated to latest upstream release: https://trac.transmissionbt.com/wiki/Changes - fixes #654793 - update libnotify patch * Sun Nov 07 2010 Ankur Sinha - 2.11-3 - fix build errors - update patch to fix another libnotify breakage * Sun Nov 07 2010 Ankur Sinha - 2.11-2 - added patch to fix breakage for libnotify API changes * Thu Oct 21 2010 Pavol Šimo - 2.11-1 - updated to latest release version - added new files, updated fix-optflag.patch * Wed Sep 29 2010 jkeating - 2.04-3 - Rebuilt for gcc bug 634757 * Mon Sep 20 2010 Ankur Sinha - 2.04-2 - Added patch to fix https://trac.transmissionbt.com/ticket/3539 * Mon Aug 09 2010 Ankur Sinha - 2.04-1 - Updated to latest release - bug 622239 * Wed Jul 21 2010 Ankur Sinha - 2.03-1 - updated to latest release version - bug 616745 * Sun Jun 27 2010 Ankur Sinha - 2.01-2 - corrected build failure * Sun Jun 27 2010 Ankur Sinha - 2.01-1 - https://trac.transmissionbt.com/wiki/Changes * Thu Jun 17 2010 Rahul Sundaram - 2.00-1 - https://trac.transmissionbt.com/wiki/Changes?version=57 - Drop the clean section as it is redundant now * Fri Mar 12 2010 Rahul Sundaram - 1.92-1 - Some bug fixes - http://trac.transmissionbt.com/query?groupdesc=1&group=component&milestone=1.92&order=severity * Mon Mar 07 2010 Rahul Sundaram - 1.91-3 - Don't lose user configuration with updates - Fixes rhbz#571044 * Wed Feb 24 2010 Rex Dieter - 1.91-2 - -common: move icon scriptlets here (where the icons are), update/optimize - -qt : add mime scriptlet * Mon Feb 22 2010 Rahul Sundaram - 1.91-1 - http://trac.transmissionbt.com/wiki/Changes#version-1.91 * Sun Feb 21 2010 Rex Dieter - 1.90-2 - BR: qt4-devel - -qt: Requires: qt4 >= %%_qt4_version * Wed Feb 17 2010 Rahul Sundaram - 1.90-1 - http://trac.transmissionbt.com/browser/trunk/NEWS#L1 - Fix initscript to use the config file properly * Wed Feb 10 2010 Rahul Sundaram - 1.83-3 - rhbz #563090 - fixed config for daemon initscript * Wed Feb 3 2010 Ankur Sinha - 1.83-2 - Bugfix - #560180 - changed init script * Sun Jan 31 2010 Ankur Sinha - 1.83-1 - New Release - Fix 1.80 announce error that caused uploads and downloads to periodically freeze - Fix 1.80 announce timeout error that caused "no response from tracker" message - Fix 1.80 "file not found" error message that stopped some torrents - Fix 1.82 crash when adding new torrents via their ftp URL - Fix 1.80 crash when receiving invalid request messages from peers - Fix 1.82 error when updating the blocklist - http://trac.transmissionbt.com/wiki/Changes#version-1.83 * Mon Jan 25 2010 Rahul Sundaram - 1.82-2 - Fix icon cache * Sun Jan 24 2010 Ankur Sinha - 1.82-1 - Bugfix - http://trac.transmissionbt.com/wiki/Changes#version-1.82 * Thu Jan 21 2010 Rahul Sundaram - 1.80-1 - Many major new features including magnet link support, trackerless torrents - http://trac.transmissionbt.com/wiki/Changes#version-1.80 * Wed Jan 20 2010 Rahul Sundaram - 1.80-0.6.b5 - Add a initscript for transmission daemon. Fixes rhbz#556228 - Description changes, add group for sub-packages and fix make * Thu Jan 14 2010 Rahul Sundaram - 1.80-0.5.b5 - Bug fixes - http://trac.transmissionbt.com/wiki/Changes#version-1.80b5 * Sat Jan 09 2010 Rahul Sundaram - 1.80-0.4.b4 - Build the qt interface as a sub package - Build daemon as a separate sub package - Translations are for only the gtk sub package - Fix obsoletes and add conflicts * Thu Jan 07 2010 Ankur Sinha - 1.80-0.3.b4 - Split package to sub packages * Tue Jan 05 2010 Rahul Sundaram - 1.80-0.2.b4 - Add BR GConf2-devel * Tue Jan 05 2010 Rahul Sundaram - 1.80-0.1.b4 - 1.80 Beta 4 - http://trac.transmissionbt.com/wiki/Changes#version-1.80b4 * Thu Dec 17 2009 Rahul Sundaram - 1.80-0.1.b3 - 1.80 Beta 3 - Enable sounds via libcanberra - http://trac.transmissionbt.com/wiki/Changes#version-1.80b3 * Sun Oct 25 2009 Rahul Sundaram - 1.76-1 - http://trac.transmissionbt.com/wiki/Changes#version-1.76 * Tue Sep 15 2009 Rahul Sundaram - 1.75-1 - new upstream release - Fixes seg fault, rhbz#522783 * Thu Aug 27 2009 Tomas Mraz - 1.74-3 - rebuilt with new openssl * Tue Aug 25 2009 Rahul Sundaram - 1.74-2 - Add source * Tue Aug 25 2009 Rahul Sundaram - 1.74-1 - Bug fix release - http://trac.transmissionbt.com/wiki/Changes - disable static linking explicitly * Sun Jul 26 2009 Fedora Release Engineering - 1.73-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 24 2009 Rahul Sundaram - 1.73-1 - new upstream - switch to using LZMA source * Sun Jun 21 2009 Rahul Sundaram - 1.72-1 - Update to new upstream version - Drop compiler options patch since upstream has fixed this issue * Fri Jun 12 2009 Rahul Sundaram - 1.71-1 - Update to upstream version 1.71 - Update compiler options patch to match new upstream release - Drop patch for not using bundled libevent. Upstream now has been fixed to use the system copy whenever possible - Don't use vendor tag for desktop file. It is not recommended anymore - Follow https://fedoraproject.org/wiki/Packaging/Guidelines#All_patches_should_have_an_upstream_bug_link_or_comment * Thu May 28 2009 Denis Leroy - 1.61-1 - Update to upstream version 1.61 - fallocate patch upstreamed - Patches updated for 1.61 * Fri May 22 2009 Denis Leroy - 1.53-1 - Update to upstream 1.53 - XDG Download patch upstreamed - Security fix CVE-2009-1757 (#500278) * Sat Mar 28 2009 Lubomir Rintel - 1.51-2 - Use XDG Download directory (#490950) * Sat Feb 28 2009 Denis Leroy - 1.51-1 - Update to upstream 1.51 - Added icon cache scriplets (#487824) * Wed Feb 25 2009 Fedora Release Engineering - 1.50-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 20 2009 Denis Leroy - 1.50-1 - Update to upstream 1.50 - Ported patches to 1.50, enforce compile flags * Sun Jan 18 2009 Tomas Mraz - 1.42-2 - rebuild with new openssl * Wed Dec 31 2008 Brian Pepple - 1.42-1 - Update to 1.42. - Update event patch to 1.42. * Fri Nov 21 2008 Denis Leroy - 1.40-1 - Update to upstream 1.40 - Ported patches to 1.40 * Sun Sep 28 2008 Denis Leroy - 1.34-1 - Update to upstream 1.34 - Added patch to link with distributed libevent library * Mon Sep 8 2008 Tom "spot" Callaway - 1.33-2 - fix license tag * Sun Aug 24 2008 Denis Leroy - 1.33-1 - Update to upstream 1.33 - Now dual-licensed - Gnusource and download dir patches upstreamed * Wed Jun 18 2008 Denis Leroy - 1.22-1 - Update to upstream 1.22 * Sat May 31 2008 Denis Leroy - 1.21-1 - Update to upstream 1.21 * Tue May 13 2008 Denis Leroy - 1.20-1 - Update to upstream 1.20 - Browser opening patch upstreamed - New dependencies (dbus, curl) * Tue May 6 2008 Denis Leroy - 1.11-2 - Patch to fix opening issue from browser (#431769) - Patch to fix hardcoded optimize compile flags * Fri May 2 2008 Denis Leroy - 1.11-1 - Update to upstream 1.11, many bug fixes * Fri Mar 14 2008 Denis Leroy - 1.06-1 - Update to upstream 1.06, bug fixes, memory leak fix * Sun Feb 10 2008 Denis Leroy - 1.05-1 - Update to upstream 1.05, with a bunch of bug fixes * Thu Jan 31 2008 Denis Leroy - 1.03-1 - Update to upstream 1.03 * Wed Jan 23 2008 Denis Leroy - 1.02-1 - Update to upstream 1.02, bugfix release * Sat Jan 5 2008 Denis Leroy - 1.00-1 - Update to upstream 1.00. New project URL * Wed Dec 5 2007 Denis Leroy - 0.95-1 - Update to upstream 0.95 - Rebuild with new openssl * Thu Nov 29 2007 Denis Leroy - 0.94-1 - Update to upstream 0.94 * Tue Nov 6 2007 Denis Leroy - 0.92-1 - Update to upstream 0.92, important bug fixes * Sat Nov 3 2007 Denis Leroy - 0.91-1 - Update to upstream 0.91 - Removal of -gtk suffix - Obsoleting manpath patch * Wed Sep 12 2007 Denis Leroy - 0.82-1 - Update to upstream 0.82, many bug fixes - Added patch to support default user download directory (Bastien Nocera) * Sat Aug 25 2007 - Bastien Nocera - 0.81-1 - Update to upstream 0.81 - Add work-around for busted tarball without a sub-directory * Thu Aug 16 2007 Denis Leroy - 0.80-1 - Update to upstream 0.80 * Wed May 2 2007 Denis Leroy - 0.72-1 - Update to 0.72 - Added libevent BR * Wed Apr 25 2007 Denis Leroy - 0.71-1 - Update to 0.71 - Removed custom desktop file - Added patch to fix manpath * Thu Sep 28 2006 Denis Leroy - 0.6.1-3 - Added project icon - Honor cc variable * Mon Sep 25 2006 Denis Leroy - 0.6.1-2 - Removed ldconfig Requires * Wed Sep 13 2006 Denis Leroy - 0.6.1-1 - First version `