92 lines
2.5 KiB
RPMSpec
92 lines
2.5 KiB
RPMSpec
%define dirver 4.%(echo %version | cut -d. -f 2-3)
|
|
%define majver %(echo %version | cut -d. -f1-3)
|
|
#% define pkgver %(echo %version | cut -d. -f4)
|
|
Name: libktorrent
|
|
Version: 1.3.1
|
|
Release: 1mamba
|
|
Summary: Library for KTorrent, a BitTorrent client for KDE
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://ktorrent.org/
|
|
Source: http://ktorrent.org/downloads/%{dirver}/libktorrent-%{majver}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: kdelibs-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libgmp-devel
|
|
BuildRequires: libqca-devel
|
|
BuildRequires: libqt4-devel
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Library for KTorrent, a BitTorrent client for KDE.
|
|
|
|
%package devel
|
|
Summary: Devel package for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Library for KTorrent, a BitTorrent client for KDE.
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{majver}%{?pkgver:-%pkgver}
|
|
|
|
%build
|
|
%cmake_kde4 -d build
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_kde4_libdir}/libktorrent.so.*
|
|
%doc COPYING ChangeLog
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_kde4_libdir}/libktorrent.so
|
|
%{_kde4_datadir}/cmake/modules/FindKTorrent.cmake
|
|
%dir %{_kde4_includedir}/libktorrent
|
|
%{_kde4_includedir}/libktorrent/*
|
|
|
|
%changelog
|
|
* Sat Jan 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
|
|
- update to 1.3.1
|
|
|
|
* Wed Sep 26 2012 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
- update to 1.3.0
|
|
|
|
* Wed Jun 20 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1.2-1mamba
|
|
- update to 1.2.1.2
|
|
|
|
* Tue Apr 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
|
|
- update to 1.2.0
|
|
|
|
* Thu May 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
|
|
- update to 1.1.1
|
|
|
|
* Mon Jul 12 2010 Automatic Build System <autodist@mambasoft.it> 1.0.0-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Fri Jun 04 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
|
|
- package created by autospec
|