SHA256
1
0
forked from pool/ktorrent
OBS User unknown
2008-02-19 13:12:27 +00:00
committed by Git OBS Bridge
parent 9ae2c98fcf
commit 897dfacfc6
9 changed files with 140 additions and 320 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package ktorrent (Version 2.2.5)
# spec file for package ktorrent (Version 3.0.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -10,8 +10,9 @@
# norootforbuild
Name: ktorrent
BuildRequires: gmp-devel kdelibs3-devel
BuildRequires: gmp-devel kdebase4-workspace-devel libqca2-devel
%if %suse_version > 1020
BuildRequires: fdupes
%endif
@@ -19,16 +20,13 @@ Url: http://ktorrent.pwsp.net/
License: GPL v2 or later
Group: Productivity/Networking/File-Sharing
Summary: KDE BitTorrent Client
Version: 2.2.5
Version: 3.0.0
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define rversion %version
Source: %{name}-%{rversion}.tar.bz2
Patch2: remove-links.diff
Patch4: no-geoip-db.diff
Patch10: ktorrent-fix-columns.diff
Patch16: disable-DHT.diff
Patch18: build-kde-3.4.diff
%if %suse_version > 1020
Requires: %{name}-lang = %{version}
%endif
@@ -46,80 +44,112 @@ Torrent is a BitTorrent program for KDE. Its main features are: *
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%package devel
Group: Productivity/Networking/File-Sharing
Summary: KDE BitTorrent Client Build Environment
Requires: ktorrent = %{version}
%description devel
This packages include the necessary files to build KTorrent plugins.
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%lang_package
%prep
%setup -q -n %{name}-%{rversion}
%patch2 -p1
%patch4 -p1
%patch10
%patch16
%if %suse_version < 1010
%patch18
%endif
. /etc/opt/kde3/common_options
update_admin
%setup -q -n %{name}-%{version}
%patch2
%patch4
%build
%if %suse_version > 1000
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
. /etc/opt/kde3/common_options
./configure $configkde
do_make %{?jobs:-j %jobs}
%cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=false
%make_jobs
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file %name Network FileTransfer
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif
kde_post_install
%find_lang %name
cd build
%makeinstall
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif
%kde_post_install
%find_lang %name
%pre
%run_ldconfig
%post
%run_ldconfig
%postun
%run_ldconfig
%if %suse_version > 1020
%files lang -f %name.lang
%files lang -f build/%name.lang
%files
%else
%files -f %name.lang
%files -f build/%name.lang
%endif
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/128x128
%dir /opt/kde3/share/icons/hicolor/128x128/apps
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32/apps
%dir /opt/kde3/share/icons/hicolor/48x48
%dir /opt/kde3/share/icons/hicolor/48x48/apps
%dir /opt/kde3/share/icons/hicolor/64x64
%dir /opt/kde3/share/icons/hicolor/64x64/apps
%dir /opt/kde3/share/icons/hicolor/scalable
%dir /opt/kde3/share/icons/hicolor/scalable/apps
/opt/kde3/bin/*
/opt/kde3/share/icons/*/*/*/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/*
/opt/kde3/%_lib/kde3/*
/opt/kde3/%_lib/libktorrent.*
/opt/kde3/%_lib/libktorrent-%{version}.so
/opt/kde3/share/config.kcfg/*.kcfg
/opt/kde3/share/services/*.desktop
/opt/kde3/share/servicetypes/*.desktop
/usr/bin/ktorrent
/usr/bin/ktupnptest
/usr/lib/kde4/ktbwschedulerplugin.so
/usr/lib/kde4/ktinfowidgetplugin.so
/usr/lib/kde4/ktipfilterplugin.so
/usr/lib/kde4/ktlogviewerplugin.so
/usr/lib/kde4/ktscanfolderplugin.so
/usr/lib/kde4/ktsearchplugin.so
/usr/lib/kde4/ktstatsplugin.so
/usr/lib/kde4/ktupnpplugin.so
/usr/lib/kde4/ktwebinterfaceplugin.so
/usr/lib/libbtcore.so.*
/usr/lib/libktcore.so.*
/usr/lib/libktupnp.so.*
/usr/share/applications/kde4/ktorrent.desktop
/usr/share/icons/hicolor/*/apps/ktorrent.*
/usr/share/icons/hicolor/*/mimetypes/torrent.*
/usr/share/icons/hicolor/*/actions/ktencrypted.*
/usr/share/icons/hicolor/*/actions/ktremove.*
/usr/share/icons/hicolor/*/actions/ktstart.*
/usr/share/icons/hicolor/*/actions/ktstart_all.*
/usr/share/icons/hicolor/*/actions/ktstop.*
/usr/share/icons/hicolor/*/actions/ktstop_all.*
/usr/share/icons/hicolor/*/actions/ktplugins.*
/usr/share/icons/hicolor/*/actions/ktinfowidget.*
/usr/share/icons/hicolor/*/actions/ktqueuemanager.*
/usr/share/icons/hicolor/*/actions/ktupnp.*
/usr/share/icons/hicolor/*/places/ktprefdownloads.*
/usr/share/kde4/apps/cmake/modules/FindBTCore.cmake
/usr/share/kde4/apps/ktorrent
/usr/share/kde4/services/ktbwschedulerplugin.desktop
/usr/share/kde4/services/ktinfowidgetplugin.desktop
/usr/share/kde4/services/ktipfilterplugin.desktop
/usr/share/kde4/services/ktlogviewerplugin.desktop
/usr/share/kde4/services/ktscanfolderplugin.desktop
/usr/share/kde4/services/ktsearchplugin.desktop
/usr/share/kde4/services/ktstatsplugin.desktop
/usr/share/kde4/services/ktupnpplugin.desktop
/usr/share/kde4/services/ktwebinterfaceplugin.desktop
/usr/share/kde4/servicetypes/ktorrentplugin.desktop
%files devel
%defattr(-,root,root)
/usr/lib/libbtcore.so
/usr/lib/libktcore.so
/usr/lib/libktupnp.so
/usr/include/libbtcore
%changelog
* Tue Feb 19 2008 stbinner@suse.de
- update to 3.0, the first KDE4-based release
* Sun Jan 27 2008 stbinner@suse.de
- update to 2.2.5, several minor bug fixes
* Thu Nov 22 2007 stbinner@suse.de