2010-07-20 21:01:43 +02:00
|
|
|
#
|
2011-02-01 18:54:47 +01:00
|
|
|
# spec file for package libktorrent
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
2011-01-10 11:44:23 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: libktorrent
|
2011-03-10 11:33:55 +01:00
|
|
|
Version: 1.0.99rc1
|
|
|
|
Release: 1
|
|
|
|
Summary: Torrent Downloading Library
|
|
|
|
|
|
|
|
License: GPLv2+ and LGPLv2+ and MIT and BSD
|
|
|
|
Url: http://ktorrent.org/
|
2010-07-20 21:01:43 +02:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2011-03-10 11:33:55 +01:00
|
|
|
Source0: http://ktorrent.org/downloads/4.1rc1/%{name}-1.1rc1.tar.bz2
|
2010-07-20 21:01:43 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-10 11:33:55 +01:00
|
|
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libkde4-devel
|
|
|
|
BuildRequires: libqca2-devel
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
|
|
|
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
|
|
|
%package devel
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Development files for libktorrent
|
|
|
|
License: GPLv2+ and LGPLv2+ and MIT and BSD
|
2010-12-14 10:30:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-11-22 23:47:58 +01:00
|
|
|
Requires: libktorrent3 = %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-03-10 11:33:55 +01:00
|
|
|
This package includes the necessary files for development using libktorrent.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%package -n libktorrent3
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
|
|
|
License: GPLv2+ and LGPLv2+ and MIT and BSD
|
2010-07-20 21:01:43 +02:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2011-03-10 11:33:55 +01:00
|
|
|
Recommends: libktorrent3-lang = %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%description -n libktorrent3
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%lang_package -n libktorrent3
|
2011-03-10 11:33:55 +01:00
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%prep
|
2011-03-10 11:33:55 +01:00
|
|
|
%setup -q -n %{name}-1.1rc1
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%build
|
2011-03-10 11:33:55 +01:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%install
|
2011-03-10 11:33:55 +01:00
|
|
|
cd build
|
|
|
|
%kde4_makeinstall
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Remove unneeded locales
|
|
|
|
%if 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/
|
2010-07-20 21:01:43 +02:00
|
|
|
%endif
|
2011-03-10 11:33:55 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%kde_post_install
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2011-03-10 11:33:55 +01:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%post -n libktorrent3 -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%postun -n libktorrent3 -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2011-03-10 11:33:55 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_kde4_includedir}/libktorrent/
|
|
|
|
%{_kde4_libdir}/libktorrent.so
|
|
|
|
%{_kde4_appsdir}/cmake/modules/FindKTorrent.cmake
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%files -n libktorrent3
|
2011-03-10 11:33:55 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog RoadMap
|
|
|
|
%{_kde4_libdir}/libktorrent.so.*
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2011-03-10 11:33:55 +01:00
|
|
|
%files -n libktorrent3-lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%changelog
|