File rpmcmp.spec of Package rpmcmp
# norootforbuild
Name: rpmcmp
Version: 0
Release: 0
Source0: rpmcmp.py
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Dummy
BuildArch: noarch
Requires: rpm-python
Summary: Compare rpm versions from the command line
%description
A command-line utility to compare rpm versions.
Author: Seth Vidal
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install %{S:0} $RPM_BUILD_ROOT/%{_bindir}/rpmcmp
chmod +x $RPM_BUILD_ROOT/%{_bindir}/rpmcmp
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_bindir}/rpmcmp
%changelog