def rpm_spec(rpm_name, version, date)
"
Name: #{rpm_name}
Version: #{version}
Release: 1
Summary: System profile transition data
Group: Applications/Productivity
License: GPLv3
URL: https://github.com/Katello/hammer-cli-import
Source0: #{rpm_name}-#{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
%define debug_package %{nil}
%description
This package contains mapping information, how system profiles managed by Red Hat Satellite 5
get translated to content hosts on Red Hat Satellite 6
%prep
%setup -q
%build
%install
install -m 755 -d $RPM_BUILD_ROOT/%{_datarootdir}/rhn/transition
install -m 644 system-id_to_uuid-#{date.to_i}.map $RPM_BUILD_ROOT/%{_datarootdir}/rhn/transition/
%post
# run register here
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/usr/share/rhn/transition/
/usr/share/rhn/transition/system-id_to_uuid-#{date.to_i}.map
%doc
%changelog
* #{date.strftime('%a %b %e %Y')} root <root@localhost> initial package build
- using system profile to content host mapping data
"
end