From 8f4190a52c22cee63335d2bb777438f015e488b5 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 25 May 2012 23:52:09 +0900 Subject: [PATCH] rename ghc_binlib_package to ghc_lib_subpackage; fix new missing end of line backslashes --- ghc-rpm-macros.ghc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index ff5b0de..fddf790 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -77,7 +77,7 @@ if [ -d "%{buildroot}%{docdir}" ]; then\ echo "%{docdir}" >> %{basepkg}-devel.files\ fi\ for i in %{!?ghc_without_shared:%{basepkg}.files} %{basepkg}-devel.files; do\ -if [ -f "$i" ];\ +if [ -f "$i" ]; then\ sed -i -e "s!%{buildroot}!!g" $i\ fi\ done\ @@ -146,11 +146,11 @@ Group: System Environment/Libraries\ %{common_description}\ %if %{defined ghc_version} && %{undefined ghc_without_shared}\ This package provides the shared library.\ -%endif +%endif\ %endif -# ghc_binlib_package [-c cdepslist] [-h pkgdepslist] [-l licensetag] [-x] [name] [version] -%ghc_binlib_package(c:h:l:x)\ +# ghc_lib_subpackage [-c cdepslist] [-h pkgdepslist] [-l licensetag] [-x] [name] [version] +%ghc_lib_subpackage(c:h:l:x)\ %define pkgname %{?1}%{!?1:%{pkg_name}}\ %define pkgver %{?2}%{!?2:%{version}}\ %define pkgnamever %{pkgname}-%{pkgver}\ @@ -211,7 +211,7 @@ Provides: %{basepkg}-prof = %{pkgver}-%{release}\ %define pkgname %{?1}%{!?1:%{pkg_name}}\ %define basepkg ghc-%{pkgname}\ %description -n %{basepkg}-devel\ -%if %{defined common_description} +%if %{defined common_description}\ %{common_description}\ \ This package contains the development files.\