2007-01-15 23:49:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package Modules (Version 3.1.6)
|
|
|
|
#
|
2009-06-18 00:06:45 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:49:24 +01:00
|
|
|
#
|
2009-06-18 00:06:45 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:49:24 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 00:06:45 +02:00
|
|
|
|
|
|
|
Name: Modules
|
|
|
|
BuildRequires: tcl-devel xorg-x11-devel
|
|
|
|
Url: http://modules.sourceforge.net/
|
|
|
|
Version: 3.1.6
|
|
|
|
Release: 216
|
|
|
|
Summary: Environment Modules
|
|
|
|
License: BSD 3-Clause; GPL v2 or later; LGPL v2.1 or later
|
|
|
|
Group: System/Management
|
|
|
|
Requires: tcl
|
|
|
|
AutoReqProv: on
|
|
|
|
Source: modules-%{version}.tar.bz2
|
|
|
|
Patch: modules-%{version}.dif
|
|
|
|
Patch1: modules_tmpfile.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Provides: environment-modules
|
|
|
|
Obsoletes: environment-modules
|
2007-01-15 23:49:24 +01:00
|
|
|
|
|
|
|
%description
|
2009-06-18 00:06:45 +02:00
|
|
|
The Modules package provides for dynamic modification of a user's
|
|
|
|
environment with module files. Each module file contains the
|
|
|
|
information needed to configure the shell for an application. Once the
|
2007-01-15 23:49:24 +01:00
|
|
|
package is initialized, the environment can be modified dynamically on
|
2009-06-18 00:06:45 +02:00
|
|
|
a per-module basis using the module command that interprets module
|
|
|
|
files. Typically, module files instruct the module command to alter or
|
|
|
|
set shell environment variables, such as PATH or MANPATH. Module files
|
|
|
|
may be shared by many users on a system and users may have their own
|
|
|
|
collection to supplement or replace the shared module files. The
|
|
|
|
modules environment is common on SGI/Crays and many workstation farms.
|
2007-01-15 23:49:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
John L. Furlan <jlf@behere.com>
|
|
|
|
Peter W. Osel <pwo@Osel.DE>
|
|
|
|
Jens Hamisch <Jens.Hamisch@Strawberry.COM>
|
|
|
|
R.K. Owen <rk@owen.sj.ca.us>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n modules-%{version}
|
|
|
|
%patch
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
#autoreconf --force --install
|
|
|
|
autoconf
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-version-path=/usr/share/modules \
|
|
|
|
--with-module-path=/usr/share/modules/modulefiles \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-etc-path=/etc \
|
|
|
|
--with-skel-path=/etc/skel \
|
|
|
|
--with-tcl-libraries=/usr \
|
|
|
|
--without-x
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/bin
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/share/modules
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
install -m 644 etc/global/profile.modules $RPM_BUILD_ROOT/etc/profile.d/modules.sh
|
|
|
|
install -m 644 etc/global/csh.modules $RPM_BUILD_ROOT/etc/profile.d/modules.csh
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm $RPM_BUILD_ROOT/usr/bin/mkroot
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc xref/* ChangeLog LICENSE.GPL PROBLEMS README TODO doc/Modules-Paper.doc
|
|
|
|
/usr/bin/modulecmd
|
|
|
|
%dir /usr/share/modules
|
|
|
|
/usr/share/modules/*
|
|
|
|
/usr/bin/add.modules
|
|
|
|
/etc/profile.d/modules.*
|
|
|
|
%doc %{_mandir}/man4/*
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
2009-06-18 00:06:45 +02:00
|
|
|
%changelog
|
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2009-06-18 00:06:45 +02:00
|
|
|
* Fri Jan 20 2006 mrueckert@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Remove temporary files if they are no longer used.
|
|
|
|
(#73973,#144398)
|
2009-06-18 00:06:45 +02:00
|
|
|
* Tue Jan 17 2006 mrueckert@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- fix version path so modules find its configs again
|
2009-06-18 00:06:45 +02:00
|
|
|
* Mon Sep 13 2004 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Fixed trap call in profile.d script (#45056)
|
2009-06-18 00:06:45 +02:00
|
|
|
* Thu Sep 02 2004 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- #43781: Fixed segfault, verify tmp file was created.
|
2009-06-18 00:06:45 +02:00
|
|
|
* Sat Aug 14 2004 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Renamed package
|
|
|
|
- Fixed mkstemp (#43781)
|
2009-06-18 00:06:45 +02:00
|
|
|
* Sat Apr 24 2004 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Added -fno-strict-aliasing to CFLAGS
|
2009-06-18 00:06:45 +02:00
|
|
|
* Sat Jan 10 2004 adrian@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- use x-devel-packages
|
2009-06-18 00:06:45 +02:00
|
|
|
* Sat May 17 2003 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Fixed file list in spec file
|
2009-06-18 00:06:45 +02:00
|
|
|
* Tue Aug 06 2002 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- fixed sourcing of global configuration file
|
2009-06-18 00:06:45 +02:00
|
|
|
* Mon Feb 11 2002 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- new version: 3.1.6
|
2009-06-18 00:06:45 +02:00
|
|
|
* Wed Jun 06 2001 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Fixed configure.in
|
2009-06-18 00:06:45 +02:00
|
|
|
* Mon Feb 19 2001 nashif@suse.de
|
2007-01-15 23:49:24 +01:00
|
|
|
- Initial Release (Version 3.1.1)
|