1
0

Accepting request 265136 from devel:languages:haskell:platform

enable Haskell shared libraries on ppc

OBS-URL: https://build.opensuse.org/request/show/265136
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-rpm-macros?expand=0&rev=38
This commit is contained in:
Peter Trommler 2014-12-14 09:35:34 +00:00 committed by Git OBS Bridge
parent 5275f2fa5d
commit 86b1b51525
3 changed files with 12 additions and 14 deletions

View File

@ -1 +0,0 @@
addFilter("no-binary")

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Dec 14 09:26:31 UTC 2014 - peter.trommler@ohm-hochschule.de
- make package noarch and remove rpmlintrc
-------------------------------------------------------------------
Sat Dec 13 09:33:54 UTC 2014 - peter.trommler@ohm-hochschule.de
- do not disable dynamic libraries on ppc anymore
* fixed by patch 18 in ghc.spec
-------------------------------------------------------------------
Tue Oct 21 15:05:27 UTC 2014 - peter.trommler@ohm-hochschule.de

View File

@ -25,6 +25,7 @@
Name: ghc-rpm-macros
Version: 1.3.6
Release: 0
BuildArch: noarch
Summary: RPM Macros for building packages for GHC
License: GPL-3.0+
Group: Development/Libraries/Other
@ -32,7 +33,6 @@ Group: Development/Libraries/Other
Url: https://fedoraproject.org/wiki/Haskell_SIG
Source0: http://pkgs.fedoraproject.org/cgit/%{name}.git/snapshot/%{name}-%{git_hash}.tar.xz
Source1: ghc-rpm-macros-rpmlintrc
# PATCH-FIX-OPENSUSE suse-disable-debug-packages.patch peter.trommler@ohm-hochschule.de -- openSUSE way to disable debug packages
Patch1: suse-disable-debug-packages.patch
# PATCH-FIX-OPENSUSE add-group.patch sbahling@suse.com -- Make sure a Group: tag is generated in subpackages; peter.trommler@ohm-hochschule.de: also puts libraries in System/Libraries, see package group guidelines
@ -110,18 +110,6 @@ install -p -D -m 0644 ghc.attr %{buildroot}/%{_prefix}/lib/rpm/fileattrs/ghc.att
install -p -D -m 0755 cabal-tweak-dep-ver %{buildroot}/%{_bindir}/cabal-tweak-dep-ver
install -p -D -m 0755 cabal-tweak-flag %{buildroot}/%{_bindir}/cabal-tweak-flag
# this is why this package is (still) arch-dependent:
# turn off shared libs and dynamic linking on ppc
# See Haskell trac #8024
%ifarch ppc
cat >> %{buildroot}%{macros_dir}/macros.ghc <<EOF
# shared libraries are only supported on primary intel archs
%%ghc_without_dynamic 1
%%ghc_without_shared 1
EOF
%endif
%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS