automatic version update by autodist [release 2.1-1mamba;Sat Sep 23 2017]

This commit is contained in:
Automatic Build System 2024-01-06 04:56:26 +01:00
parent 35261c40d4
commit 4efd6127ae

View File

@ -1,8 +1,8 @@
%define dirver 4.%(echo %version | cut -d. -f 2-3) %define dirver 4.%(echo %version | cut -d. -f 2-3)
%define majver %(echo %version | cut -d. -f1-3) %define majver 5.%(echo %version | cut -d. -f2)
#% define pkgver %(echo %version | cut -d. -f4) #% define pkgver %(echo %version | cut -d. -f4)
Name: libktorrent Name: libktorrent
Version: 1.3.1 Version: 2.1
Release: 1mamba Release: 1mamba
Summary: Library for KTorrent, a BitTorrent client for KDE Summary: Library for KTorrent, a BitTorrent client for KDE
Group: System/Libraries Group: System/Libraries
@ -10,7 +10,7 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ktorrent.org/ URL: http://ktorrent.org/
Source: http://ktorrent.org/downloads/%{dirver}/libktorrent-%{majver}.tar.bz2 Source: https://ftp.heanet.ie/mirrors/ftp.kde.org/stable/ktorrent/%{majver}/libktorrent-%{version}.tar.xz
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -19,7 +19,7 @@ BuildRequires: libgcc
BuildRequires: libgcrypt-devel BuildRequires: libgcrypt-devel
BuildRequires: libgmp-devel BuildRequires: libgmp-devel
BuildRequires: libqca-devel BuildRequires: libqca-devel
BuildRequires: libqt4-devel BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: cmake BuildRequires: cmake
@ -41,34 +41,41 @@ This package contains static libraries and header files need for development.
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%prep %prep
%setup -q -n %{name}-%{majver}%{?pkgver:-%pkgver} %setup -q
%build %build
%cmake_kde4 -d build %cmake_kde5 -d build
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build %makeinstall -C build
%find_lang %{name} %find_lang %{name}5
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang %files -f %{name}5.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_kde4_libdir}/libktorrent.so.* %{_kde5_libdir}/libKF5Torrent.so.*
%doc COPYING ChangeLog %doc COPYING ChangeLog
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_kde4_libdir}/libktorrent.so %dir %{_kde5_includedir}/libktorrent
%{_kde4_datadir}/cmake/modules/FindKTorrent.cmake %{_kde5_includedir}/libktorrent/*
%dir %{_kde4_includedir}/libktorrent %dir %{_kde5_libdir}/cmake/KF5Torrent
%{_kde4_includedir}/libktorrent/* %{_kde5_libdir}/cmake/KF5Torrent/*.cmake
%{_kde5_libdir}/libKF5Torrent.so
%changelog %changelog
* Sat Sep 23 2017 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
- automatic version update by autodist
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Sat Jan 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba * Sat Jan 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
- update to 1.3.1 - update to 1.3.1