a7a5ca3345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libktorrent?expand=0&rev=8
122 lines
3.3 KiB
RPMSpec
122 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libktorrent (Version 1.0.60git20101130)
|
|
#
|
|
# Copyright (c) 2010 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 git20101130
|
|
|
|
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.60%{gitver}
|
|
Release: 1
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: %{name}-%{gitver}.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 <jrois.guisson@gmail.com>
|
|
|
|
%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 <jrois.guisson@gmail.com>
|
|
|
|
%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 <jrois.guisson@gmail.com>
|
|
|
|
|
|
%lang_package -n libktorrent3
|
|
%prep
|
|
%setup -q -n %name -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
|