Hrvoje Senjan 2015-04-05 15:29:43 +00:00 committed by Git OBS Bridge
parent bfba1ba108
commit db673fa311

View File

@ -17,6 +17,7 @@
%define rname kxmlrpcclient
%define lname libKF5XmlRpcClient5
%define _tar_path 5.9
Name: kxmlrpcclient5
Version: %{_tar_path}.0
@ -38,22 +39,24 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Library containing simple XML-RPC Client support.
%package -n libKF5XmlRpcClient5
%package -n %lname
Summary: Library containing simple XML-RPC Client support
Group: Development/Libraries/KDE
Recommends: %lname-lang = %{version}
%description -n libKF5XmlRpcClient5
%description -n %lname
Library containing simple XML-RPC Client support.
%package devel
Summary: Library containing simple XML-RPC Client support: Build Environment
Group: Development/Libraries/KDE
Requires: %lname = %{version}
Requires: kio-devel >= %{kf5_version}
Requires: libKF5XmlRpcClient5 = %{version}
%description devel
Library containing simple XML-RPC Client support. Development files.
%lang_package -n %lname
%prep
%setup -q -n %{rname}-%{version}
@ -64,11 +67,20 @@ Library containing simple XML-RPC Client support. Development files.
%install
%kf5_makeinstall -C build
%post -n libKF5XmlRpcClient5 -p /sbin/ldconfig
if [ -e po ]; then
%find_lang libkxmlrpcclient5 %{name}.lang
else
touch %{name}.lang
fi
%postun -n libKF5XmlRpcClient5 -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%files -n libKF5XmlRpcClient5
%postun -n %lname -p /sbin/ldconfig
%files -n %lname-lang -f %{name}.lang
%defattr(-,root,root)
%files -n %lname
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libKF5XmlRpcClient.so.*