%define majver %(echo %version | cut -d. -f1-2) Name: kpackage Version: 5.9.0 Release: 1mamba Summary: Package framework lets the user to install and load packages of non binary content Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.kde.org Source: http://download.kde.org/stable/frameworks/%{majver}/kpackage-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libkarchive-devel BuildRequires: libkconfig-devel BuildRequires: libkcoreaddons-devel BuildRequires: libki18n-devel BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: cmake Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Package framework lets the user to install and load packages of non binary content such as scripted extensions or graphic assets, as they were traditional plugins. %package -n lib%{name} Group: System/Libraries Summary: Shared libraries for %{name} %description -n lib%{name} This package contains shared libraries for %{name}. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q %build %cmake_kde5 -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %find_lang libkpackage5 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/kpackagetool5 %{_datadir}/kservicetypes5/kpackage-packagestructure.desktop %lang(de) %{_mandir}/de/man1/kpackagetool5.1* %{_mandir}/man1/kpackagetool5.1* %lang(nl) %{_mandir}/nl/man1/kpackagetool5.1* %lang(pt_BR) %{_mandir}/pt_BR/man1/kpackagetool5.1* %lang(sv) %{_mandir}/sv/man1/kpackagetool5.1* %lang(uk) %{_mandir}/uk/man1/kpackagetool5.1* %doc COPYING COPYING.LIB %files -n lib%{name} -f libkpackage5.lang %defattr(-,root,root) %{_libdir}/libKF5Package.so.* %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/KF5/KPackage %dir %{_includedir}/KF5/KPackage/KPackage %{_includedir}/KF5/KPackage/KPackage/* %dir %{_includedir}/KF5/KPackage/kpackage %{_includedir}/KF5/KPackage/kpackage/*.h %{_includedir}/KF5/kpackage_version.h %dir %{_libdir}/cmake/KF5Package %{_libdir}/cmake/KF5Package/KF5Package*.cmake %{_libdir}/libKF5Package.so %doc README.md %changelog * Wed Apr 15 2015 Automatic Build System 5.9.0-1mamba - automatic version update by autodist * Mon Mar 30 2015 Silvan Calarco 5.8.0-1mamba - package created using the webbuild interface