blob: fc2e5cc90ab249d59bb799fcc59a4b1f41365c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
Name: dejagnu
Summary: Framework for testing other programs.
Version: 1.6.2
Release: 1
Group: Development/Testing
License: GNU GPL
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
Requires: tcl
Requires: expat
Requires: expect
Requires: autogen
#BuildRequires: tcl
BuildRequires: expat
BuildRequires: expect
BuildRequires: autogen
BuildRequires: makeinfo
ExcludeArch: %arm aarch64
%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.
%package devel
Summary: Development package for dejagnu
%description devel
Development package for dejagnu
%prep
%setup -q
cp %{SOURCE1001} .
%build
%reconfigure
%__make %{?_smp_mflags}
sed -e '26aDEJAGNULIBS="%{_datadir}/dejagnu"' -i runtest
%install
rm -rf %{buildroot}
%make_install
%remove_docs
%post
echo -e "Setting up DEJAGNULIBS\n"
echo 'export DEJAGNULIBS="%{_datadir}/dejagnu"' >> /etc/profile
echo 'export DEJAGNULIBS="%{_datadir}/dejagnu"' >> /etc/bashrc
%files
%defattr(-,root,root)
%manifest %{name}.manifest
%{_datadir}/dejagnu/*
%{_bindir}/runtest
%files devel
%defattr(-,root,root)
%manifest %{name}.manifest
%{_includedir}/dejagnu.h
|