forked from pool/ktorrent
Accepting request 390358 from KDE:Extra
Update to Ktorrent 5.0. This should go together with the update of libktorrent !! OBS-URL: https://build.opensuse.org/request/show/390358 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=102
This commit is contained in:
126
ktorrent.spec
126
ktorrent.spec
@@ -17,15 +17,13 @@
|
||||
|
||||
|
||||
Name: ktorrent
|
||||
Version: 4.3.1
|
||||
Version: 5.0
|
||||
Release: 0
|
||||
Summary: KDE BitTorrent Client
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Networking/File-Sharing
|
||||
Url: http://ktorrent.org/
|
||||
Source0: http://ktorrent.org/downloads/%{version}/%{name}-%{version}.tar.bz2
|
||||
# Mimetype icons
|
||||
Source1: icons.tar.bz2
|
||||
Source0: http://download.kde.org/stable/ktorrent/%{version}/%{name}-%{version}.tar.xz
|
||||
Source2: ktorrent.1
|
||||
Source3: ktupnptest.1
|
||||
# PATCH-FIX-OPENSUSE remove-links.diff adrian@suse.de -- Remove links to some search engine with maybe legal problems
|
||||
@@ -34,37 +32,38 @@ Patch0: remove-links.diff
|
||||
Patch1: suse-dht-warning.diff
|
||||
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- InitialPreference to set it as the default torrent downloader
|
||||
Patch2: initial-preference.diff
|
||||
# PATCH-FIX-UPSTREAM ipfilter_bugfix.diff -- Fix gzip not working in ipfilter plugin due to wrong mimetype, kde#315239
|
||||
Patch3: ipfilter_bugfix.diff
|
||||
# PATCH-FIX-UPSTREAM properly-support-x-scheme-handler-magnet-mimetype.patch -- make ktorrent support magnet mimetype outside KDE4
|
||||
Patch4: properly-support-x-scheme-handler-magnet-mimetype.patch
|
||||
# PATCH-FIX-OPENSUSE remove-plasma.diff -- disable building the Plasma applet
|
||||
Patch5: remove-plasma.diff
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
||||
BuildRequires: kdebase4-workspace-devel
|
||||
%endif
|
||||
BuildRequires: libkdepimlibs4-devel
|
||||
BuildRequires: libktorrent-devel >= 1.3.0
|
||||
%if %suse_version > 1200
|
||||
BuildRequires: pkgconfig(taglib)
|
||||
%else
|
||||
BuildRequires: taglib-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: kcmutils-devel
|
||||
BuildRequires: kconfig-devel
|
||||
BuildRequires: kcoreaddons-devel
|
||||
BuildRequires: kcrash-devel
|
||||
BuildRequires: kdbusaddons-devel
|
||||
BuildRequires: kdelibs4support-devel
|
||||
BuildRequires: kdewebkit-devel
|
||||
BuildRequires: kdoctools-devel
|
||||
BuildRequires: ki18n-devel
|
||||
BuildRequires: kio-devel
|
||||
BuildRequires: knotifications-devel
|
||||
BuildRequires: knotifyconfig-devel
|
||||
BuildRequires: kross-devel
|
||||
BuildRequires: kxmlgui-devel
|
||||
BuildRequires: libktorrent-devel >= 2.0
|
||||
BuildRequires: libqca-qt5-devel
|
||||
BuildRequires: phonon4qt5-devel
|
||||
BuildRequires: plasma5-workspace-devel
|
||||
BuildRequires: solid-devel
|
||||
BuildRequires: sonnet-devel
|
||||
BuildRequires: update-desktop-files
|
||||
%endif
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5DBus)
|
||||
BuildRequires: pkgconfig(Qt5Script)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(taglib)
|
||||
Recommends: %{name}-lang = %{version}
|
||||
# ktorrent-devel was last used in openSUSE 11.4
|
||||
Provides: ktorrent-devel = %{version}
|
||||
Obsoletes: ktorrent-devel < %{version}
|
||||
# libktcore12 was last used in openSUSE 11.4
|
||||
Provides: libktcore12 = %{version}
|
||||
Obsoletes: libktcore12 < %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%kde4_pimlibs_requires
|
||||
%kde4_runtime_requires
|
||||
|
||||
%description
|
||||
KTorrent is a bittorrent application for KDE which allows you to download files
|
||||
@@ -80,28 +79,16 @@ for BitTorrent.
|
||||
%patch1
|
||||
%endif
|
||||
%patch2
|
||||
tar jxf %{SOURCE1}
|
||||
%patch3
|
||||
%patch4 -p1
|
||||
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse}
|
||||
%patch5 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
%cmake_kde4 -d build
|
||||
%cmake_kf5 -d build
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%kde4_makeinstall -C build
|
||||
%kf5_makeinstall -C build
|
||||
|
||||
# Not needed, fix "devel-file-in-non-devel-package" rpmlint warning
|
||||
rm -f %{buildroot}%{_kde4_libdir}/libktcore.so
|
||||
|
||||
# patch image with wrong dimensions - fix rpmlint warning "wrong-icon-size"
|
||||
mogrify -strip -extent 16x16 -background transparent -gravity center %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
|
||||
rm -f %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png~
|
||||
mogrify -strip -scale 22x22 -background transparent %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
|
||||
rm -f %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png~
|
||||
rm -f %{buildroot}%{_libdir}/libktcore.so
|
||||
|
||||
# Add man pages from help2man edited.
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
@@ -114,24 +101,12 @@ then break;
|
||||
else chmod -f 0755 `find %{buildroot} -name *.py -perm 0644 -print0|xargs -0r grep -l '#!'`; \
|
||||
fi
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -r %{name} Qt KDE Network P2P
|
||||
%endif
|
||||
|
||||
# Remove unneeded locales
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
||||
rm -rf %{buildroot}%{_datadir}/locale/ast/
|
||||
rm -rf %{buildroot}%{_datadir}/locale/hne/
|
||||
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
|
||||
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
|
||||
%endif
|
||||
%suse_update_desktop_file -r org.kde.ktorrent Qt KDE Network P2P
|
||||
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%kde_post_install
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
@@ -139,31 +114,22 @@ rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING ChangeLog RoadMap
|
||||
%{_kde4_bindir}/ktmagnetdownloader
|
||||
%{_kde4_bindir}/ktorrent
|
||||
%{_kde4_bindir}/ktupnptest
|
||||
%{_kde4_modulesdir}/kt*.so
|
||||
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
||||
%{_kde4_modulesdir}/plasma_applet_ktorrent.so
|
||||
%{_kde4_modulesdir}/plasma_engine_ktorrent.so
|
||||
%endif
|
||||
%{_kde4_libdir}/libktcore.so.*
|
||||
%{_kde4_applicationsdir}/ktorrent.desktop
|
||||
%{_kde4_iconsdir}/hicolor/*/actions/kt-*.*
|
||||
%{_kde4_iconsdir}/hicolor/*/apps/ktorrent.*
|
||||
%{_kde4_iconsdir}/hicolor/*/mimetypes/torrent.*
|
||||
%{_kde4_appsdir}/ktorrent/
|
||||
%{_kde4_servicesdir}/kt*.desktop
|
||||
%{_kde4_servicetypesdir}/ktorrentplugin.desktop
|
||||
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
||||
%{_kde4_servicesdir}/plasma-applet-ktorrent.desktop
|
||||
%{_kde4_servicesdir}/plasma-dataengine-ktorrent.desktop
|
||||
%endif
|
||||
|
||||
%doc %{_mandir}/man1/ktorrent.1%{ext_man}
|
||||
%doc %{_mandir}/man1/ktupnptest.1%{ext_man}
|
||||
%_bindir/ktorrent
|
||||
%_libdir/libktcore.so.*
|
||||
%_kf5_plugindir/
|
||||
%_kf5_applicationsdir/org.kde.ktorrent.desktop
|
||||
%_kf5_iconsdir/hicolor/*/*/*.png
|
||||
%_kf5_iconsdir/hicolor/*/*/*.svgz
|
||||
%_kf5_notifydir/ktorrent.notifyrc
|
||||
%_kf5_kxmlguidir/ktorrent/
|
||||
%_kf5_htmldir/en/ktorrent/
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%_kf5_htmldir/*/ktorrent/
|
||||
%dir %_kf5_htmldir/pt_BR
|
||||
%exclude %_kf5_htmldir/en/ktorrent/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user