--- /dev/null
+--- librtas-1.3.8/rules.mk.orig 2013-01-31 19:30:53.000000000 +0100
++++ librtas-1.3.8/rules.mk 2013-02-02 16:54:44.392521243 +0100
+@@ -111,7 +111,7 @@
+ #
+ # $1 library to examine
+ define is_lib64
+-$(findstring 64,$(shell file $(firstword $1)))
++$(subst -bit,,$(findstring 64-bit,$(shell file $(firstword $1))))
+ endef
+
+ #
Summary: Libraries for user-space access to the Run-Time Abstraction Services
Summary(pl.UTF-8): Biblioteki do dostępu do RTAS z przestrzeni użytkownika
Name: librtas
-Version: 1.3.7
+Version: 1.3.8
Release: 1
License: CPL v1.0
Group: Libraries
-#Source0: http://librtas.ozlabs.org/releases/%{name}-%{version}.tar.gz
Source0: http://downloads.sourceforge.net/librtas/%{name}-%{version}.tar.gz
-# Source0-md5: 74c567a1574b9a5d4029763fc3a4b940
-URL: http://librtas.ozlabs.org/
+# Source0-md5: 1d737ff4bc9a86b3e2cfd3a805f7632d
+Patch0: %{name}-lib64.patch
+URL: http://librtas.sourceforge.net/
# uses PowerPC-specific RTAS proc files/syscalls
ExclusiveArch: ppc ppc64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
+%patch0 -p1
+
+find . -name 'lib*.so*' | xargs %{__rm}
%build
CFLAGS="%{rpmcflags}" \