%define majver %(echo %version | cut -d. -f1-2) Name: kpackage Version: 5.11.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 %{name}5_qt --with-man --with-qt --all-name || touch %{name}5_qt.lang %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 %{_mandir}/man1/kpackagetool5.1* %files -n lib%{name} -f kpackage5_qt.lang %defattr(-,root,root) %{_datadir}/kservicetypes5/kpackage-packagestructure.desktop %{_libdir}/libKF5Package.so.* %doc COPYING COPYING.LIB %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 Jun 24 2015 Automatic Build System 5.11.0-1mamba - automatic version update by autodist * Mon May 18 2015 Automatic Build System 5.10.0-1mamba - automatic version update by autodist * 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