Install modulefile in proper location
This commit is contained in:
parent
06b61e72c3
commit
b8658009ef
11
mp.spec
11
mp.spec
|
@ -21,7 +21,7 @@
|
|||
|
||||
Name: mp
|
||||
Version: 3.1.0
|
||||
Release: 19.%{date}git%(echo %{checkout} | cut -c-6)%{?dist}
|
||||
Release: 20.%{date}git%(echo %{checkout} | cut -c-6)%{?dist}
|
||||
License: MIT and BSD
|
||||
Summary: An open-source library for mathematical programming
|
||||
URL: https://github.com/ampl/mp
|
||||
|
@ -163,9 +163,9 @@ popd
|
|||
%install
|
||||
#m%%ake_install
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/Modules/modulefiles
|
||||
mkdir -p %{buildroot}%{_modulesdir}
|
||||
sed 's#@BINDIR@#'%{_libdir}/%{name}'#g;' < %{SOURCE1} > \
|
||||
%{buildroot}%{_datadir}/Modules/modulefiles/%{name}-%{_arch}
|
||||
%{buildroot}%{_modulesdir}/%{name}-%{_arch}
|
||||
|
||||
mkdir -p %{buildroot}%{_libdir}/%{name}/bin
|
||||
mkdir -p %{buildroot}%{_includedir}/asl
|
||||
|
@ -276,7 +276,7 @@ ctest --force-new-ctest-process --parallel %{?_smp_mflags} -I 4,15,,1,17,28
|
|||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%{_libdir}/*.so.*
|
||||
%endif
|
||||
%{_datadir}/Modules/modulefiles/%{name}-%{_arch}
|
||||
%{_modulesdir}/%{name}-%{_arch}
|
||||
|
||||
%files devel
|
||||
%if 0%{?rhel} && 0%{?rhel} < 7
|
||||
|
@ -289,6 +289,9 @@ ctest --force-new-ctest-process --parallel %{?_smp_mflags} -I 4,15,,1,17,28
|
|||
%{_includedir}/mp
|
||||
|
||||
%changelog
|
||||
* Fri Feb 22 2019 Orion Poplawski <orion@nwra.com> - 3.1.0-20.20161124git1f3980
|
||||
- Install modulefile in proper location
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-19.20161124git1f3980
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue