# # spec file for package libktorrent (Version 1.0.80) # # Copyright (c) 2011 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/ # %define gitver git20101211 %define srcversion 1.1beta1 %define debug_package_requires libktorrent3 = %{version}-%{release} Name: libktorrent BuildRequires: fdupes gmp-devel kdebase4-workspace-devel libkdepimlibs4-devel libqca2-devel taglib-devel Url: http://ktorrent.pwsp.net/ License: GPLv2+ Group: Productivity/Networking/File-Sharing Summary: KTorrent Downloading Library Version: 1.0.80 Release: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{srcversion}.tar.bz2 Source1: %{name}-po.tar.bz2 %description Torrent is a BitTorrent program for KDE. Its main features are: * Download of torrent files * Upload speed capping, seeing that most people cannot upload infinite amounts of data * Internet searching using the BitTorrent Web site's search engine * UDP trackers Authors: -------- Jois Guisson %package devel License: GPLv2+ Group: Development/Libraries/C and C++ Summary: KDE BitTorrent Client Build Environment Requires: libktorrent3 = %{version} %description devel This package includes the necessary files to build KTorrent plugins. Authors: -------- Jois Guisson %package -n libktorrent3 License: GPLv2+ Group: Productivity/Networking/File-Sharing Summary: KDE BitTorrent Client Build Environment Recommends: libktorrent2-lang = %{version} %description -n libktorrent3 This package includes the ktorrent donwloading library Authors: -------- Jois Guisson %lang_package -n libktorrent3 %prep %setup -q -n %{name}-%{srcversion} # -a 1 echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt echo "add_subdirectory( po ) " >> CMakeLists.txt %build %cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=true %make_jobs %install cd build %makeinstall %fdupes -s $RPM_BUILD_ROOT %if %suse_version < 1120 rm -rf $RPM_BUILD_ROOT/usr/share/locale/hne %endif %kde_post_install %find_lang %name %pre -n libktorrent3 -p /sbin/ldconfig %post -n libktorrent3 -p /sbin/ldconfig %postun -n libktorrent3 -p /sbin/ldconfig %files -n libktorrent3-lang -f build/%name.lang %defattr(-,root,root) %dir /usr/share/locale/sr@ijekavian %dir /usr/share/locale/sr@ijekavian/LC_MESSAGES %dir /usr/share/locale/sr@ijekavianlatin %dir /usr/share/locale/sr@ijekavianlatin/LC_MESSAGES %files -n libktorrent3 %defattr(-,root,root) %_libdir/libktorrent.so.* %files devel %defattr(-,root,root) %dir /usr/include/libktorrent %_libdir/libktorrent.so /usr/include/libktorrent /usr/share/kde4/apps/cmake/modules/FindKTorrent.cmake %changelog