Name: enum # This is the first thing rpm takes when comparing versions # Epoch: 1 # here goes the version of the UPSTREAM Version: 1.1 # DOWNSTREAM Release: 1%{?dist} Summary: Seq- and jot-like enumerator License: BSD-3-Clause # this was the last known URL of the sofware, it is not maintained anymore :( URL: https://fedorahosted.org/enum # the rest of URL is mainly for people - the rpm takes only the basename # from sources Source0: https://fedorahosted.org/releases/e/n/enum/%{name}-%{version}.tar.bz2 %if 0%{?rhel} > 6 || 0%{?fedora} >= 17 Requires: make %else Requires: old-make %endif BuildRequires: gcc BuildRequires: asciidoc # buildtime dependency BuildRequires: make >= 4.2 # runtime dependency Requires: bash Requires: (bash or zsh >= 3.1 or csh) Patch0: enum-1.1-use-putchar.patch # Patch1: another.patch Provides: enumerator # this is done by RPM for you implicitly # Provides: enum = 1.1-1.fc42 %description Utility enum enumerates values (numbers) between two values, possibly further adjusted by a step and/or a count, all given on the command line. Before printing, values are passed through a formatter. Very fine control over input interpretation and output is possible. # this is part of the description, not the BuildRequires!!!!! BuildRequires: diffutils # rpmbuild -bp # this takes what is in SOURCES and extracts # it in the BUILD directory %prep # %%setup -q # %%patch 0 -p1 # %%patch 1 -p2 %autosetup -p1 # rpmbuild -bc # it takes what is inside BUILD form prep section and compiles it %build %configure %make_build # rpmbuild -bi # takes the compliled stuff and install it in BUILDROOT %install %make_install %files %license COPYING %doc ChangeLog %{_bindir}/enum %{_mandir}/man1/enum.1* %changelog * Tue Sep 09 2025 Jiri Kyjovsky - 1.1-1 - Intial package