%define _enable_debug_packages %{nil} %define debug_package %{nil} Name: empty Version: 1.0 Release: %mkrel 3 Summary: An empty package to test the building system License: GPLv2+ Group: System/Kernel and hardware Source0: %{name}-%{version}.tar.gz # testing BuildRequires BuildRequires: pkgconfig(gl) = 1.2 %description empty is a testing package for the building system %prep %setup -q %build rpm -qa --qf '%%{name}-%%{version}-%%{release}.%%{arch}\n' | sort | tee %{name}-%{version}-installed-packages.txt wc %{name}-%{version}-installed-packages.txt %install mkdir -p %{buildroot}%{_datadir}/%{name}-%{version} install -m 644 %{name}-%{version}-installed-packages.txt %{buildroot}%{_datadir}/%{name}-%{version}/ %files %{_datadir}/%{name}-%{version}/%{name}-%{version}-installed-packages.txt