%global _source_filedigest_algorithm md5 Name: buildtag Version: 0 Release: 0%{?dist}%{?buildtag} Summary: dummy package Group: NONE License: GPL URL: http://example.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: README.xz %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %description %prep %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_pkgdocdir} xz -d %{SOURCE0} --stdout > $RPM_BUILD_ROOT/%{_pkgdocdir}/README %clean rm -rf $RPM_BUILD_ROOT %files %doc %{_pkgdocdir}/README %changelog * Thu Jun 05 2014 Pavel Raiskup <praiskup@redhat.com> - 0-1 - does nothing!