libktorrent/libktorrent.spec

125 lines
3.0 KiB
RPMSpec

#
# spec file for package libktorrent
#
# 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/
#
Name: libktorrent
Version: 1.0.99rc1
Release: 1
Summary: Torrent Downloading Library
License: GPLv2+ and LGPLv2+ and MIT and BSD
Url: http://ktorrent.org/
Group: Productivity/Networking/File-Sharing
Source0: http://ktorrent.org/downloads/4.1rc1/%{name}-1.1rc1.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel
BuildRequires: doxygen
BuildRequires: gmp-devel
BuildRequires: libgcrypt-devel
BuildRequires: libkde4-devel
BuildRequires: libqca2-devel
%description
libktorrent is a torrent downloading library.
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%package devel
Summary: Development files for libktorrent
License: GPLv2+ and LGPLv2+ and MIT and BSD
Group: Development/Libraries/C and C++
Requires: libktorrent3 = %{version}
%description devel
This package includes the necessary files for development using libktorrent.
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%package -n libktorrent3
Summary: Torrent Downloading Library
License: GPLv2+ and LGPLv2+ and MIT and BSD
Group: Productivity/Networking/File-Sharing
Recommends: libktorrent3-lang = %{version}
%description -n libktorrent3
libktorrent is a torrent downloading library.
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%lang_package -n libktorrent3
%prep
%setup -q -n %{name}-1.1rc1
%build
%cmake_kde4 -d build
%make_jobs
%install
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/
%endif
#
%find_lang %{name}
%kde_post_install
%clean
rm -rf %{buildroot}
%post -n libktorrent3 -p /sbin/ldconfig
%postun -n libktorrent3 -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%{_kde4_includedir}/libktorrent/
%{_kde4_libdir}/libktorrent.so
%{_kde4_appsdir}/cmake/modules/FindKTorrent.cmake
%files -n libktorrent3
%defattr(-,root,root,-)
%doc COPYING ChangeLog RoadMap
%{_kde4_libdir}/libktorrent.so.*
%files -n libktorrent3-lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog