LFS-RPM/SPECS/dejagnu.spec
YellowJacketLinux b10a35e886 initial checkin
2023-04-04 04:10:19 -07:00

85 lines
2.1 KiB
RPMSpec

Name: dejagnu
Version: 1.6.3
Release: %{?repo}0.rc1%{?dist}
Summary: Framework for testing other programs
Group: Development/Testing
License: GPLv3
URL: https://www.gnu.org/software/dejagnu/
Source0: https://ftp.gnu.org/gnu/dejagnu/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: expect-devel
BuildRequires: tcl-devel
Requires: expect
%description
DejaGnu is a framework for testing other programs. Its purpose is to
provide a single front end for all tests. Think of it as a custom library
of Tcl procedures crafted to support writing a test harness. A test
harness is the testing infrastructure that is created to support a
specific program or tool. Each program can have multiple testsuites,
all supported by a single test harness. DejaGnu is written in Expect,
which in turn uses Tcl -- Tool command language.
%package devel
Group: Development/Libraries
Summary: Dejagnu header file
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the dejagnu header file.
%prep
%setup -q
%build
mkdir build && cd build
../configure --prefix=%{_prefix}
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
#make %%{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%check
cd build
make check > %{name}-make.check.log 2>&1
%post
%{_bindir}/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
%preun
if [ $1 = 0 ]; then
%{_bindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
fi
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/dejagnu
%attr(0755,root,root) %{_bindir}/runtest
%{_datadir}/%{name}
%attr(0644,root,root) %{_infodir}/%{name}.info*
%exclude %{_infodir}/dir
%attr(0644,root,root) %{_mandir}/man1/*.1*
%license COPYING
%doc build/%{name}-make.check.log build/doc/dejagnu.html build/doc/dejagnu.txt
%doc AUTHORS ChangeLog* COPYING MAINTAINERS NEWS README TODO
%files devel
%defattr(-,root,root,-)
%attr(0644,root,root) %{_includedir}/dejagnu.h
%changelog
* Tue Apr 04 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.6.3-0.rc1
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)