diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index ff555d9..0e94ec6 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -24,7 +24,7 @@ fi if ! grep -q "%1[ >=].*%2"; then\ exit 1\ fi\ -sed -i.%{?3}%{!?3:%1} -e "s/\(%1[ >=].*\)%2/\1%3/g" %{pkg_name}-%{version}/%{pkg_name}.cabal +sed -i.%{?3}%1 -e "s/\(%1[ >=].*\)%2/\1%3/g" %{pkg_name}-%{version}/%{pkg_name}.cabal # configure %cabal_configure\