fix the requires for common

epel9
Jens Petersen 10 years ago
parent 223303d9fb
commit 7014db360f

@ -31,7 +31,7 @@ BuildRequires: autoconf
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
BuildRequires: libxslt BuildRequires: libxslt
%if %{with static} %if %{with static}
Requires: %{name}-common = %{release} Requires: %{name}-common = %{version}-%{release}
Requires(post): %{_sbindir}/update-alternatives Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives
%endif %endif
@ -53,7 +53,7 @@ This provides the common files for %{name}.
%package static %package static
Summary: Static Haskell build Summary: Static Haskell build
Requires: %{name}-common = %{release} Requires: %{name}-common = %{version}-%{release}
Requires(post): %{_sbindir}/update-alternatives Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives
@ -88,9 +88,8 @@ cd ..
mv %{buildroot}%{_bindir}/%{name}{,.dynamic} mv %{buildroot}%{_bindir}/%{name}{,.dynamic}
install dist/build/%{name}/%{name}.static %{buildroot}%{_bindir} install dist/build/%{name}/%{name}.static %{buildroot}%{_bindir}
touch %{buildroot}%{_bindir}/%{name} touch %{buildroot}%{_bindir}/%{name}
%endif
rm %{buildroot}%{_pkgdocdir}/LICENSE rm %{buildroot}%{_pkgdocdir}/LICENSE
%endif
%check %check

Loading…
Cancel
Save