## START: Set by rpmautospec ## (rpmautospec version 0.5.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: oksh Version: 7.4 Release: %autorelease Summary: Portable OpenBSD ksh, based on the Public Domain Korn Shell # The main license is "public domain", with some support files # being under ISC and BSD license. License: Public Domain and ISC and BSD URL: https://github.com/ibara/%{name} Source0: https://github.com/ibara/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(ncursesw) %description Portable OpenBSD ksh, based on the Public Domain Korn Shell. %prep %autosetup %build %configure --no-strip %make_build %install %make_install install -D -p -m 0644 ksh.kshrc %{buildroot}%{_sysconfdir}/ksh.kshrc %post if [ "$1" = 1 ]; then if [ ! -f %{_sysconfdir}/shells ] ; then echo "%{_bindir}/%{name}" > %{_sysconfdir}/shells echo "/bin/%{name}" >> %{_sysconfdir}/shells else grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells || echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells grep -q "^/bin/%{name}$" %{_sysconfdir}/shells || echo "/bin/%{name}" >> %{_sysconfdir}/shells fi fi %postun if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then sed -i '\!^%{_bindir}/%{name}$!d' %{_sysconfdir}/shells sed -i '\!^/bin/%{name}$!d' %{_sysconfdir}/shells fi %files %license LEGAL %doc NOTES README.md README.pdksh CONTRIBUTORS %{_bindir}/oksh %{_mandir}/man1/%{name}.1.* %config(noreplace) %{_sysconfdir}/ksh.kshrc %changelog ## START: Generated by rpmautospec * Thu Jan 25 2024 Fedora Release Engineering - 7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Florian Weimer - 6.8.1-9 - Backport upstream patch to fix more C issues in configure * Thu Jul 20 2023 Fedora Release Engineering - 6.8.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 6.8.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 23 2022 Florian Weimer - 6.8.1-6 - Avoid implicit int in configure * Fri Jul 22 2022 Fedora Release Engineering - 6.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 6.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 6.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Apr 18 2021 Jani Juhani Sinervo - 6.8.1-2 - Add default configuration file * Sat Apr 17 2021 Jani Juhani Sinervo - 6.8.1-1 - Initial packaging effort ## END: Generated by rpmautospec