|
|
@ -12,7 +12,6 @@ print(name)\
|
|
|
|
local pv = rpm.expand("%1")\
|
|
|
|
local pv = rpm.expand("%1")\
|
|
|
|
print(string.sub(pv, string.find(pv, "[%d.]+$")))\
|
|
|
|
print(string.sub(pv, string.find(pv, "[%d.]+$")))\
|
|
|
|
}}\
|
|
|
|
}}\
|
|
|
|
%define pkgnamever %{pkgname}-%{pkgver}\
|
|
|
|
|
|
|
|
%{!-x:%{?1:%global ghc_packages_list %{?ghc_packages_list} %{pkgname}-%{pkgver}}}\
|
|
|
|
%{!-x:%{?1:%global ghc_packages_list %{?ghc_packages_list} %{pkgname}-%{pkgver}}}\
|
|
|
|
%define ghc_prefix %{?ghc_name}%{!?ghc_name:ghc}\
|
|
|
|
%define ghc_prefix %{?ghc_name}%{!?ghc_name:ghc}\
|
|
|
|
%define basepkg %{ghc_prefix}-%{pkgname}\
|
|
|
|
%define basepkg %{ghc_prefix}-%{pkgname}\
|
|
|
@ -69,8 +68,7 @@ This package provides the Haskell %{pkgname} profiling library.\
|
|
|
|
%files -n %{basepkg}-devel -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-devel.files\
|
|
|
|
%files -n %{basepkg}-devel -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-devel.files\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
%if %{undefined without_haddock}\
|
|
|
|
%if %{undefined without_haddock}\
|
|
|
|
%files -n %{basepkg}-doc\
|
|
|
|
%files -n %{basepkg}-doc -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-doc.files\
|
|
|
|
%{ghc_html_libraries_dir}/%{pkgnamever}\
|
|
|
|
|
|
|
|
%endif\
|
|
|
|
%endif\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
%if %{undefined without_prof}\
|
|
|
|
%if %{undefined without_prof}\
|
|
|
|