From d02cbcdca6587ed8b2b207863b0f75cb8af99d85 Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Tue, 18 Apr 2023 20:53:01 -0700 Subject: [PATCH] initial commit --- SPECS/inetutils.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++ SPECS/less.spec | 52 ++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 SPECS/inetutils.spec create mode 100644 SPECS/less.spec diff --git a/SPECS/inetutils.spec b/SPECS/inetutils.spec new file mode 100644 index 0000000..1cc9013 --- /dev/null +++ b/SPECS/inetutils.spec @@ -0,0 +1,88 @@ +%if %{!?insinfo:1}%{?insinfo:0} +%global insinfo /sbin/install-info +%endif + +Name: inetutils +Version: 2.4 +Release: %{?repo}0.rc2%{?dist} +Summary: Some programs for basic networking + +Group: Network/Utilities +License: GPLv3 +URL: https://www.gnu.org/software/inetutils/ +Source0: https://ftp.gnu.org/gnu/inetutils/%{name}-%{version}.tar.xz + +BuildRequires: readline-devel +BuildRequires: ncurses-devel +#Requires: +Requires(post): %{insinfo} +Requires(preun): %{insinfo} + +%description +Inetutils is a collection of common network programs. This package +includes dnsdomainname, ftp, hostname, ifconfig, ping, ping6, talk, +telnet, tftp, and traceroute. + +The YJL packaging of inetutils does __not__ contain inetutils builds +of logger, whois, the various inetutils servers, or the dangerous +and obsolete rtools. + +%prep +%setup -q + + +%build +%configure \ + --disable-logger \ + --disable-whois \ + --disable-rcp \ + --disable-rexec \ + --disable-rlogin \ + --disable-rsh \ + --disable-servers +make %{?_smp_mflags} + +%check +make check > %{name}-make.check.log 2>&1 + +%install +make install DESTDIR=%{buildroot} +install -m755 -d %{buildroot}/bin +install -m755 -d %{buildroot}/sbin +mv %{buildroot}%{_bindir}/hostname %{buildroot}/bin/ +mv %{buildroot}%{_bindir}/ifconfig %{buildroot}/sbin/ + +%post +%{insinfo} %{_infodir}/%{name}.info %{_infodir}/dir ||: + +%preun +if [ $1 = 0 ]; then +%{insinfo} --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%files +%defattr(-,root,root,-) +%attr(0755,root,root) /bin/hostname +%attr(0755,root,root) /sbin/ifconfig +%attr(0755,root,root) %{_bindir}/dnsdomainname +%attr(0755,root,root) %{_bindir}/ftp +%attr(0755,root,root) %{_bindir}/ping +%attr(0755,root,root) %{_bindir}/ping6 +%attr(0755,root,root) %{_bindir}/talk +%attr(0755,root,root) %{_bindir}/telnet +%attr(0755,root,root) %{_bindir}/tftp +%attr(0755,root,root) %{_bindir}/traceroute +%attr(0644,root,root) %{_infodir}/%{name}.info* +%exclude %{_infodir}/dir +%attr(0644,root,root) %{_mandir}/man1/*.1* +%license COPYING +%doc %{name}-make.check.log +%doc AUTHORS ChangeLog* COPYING NEWS README THANKS TODO + + +%changelog +* Tue Apr 18 2023 Michael A. Peters - 2.4-0.rc2 +- Use %%{insinfo}, add some missing BuildRequires + +* Thu Mar 23 2023 Michael A. Peters - 2.4-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3) diff --git a/SPECS/less.spec b/SPECS/less.spec new file mode 100644 index 0000000..0420cdb --- /dev/null +++ b/SPECS/less.spec @@ -0,0 +1,52 @@ +Name: less +Version: 608 +Release: 1%{?dist} +Summary: Pager for displaying text files + +Group: System Environment/Utilities +License: GPLv3 and Less License +URL: https://www.greenwoodsoftware.com/less/ +Source0: https://www.greenwoodsoftware.com/less/less-%{version}.tar.gz + +BuildRequires: ncurses-devel +#Requires: + +%description +Less is a free, open-source file pager. It can be found on most versions +of Linux, Unix and Mac OS, as well as on many other operating systems. + +Less is a replacement for the traditional Unix pager program 'more' so +it can be said that 'less is more, more or less...' + +It should be noted that 'less' has more capabilities than the traditional +Unix pager 'more' and thus it is frequently installed on those systems +as well as being the standard file pager on newer "Unix-Like but not +really Unix" systems such as GNU/Linux. + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%attr(0755,root,root) %{_bindir}/less +%attr(0755,root,root) %{_bindir}/lessecho +%attr(0755,root,root) %{_bindir}/lesskey +%attr(0644,root,root) %{_mandir}/man1/less.1* +%attr(0644,root,root) %{_mandir}/man1/lessecho.1* +%attr(0644,root,root) %{_mandir}/man1/lesskey.1* +%license COPYING LICENSE README +%doc COPYING LICENSE NEWS README + +%changelog +* Tue Apr 18 2023 Michael A. Peters - 608-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)