## START: Set by rpmautospec ## (rpmautospec version 0.6.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: -- Packages use something like this: -- release_number = 18; -- base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); -- print(release_number + base_release_number - 1); -- But a more reliable reproducer is the following print(os.time()) }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: hello Version: 2.12.1 Release: %autorelease Summary: Prints a familiar, friendly greeting # All code is GPLv3+. # Parts of the documentation are under GFDL License: GPL-3.0-or-later AND GFDL-1.3-or-later URL: https://www.gnu.org/software/hello/ Source0: https://ftp.gnu.org/gnu/hello/hello-%{version}.tar.gz BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: make Recommends: info Provides: bundled(gnulib) %description The GNU Hello program produces a familiar, friendly greeting. Yes, this is another implementation of the classic program that prints “Hello, world!” when you run it. However, unlike the minimal version often seen, GNU Hello processes its argument list to modify its behavior, supports greetings in many languages, and so on. The primary purpose of GNU Hello is to demonstrate how to write other programs that do these things; it serves as a model for GNU coding standards and GNU maintainer practices. %prep %setup -q %build %configure %make_build %install %make_install rm -f %{buildroot}%{_infodir}/dir %find_lang hello %files -f hello.lang %license COPYING %{_mandir}/man1/hello.1* %{_bindir}/hello %{_infodir}/hello.info* %changelog %autochangelog