]> git.pld-linux.org Git - packages/transmission.git/blame - transmission.spec
- up to 1.77
[packages/transmission.git] / transmission.spec
CommitLineData
0f16bf9a 1Summary: A versatile and multi-platform BitTorrent client
f2dfe381 2Summary(hu.UTF-8): Egy sokoldalú és multiplatformos BitTorrent kliens
bb59eb4f 3Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta
905dacdd 4Name: transmission
0fdf40d3 5Version: 1.77
5b010a19 6Release: 1
0f16bf9a
PZ
7License: MIT
8Group: Applications/Communications
f2dfe381 9Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2
0fdf40d3 10# Source0-md5: d9457ac827faebb515062975d45835e9
9232dd57
PG
11Source1: %{name}.sysconfig
12Source2: %{name}.init
147f3fba 13Patch0: %{name}-ckb_po.patch
071083d3 14Patch1: %{name}-qtr_details.patch
12ce42fd 15Patch2: %{name}-preallocate_syscall.patch
ec12ede2 16URL: http://transmissionbt.com/
2b837bd5
KK
17BuildRequires: QtGui-devel
18BuildRequires: QtNetwork-devel
e9d3e015
KK
19BuildRequires: autoconf
20BuildRequires: automake
071083d3 21BuildRequires: curl-devel >= 7.16.3
7ad95f16 22BuildRequires: dbus-glib-devel >= 0.70
f237c99d 23BuildRequires: gettext-devel
7ad95f16 24BuildRequires: glib2-devel >= 1:2.16.0
0f16bf9a
PZ
25BuildRequires: gtk+2-devel >= 2:2.6.0
26BuildRequires: intltool >= 0.35.5
071083d3 27BuildRequires: libevent-devel >= 1.4.5
7ad95f16 28BuildRequires: libnotify-devel >= 0.4.4
f237c99d 29BuildRequires: libstdc++-devel
e9d3e015 30BuildRequires: libtool
7ad95f16 31BuildRequires: openssl-devel >= 0.9.4
0f16bf9a
PZ
32BuildRequires: pkgconfig
33BuildRequires: rpmbuild(macros) >= 1.357
2b837bd5 34BuildRequires: qt4-build
820ff2df 35BuildRequires: qt4-qmake
071083d3 36BuildRequires: xfsprogs-devel
f237c99d 37Obsoletes: Transmission <= 1.05
b4dc7e64 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0f16bf9a 39
c6dfa0bb 40%define _appdir %{_datadir}/%{name}/web
41
0f16bf9a
PZ
42%description
43Transmission has been built from the ground up to be a lightweight,
44yet powerful BitTorrent client. Its simple, intuitive interface is
45designed to integrate tightly with whatever computing environment you
46choose to use. Transmission strikes a balance between providing useful
47functionality without feature bloat.
48
f2dfe381 49%description -l hu.UTF-8
647a449c 50Transmission egy könnyűsúlyú, de mégis egy erőteljes BitTorrent kliens.
f2dfe381
ZU
51Egyszerű, intuitív felülete szorosan illeszkedik bármilyen
52számítógépes környezetbe, amit csak választasz. A Transmission célja
53megtalálni a használható funkcionalitást lehetőségek áradata nélkül.
54
bb59eb4f
JB
55%description -l pl.UTF-8
56Transmission został stworzony od podstaw, aby być lekkim lecz mającym
57duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny
58interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym
59przez użytkownika. Transmission stawia na równowagę zapewnienia
60przydatnej funkcjonalności bez nadmiaru opcji.
61
9232dd57
PG
62%package init
63Summary: daemon package for BitTorrent client
64Group: Daemon
65Requires: %{name} = %{version}-%{release}
66
67%description init
68Transmission has been built from the ground up to be a lightweight,
69yet powerful BitTorrent client. Its simple, intuitive interface is
70designed to integrate tightly with whatever computing environment you
71choose to use. Transmission strikes a balance between providing useful
72functionality without feature bloat.
73
f237c99d
KK
74%package gui
75Summary: A versatile and multi-platform BitTorrent client
76Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta
77Group: X11/Applications/Communications
78Requires(post,postun): hicolor-icon-theme
79Requires(post,postun): gtk+2
30875bc9 80Requires: %{name} = %{version}-%{release}
f237c99d 81Requires: gtk+2 >= 2:2.6.0
f237c99d
KK
82
83%description gui
84Transmission has been built from the ground up to be a lightweight,
85yet powerful BitTorrent client. Its simple, intuitive interface is
86designed to integrate tightly with whatever computing environment you
87choose to use. Transmission strikes a balance between providing useful
88functionality without feature bloat.
89
90%description gui -l hu.UTF-8
91Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens.
92Egyszerű, intuitív felülete szorosan illeszkedik bármilyen
93számítógépes környezetbe, amit csak választasz. A Transmission célja
94megtalálni a használható funkcionalitást lehetőségek áradata nélkül.
95
96%description gui -l pl.UTF-8
97Transmission został stworzony od podstaw, aby być lekkim lecz mającym
98duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny
99interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym
100przez użytkownika. Transmission stawia na równowagę zapewnienia
101przydatnej funkcjonalności bez nadmiaru opcji.
102
820ff2df
ZU
103%package gui-qt
104Summary: A GUI to Transmission based on Qt4
105Group: X11/Applications/Communications
071083d3 106# doesn't require base
820ff2df
ZU
107
108%description gui-qt
109A GUI to Transmission based on Qt4.
110
0f16bf9a 111%prep
0fc49842 112%setup -q -c -n transmission-%{version}
bac64279 113mv transmission-%{version}/* .
147f3fba 114%patch0 -p1
071083d3 115%patch1 -p1
12ce42fd 116%patch2 -p1
ec12ede2 117%{__rm} po/ckb.po
0f16bf9a
PZ
118
119%build
e9d3e015
KK
120%{__libtoolize}
121%{__aclocal} -I m4
122%{__autoconf}
123%{__automake}
0f16bf9a
PZ
124%configure
125%{__make}
126
820ff2df 127cd qt
2b837bd5 128%{__sed} -i 's/CONFIG += qt thread debug/CONFIG += qt thread/' qtr.pro
820ff2df 129qmake-qt4
820ff2df 130%{__make}
2b837bd5 131cd -
820ff2df 132
0f16bf9a
PZ
133%install
134rm -rf $RPM_BUILD_ROOT
9232dd57
PG
135install -d $RPM_BUILD_ROOT/etc/{%{name},sysconfig,rc.d/init.d} \
136 $RPM_BUILD_ROOT/var/lib/%{name}
0f16bf9a
PZ
137
138%{__make} install \
139 DESTDIR=$RPM_BUILD_ROOT
140
9232dd57 141install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
61330340 142install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
9232dd57 143
ec12ede2 144# unsupported
65730317
ZU
145%{__rm} -rf $RPM_BUILD_ROOT%{_localedir}/eu
146
147%find_lang %{name} --all-name --with-gnome
ec12ede2 148
820ff2df
ZU
149install qt/qtr $RPM_BUILD_ROOT%{_bindir}
150
ec12ede2 151# copy of GPLv2 not needed
152%{__rm} $RPM_BUILD_ROOT%{_datadir}/transmission/web/LICENSE
153
0f16bf9a
PZ
154%clean
155rm -rf $RPM_BUILD_ROOT
156
9232dd57
PG
157%post init
158/sbin/chkconfig --add transmission
159%service transmission restart
160
161%preun init
162if [ "$1" = "0" ]; then
163 %service transmission stop
164 /sbin/chkconfig --del transmission
165fi
166
f237c99d 167%post gui
0f16bf9a 168%update_desktop_database_post
e65cafbb 169%update_icon_cache hicolor
0f16bf9a 170
f237c99d 171%postun gui
0f16bf9a 172%update_desktop_database_postun
e65cafbb 173%update_icon_cache hicolor
0f16bf9a
PZ
174
175%files -f %{name}.lang
176%defattr(644,root,root,755)
177%doc AUTHORS NEWS README
95c51d91 178%attr(755,root,root) %{_bindir}/transmissioncli
09c73228 179%attr(755,root,root) %{_bindir}/transmission-daemon
09c73228 180%attr(755,root,root) %{_bindir}/transmission-remote
5de6d863
ZU
181%{_mandir}/man1/transmissioncli.1*
182%{_mandir}/man1/transmission-daemon.1*
183%{_mandir}/man1/transmission-remote.1*
147f3fba 184%dir %{_datadir}/%{name}
c4a49d1e 185%dir %{_appdir}
c6dfa0bb 186%{_appdir}/images
187%{_appdir}/javascript
188%{_appdir}/stylesheets
189%{_appdir}/index.html
f237c99d 190
9232dd57
PG
191%files init
192%defattr(644,root,root,755)
193%attr(751,root,daemon) %dir /etc/%{name}
61330340 194#%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/*
9232dd57 195%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
61330340 196%attr(754,root,root) /etc/rc.d/init.d/%{name}
9232dd57
PG
197%attr(750,daemon,root) %dir /var/lib/%{name}
198
f237c99d 199%files gui
c1ca1d17 200%defattr(644,root,root,755)
f237c99d 201%attr(755,root,root) %{_bindir}/transmission
5de6d863 202%{_mandir}/man1/transmission.1*
f237c99d
KK
203%{_desktopdir}/transmission.desktop
204%{_pixmapsdir}/transmission.png
205%{_iconsdir}/hicolor/*/apps/transmission.png
206%{_iconsdir}/hicolor/*/apps/transmission.svg
820ff2df
ZU
207
208%files gui-qt
209%defattr(644,root,root,755)
210%attr(755,root,root) %{_bindir}/qtr
This page took 0.076583 seconds and 4 git commands to generate.