parent
54b6b07b5e
commit
b966e9d798
@ -10,6 +10,7 @@ Summary: Binding to the Gtk+ graphical user interface library
|
||||
License: LGPLv2+
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||
Patch0: gtk-Debian-ppc64-work-around-pixel-define.patch
|
||||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
@ -57,6 +58,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
%ifarch ppc64 ppc64le
|
||||
%patch0 -p1 -b .orig
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
@ -91,6 +95,7 @@ rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version}
|
||||
%changelog
|
||||
* Tue Jun 21 2016 Jens Petersen <petersen@redhat.com> - 0.14.2-1
|
||||
- update to 0.14.2
|
||||
- Debian patch for ppc64 pixel (#1291500)
|
||||
|
||||
* Sat Mar 5 2016 Jens Petersen <petersen@fedoraproject.org> - 0.13.9-3
|
||||
- rebuild
|
||||
|
17
gtk-Debian-ppc64-work-around-pixel-define.patch
Normal file
17
gtk-Debian-ppc64-work-around-pixel-define.patch
Normal file
@ -0,0 +1,17 @@
|
||||
Description: Work around predefined "pixel" on some architectures
|
||||
"pixel" is predefined on some Ubuntu architectures, confusing gtk2hsC2hs.
|
||||
Explicitly undefine it to work around this.
|
||||
Author: Colin Watson <cjwatson@ubuntu.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2014-06-05
|
||||
|
||||
Index: b/gtk.cabal
|
||||
===================================================================
|
||||
--- a/gtk.cabal
|
||||
+++ b/gtk.cabal
|
||||
@@ -399,3 +399,5 @@
|
||||
cc-options: -DGTK2HS_SET_FMODE_BINARY
|
||||
|
||||
pkgconfig-depends: gthread-2.0, gtk+-2.0
|
||||
+
|
||||
+ cpp-options: -Upixel
|
Loading…
Reference in New Issue
Block a user