Accepting request 91189 from systemsmanagement
updated version - move /usr/Modules to /usr/share/Modules for FHS 2.2 - update to 3.2.8a * switched to 3.2 release * lots of changes and bugfixes * see NEWS for details OBS-URL: https://build.opensuse.org/request/show/91189 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
8455a82c51
commit
4c98e88aa7
69
Modules.spec
69
Modules.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package Modules (Version 3.1.6)
|
||||
# spec file for package Modules
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,18 +19,18 @@
|
||||
|
||||
|
||||
Name: Modules
|
||||
BuildRequires: tcl-devel xorg-x11-devel
|
||||
BuildRequires: tcl-devel
|
||||
# xorg-x11-devel
|
||||
Url: http://modules.sourceforge.net/
|
||||
Version: 3.1.6
|
||||
Version: 3.2.8
|
||||
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
|
||||
Source: modules-%{version}a.tar.bz2
|
||||
Patch: modules-%{version}.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: environment-modules
|
||||
Obsoletes: environment-modules
|
||||
@@ -58,12 +58,11 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n modules-%{version}
|
||||
%patch
|
||||
%patch1 -p1
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
#autoreconf --force --install
|
||||
autoconf
|
||||
aclocal --force -I config
|
||||
autoreconf --force --install
|
||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \
|
||||
--prefix=/usr \
|
||||
--with-version-path=/usr/share/modules \
|
||||
@@ -71,60 +70,36 @@ CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \
|
||||
--mandir=%{_mandir} \
|
||||
--with-etc-path=/etc \
|
||||
--with-skel-path=/etc/skel \
|
||||
--with-tcl-libraries=/usr \
|
||||
--without-x
|
||||
--with-tcl=%{_libdir} \
|
||||
--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
|
||||
install -d $RPM_BUILD_ROOT/usr/bin
|
||||
pushd $RPM_BUILD_ROOT/usr/bin
|
||||
ln -s ../share/Modules/%{version}/bin/add.modules .
|
||||
ln -s ../share/Modules/%{version}/bin/mkroot .
|
||||
ln -s ../share/Modules/%{version}/bin/modulecmd .
|
||||
popd
|
||||
|
||||
%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
|
||||
%doc ChangeLog LICENSE.GPL NEWS README TODO
|
||||
%dir %{_prefix}/share/Modules
|
||||
%{_prefix}/share/Modules/*
|
||||
%dir /usr/share/modules
|
||||
/usr/share/modules/*
|
||||
/usr/bin/add.modules
|
||||
%{_bindir}/*
|
||||
/etc/profile.d/modules.*
|
||||
%doc %{_mandir}/man4/*
|
||||
%doc %{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 25 2006 mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Fri Jan 20 2006 mrueckert@suse.de
|
||||
- Remove temporary files if they are no longer used.
|
||||
(#73973,#144398)
|
||||
* Tue Jan 17 2006 mrueckert@suse.de
|
||||
- fix version path so modules find its configs again
|
||||
* Mon Sep 13 2004 nashif@suse.de
|
||||
- Fixed trap call in profile.d script (#45056)
|
||||
* Thu Sep 02 2004 nashif@suse.de
|
||||
- #43781: Fixed segfault, verify tmp file was created.
|
||||
* Sat Aug 14 2004 nashif@suse.de
|
||||
- Renamed package
|
||||
- Fixed mkstemp (#43781)
|
||||
* Sat Apr 24 2004 nashif@suse.de
|
||||
- Added -fno-strict-aliasing to CFLAGS
|
||||
* Sat Jan 10 2004 adrian@suse.de
|
||||
- use x-devel-packages
|
||||
* Sat May 17 2003 nashif@suse.de
|
||||
- Fixed file list in spec file
|
||||
* Tue Aug 06 2002 nashif@suse.de
|
||||
- fixed sourcing of global configuration file
|
||||
* Mon Feb 11 2002 nashif@suse.de
|
||||
- new version: 3.1.6
|
||||
* Wed Jun 06 2001 nashif@suse.de
|
||||
- Fixed configure.in
|
||||
* Mon Feb 19 2001 nashif@suse.de
|
||||
- Initial Release (Version 3.1.1)
|
||||
|
Reference in New Issue
Block a user