[environment-modules] Add %check section

Orion Poplawski orion at fedoraproject.org
Fri Nov 11 22:00:08 UTC 2011


commit 9fdb2025263128a20ebb691ff969b6cd7be21a20
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Fri Nov 11 15:00:04 2011 -0700

    Add %check section

 environment-modules.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/environment-modules.spec b/environment-modules.spec
index c772134..517fa8d 100644
--- a/environment-modules.spec
+++ b/environment-modules.spec
@@ -1,6 +1,6 @@
 Name:           environment-modules
 Version:        3.2.9a
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Provides dynamic modification of a user's environment
 
 Group:          System Environment/Base
@@ -13,6 +13,7 @@ Patch0:         environment-modules-3.2.7-bindir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  tcl-devel, tclx-devel, libX11-devel
+BuildRequires:  dejagnu
 BuildRequires:  man
 #For ps in startup script
 Requires:       procps
@@ -71,6 +72,10 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles
 rm -rf $RPM_BUILD_ROOT
 
 
+%check
+make test
+
+
 %files
 %defattr(-,root,root,-)
 %doc LICENSE.GPL README TODO
@@ -83,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Nov 11 2011 Orion Poplawski <orion at cora.nwra.com> - 3.2.9a-2
+- Add %%check section
+
 * Fri Nov 11 2011 Orion Poplawski <orion at cora.nwra.com> - 3.2.9a-1
 - Update to 3.2.9a
 - Drop strcpy patch


More information about the scm-commits mailing list