also make %ghc_lib_build docdir unversioned

require redhat-rpm-config >= 9.1.0-50.fc20
epel9
Jens Petersen 12 years ago
parent e5c7bca0e8
commit 40a7e828d4

@ -86,7 +86,7 @@ install --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.d\
# ghc_lib_build_without_haddock [name] [version] # ghc_lib_build_without_haddock [name] [version]
%ghc_lib_build_without_haddock()\ %ghc_lib_build_without_haddock()\
%global debug_package %{nil}\ %global debug_package %{nil}\
%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} %{!?1:--global} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci} --ghc-option=-O2\ %cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} %{?1:--docdir=%{_docdir}/ghc-%1 --htmldir=%{ghclibdocdir}/%1-%2} %{!?1:--global} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci} --ghc-option=-O2\
%cabal build\ %cabal build\
%{nil} %{nil}

@ -6,7 +6,7 @@
#%%global without_hscolour 1 #%%global without_hscolour 1
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 1.0.5 Version: 1.0.6
Release: 1%{?dist} Release: 1%{?dist}
Summary: RPM macros for building packages for GHC Summary: RPM macros for building packages for GHC
@ -24,7 +24,8 @@ Source3: ghc-deps.sh
Source4: cabal-tweak-dep-ver Source4: cabal-tweak-dep-ver
Source5: cabal-tweak-flag Source5: cabal-tweak-flag
Source6: ghc-rpm-macros.ghc-extra Source6: ghc-rpm-macros.ghc-extra
Requires: redhat-rpm-config # ver-rel for unversioned docdir
Requires: redhat-rpm-config >= 9.1.0-50.fc20
%if %{undefined without_hscolour} %if %{undefined without_hscolour}
BuildRequires: redhat-rpm-config BuildRequires: redhat-rpm-config
ExclusiveArch: %{ghc_arches} ExclusiveArch: %{ghc_arches}
@ -89,6 +90,10 @@ EOF
%changelog %changelog
* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.6-1
- also make %ghc_lib_build docdir unversioned
- require redhat-rpm-config >= 9.1.0-50.fc20 for unversioned docdir
* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.5-1 * Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.5-1
- F20 Change: docdir's are now unversioned - F20 Change: docdir's are now unversioned

Loading…
Cancel
Save