Install rpm macros to %{_rpmconfigdir}/macros.d as non-%config.
https://lists.fedoraproject.org/pipermail/devel/2014-January/195026.html https://fedorahosted.org/fpc/ticket/259
This commit is contained in:
parent
642fdc3757
commit
82ce2318d5
13
mpich.spec
13
mpich.spec
@ -3,7 +3,7 @@
|
||||
Summary: A high-performance implementation of MPI
|
||||
Name: mpich
|
||||
Version: 3.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
URL: http://www.mpich.org/
|
||||
@ -178,9 +178,9 @@ module load mpi/%{name}-%{_arch}
|
||||
EOF
|
||||
cp -p %{buildroot}%{_sysconfdir}/profile.d/mpich-%{_arch}.{sh,csh}
|
||||
|
||||
# Install the RPM macro
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
cp -pr %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.%{name}
|
||||
# Install the RPM macros
|
||||
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
||||
cp -p %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name}
|
||||
|
||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
||||
rm -f %{buildroot}%{_libdir}/%{name}/lib/lib{*mpich*,opa,mpl}.a
|
||||
@ -214,7 +214,7 @@ make check
|
||||
%{_libdir}/%{name}/lib/*.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/pkgconfig/openpa.pc
|
||||
%config %{_sysconfdir}/rpm/macros.%{name}
|
||||
%{_rpmconfigdir}/macros.d/macros.%{name}
|
||||
|
||||
%files doc
|
||||
%dir %{_datadir}/%{name}
|
||||
@ -222,6 +222,9 @@ make check
|
||||
%{_mandir}/%{name}/man3/
|
||||
|
||||
%changelog
|
||||
* Fri Feb 21 2014 Ville Skyttä <ville.skytta@iki.fi> - 3.1-2
|
||||
- Install rpm macros to %%{_rpmconfigdir}/macros.d as non-%%config.
|
||||
|
||||
* Fri Feb 21 2014 Deji Akingunola <dakingun@gmail.com> - 3.1-1
|
||||
- Update to 3.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user