%define _rpmmacrodir /usr/lib/rpm/macros.d Name: kde5-rpm-macros Version: 0.1.0 Release: 1%{?dist} Summary: KDE5 RPM Macros Group: System Environment/Base License: GPLv2 BuildArch: noarch Source0: macros.ldconfig Source1: macros.kde5 %description %{summary}. %install mkdir -p %{buildroot}%{_rpmmacrodir} install -Dm644 %{SOURCE0} %{buildroot}%{_rpmmacrodir}/ install -Dm644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/ %files %{_rpmmacrodir}/macros.*