diff options
author | Slava Barinov <v.barinov@samsung.com> | 2018-12-05 14:24:07 +0300 |
---|---|---|
committer | Slava Barinov <v.barinov@samsung.com> | 2018-12-05 14:24:07 +0300 |
commit | 5573ca660c03b4d95fa05abb3a32497498737598 (patch) | |
tree | a9a37bfb0bfd58e3626d5cca95e2fc876f9a2862 | |
parent | 4b1aeb8672be74417f1b5f6a5683a0cf9071b39b (diff) | |
download | dejagnu-5573ca660c03b4d95fa05abb3a32497498737598.tar.gz dejagnu-5573ca660c03b4d95fa05abb3a32497498737598.tar.bz2 dejagnu-5573ca660c03b4d95fa05abb3a32497498737598.zip |
Packaging added
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r-- | packaging/dejagnu.manifest | 6 | ||||
-rw-r--r-- | packaging/dejagnu.spec | 58 |
2 files changed, 64 insertions, 0 deletions
diff --git a/packaging/dejagnu.manifest b/packaging/dejagnu.manifest new file mode 100644 index 0000000..9b5140d --- /dev/null +++ b/packaging/dejagnu.manifest @@ -0,0 +1,6 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> + diff --git a/packaging/dejagnu.spec b/packaging/dejagnu.spec new file mode 100644 index 0000000..2781ab8 --- /dev/null +++ b/packaging/dejagnu.spec @@ -0,0 +1,58 @@ +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 + +%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 |