[libecb] Import
Petr Pisar
ppisar at fedoraproject.org
Mon Oct 22 12:14:43 UTC 2012
commit 08c23a5c7304286efbdbd90e0bfbebdd67fb44b4
Author: Petr Písař <ppisar at redhat.com>
Date: Mon Oct 22 14:13:13 2012 +0200
Import
.gitignore | 1 +
Coro-6.09-Fix-a-typo-in-ecb.h.patch | 27 +++++++++++++++++++++++
libecb.spec | 40 +++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a65a816 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libecb-20121008.tar.xz
diff --git a/Coro-6.09-Fix-a-typo-in-ecb.h.patch b/Coro-6.09-Fix-a-typo-in-ecb.h.patch
new file mode 100644
index 0000000..ea6bcb2
--- /dev/null
+++ b/Coro-6.09-Fix-a-typo-in-ecb.h.patch
@@ -0,0 +1,27 @@
+From de7220dcac464425fc2667706100901d0fc7f444 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 8 Oct 2012 13:25:37 +0200
+Subject: [PATCH] Fix a typo in ecb.h
+
+A code for big endian system has a mistyped return word.
+<https://rt.cpan.org/Public/Bug/Display.html?id=80056>
+---
+ Coro/ecb.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Coro/ecb.h b/Coro/ecb.h
+index 1162bc6..5a88f60 100644
+--- a/Coro/ecb.h
++++ b/Coro/ecb.h
+@@ -494,7 +494,7 @@ ecb_byteorder_helper (void)
+ #elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ return 0x44;
+ #elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+- retrurn 0x11;
++ return 0x11;
+ #else
+ union
+ {
+--
+1.7.11.7
+
diff --git a/libecb.spec b/libecb.spec
new file mode 100644
index 0000000..4f46aa5
--- /dev/null
+++ b/libecb.spec
@@ -0,0 +1,40 @@
+%global snapshot 20121008
+Name: libecb
+Version: 0.%{snapshot}
+Release: 1%{?dist}
+Summary: Compiler built-ins
+Group: Development/Libraries
+License: BSD
+URL: http://software.schmorp.de/pkg/libecb
+# Snapshot from CVS :pserver:anonymous at cvs.schmorp.de/schmorpforge libecb
+Source0: %{name}-20121008.tar.xz
+# Bug #863991, submitted to upstream
+Patch0: Coro-6.09-Fix-a-typo-in-ecb.h.patch
+BuildArch: noarch
+Requires: glibc-headers
+
+%description
+This project delivers you many GCC built-ins, attributes and a number of
+generally useful low-level functions, such as popcount, expect, prefetch,
+noinline, assume, unreachable and so on.
+
+%prep
+%setup -q -n %{name}-%{snapshot}
+%patch0 -p2 -b .bigendian
+
+%build
+# Keep empty %%build section for possible RPM hooks
+
+%install
+install -d %{buildroot}%{_includedir}
+install -m 0644 -t %{buildroot}%{_includedir} *.h
+
+%files
+%doc Changes ecb.pod LICENSE README
+%{_includedir}/*
+
+%changelog
+* Mon Oct 08 2012 Petr Pisar <ppisar at redhat.com> - 0.20121008-1
+- CVS snapshot taken on 2012-10-08
+- Fix for building on big-endian systems (bug #863991)
+
diff --git a/sources b/sources
index e69de29..8c410da 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07b61e2c1afae942dd5764d58ad112a0 libecb-20121008.tar.xz
More information about the scm-commits
mailing list