fix the package.conf existence check
This commit is contained in:
parent
430e328400
commit
b78d93fec3
@ -10,7 +10,7 @@
|
|||||||
#%%global without_hscolour 1
|
#%%global without_hscolour 1
|
||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.7.0
|
Version: 1.6.50
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RPM macros for building Haskell packages for GHC
|
Summary: RPM macros for building Haskell packages for GHC
|
||||||
|
|
||||||
@ -162,8 +162,10 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Sep 13 2017 Jens Petersen <petersen@redhat.com> - 1.7.0-1
|
* Wed Sep 13 2017 Jens Petersen <petersen@redhat.com> - 1.6.50-1
|
||||||
- make some macro call args explicit for rpm-4.14 scope change
|
- make some macro call args explicit for rpm-4.14 scope change
|
||||||
|
(this breaks builds with earlier versions of rpm)
|
||||||
|
- fix the package.conf existence check
|
||||||
|
|
||||||
* Wed Aug 2 2017 Jens Petersen <petersen@redhat.com>
|
* Wed Aug 2 2017 Jens Petersen <petersen@redhat.com>
|
||||||
- ghc_gen_filelists: check package.conf exists
|
- ghc_gen_filelists: check package.conf exists
|
||||||
|
@ -73,8 +73,8 @@ LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
|
|||||||
%define pkgnamever %{pkgname}-%{pkgver}\
|
%define pkgnamever %{pkgname}-%{pkgver}\
|
||||||
%define basepkg %{?ghc_name}%{!?ghc_name:ghc}-%{pkgname}\
|
%define basepkg %{?ghc_name}%{!?ghc_name:ghc}-%{pkgname}\
|
||||||
%define docdir %{ghclibdocdir}/%{pkgnamever}\
|
%define docdir %{ghclibdocdir}/%{pkgnamever}\
|
||||||
if [ ! -f "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf" ]; then\
|
if [ ! -f %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf ]; then\
|
||||||
echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf not found"\
|
echo "%{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf not found"\
|
||||||
exit 1\
|
exit 1\
|
||||||
fi\
|
fi\
|
||||||
pkgconf=$(echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf")\
|
pkgconf=$(echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf")\
|
||||||
|
Loading…
Reference in New Issue
Block a user