1
0

Accepting request 296189 from devel:languages:haskell

1

OBS-URL: https://build.opensuse.org/request/show/296189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-rpm-macros?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2015-04-15 14:24:38 +00:00 committed by Git OBS Bridge
commit e0de2d9c74
3 changed files with 19 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 14 07:10:18 UTC 2015 - mimi.vx@gmail.com
- regenerated sle-sp1-rpmdeps.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 27 08:17:55 UTC 2015 - peter.trommler@ohm-hochschule.de Fri Mar 27 08:17:55 UTC 2015 - peter.trommler@ohm-hochschule.de

View File

@ -90,7 +90,7 @@ Macros used when generating source Haskell rpm packages.
%patch5 -p1 %patch5 -p1
%patch8 -p1 %patch8 -p1
%if 0%{?sles_version} %if 0%{?sles_version}
%patch -P 100 -p1 %patch -P 100 -p2
%endif %endif
%build %build

View File

@ -1,8 +1,8 @@
Index: ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52/ghc-deps.sh diff --git b/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381.orig/ghc-deps.sh a/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/ghc-deps.sh
=================================================================== index e3a681e..300315b 100755
--- ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52.orig/ghc-deps.sh --- b/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381.orig/ghc-deps.sh
+++ ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52/ghc-deps.sh +++ a/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/ghc-deps.sh
@@ -25,8 +25,8 @@ else @@ -30,8 +30,8 @@ else
fi fi
case $MODE in case $MODE in
@ -13,23 +13,17 @@ Index: ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52/ghc-deps.sh
*) echo "`basename $0`: Need --provides or --requires" ; exit 1 *) echo "`basename $0`: Need --provides or --requires" ; exit 1
esac esac
@@ -81,4 +81,4 @@ for i in $files; do diff --git b/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381.orig/macros.ghc a/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/macros.ghc
fi index 7bf522c..eda73be 100644
done --- b/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381.orig/macros.ghc
+++ a/ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/macros.ghc
-echo $files | tr [:blank:] '\n' | /usr/lib/rpm/rpmdeps $MODE @@ -127,6 +127,9 @@ fi\
+echo $files | tr [:blank:] '\n' | /usr/lib/rpm/find$FINDMODE find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -exec strip "{}" \\;\
Index: ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52/ghc-rpm-macros.ghc %endif
===================================================================
--- ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52.orig/ghc-rpm-macros.ghc
+++ ghc-rpm-macros-4d2eb25803c01c46ee84cd7f30f1bc5fb4efba52/ghc-rpm-macros.ghc
@@ -121,6 +121,9 @@ if [ -d "%{buildroot}%{_bindir}" ]; then
find %{buildroot}%{_bindir} -type f -exec sh -c "file {} | grep -q ' ELF '" \\; -exec execstack -c "{}" \\;\
fi
+# SLE does not define _rpmconfigdir (yet) +# SLE does not define _rpmconfigdir (yet)
+%_rpmconfigdir %{_prefix}/lib/rpm +%_rpmconfigdir %{_prefix}/lib/rpm
+ +
# install bin package # install bin package
%ghc_bin_install()\ %ghc_bin_install()\
%global _use_internal_dependency_generator 0\ %cabal_install\