--- /dev/null
+--- trousers-0.3.9/src/include/hosttable.h.orig 2011-05-04 16:33:11.000000000 +0200
++++ trousers-0.3.9/src/include/hosttable.h 2012-09-02 21:18:31.891307206 +0200
+@@ -33,7 +33,6 @@
+ MUTEX_DECLARE(lock);
+ };
+
+-extern struct host_table *ht;
+ struct host_table_entry *get_table_entry(TCS_CONTEXT_HANDLE);
+ void put_table_entry(struct host_table_entry *);
+ TSS_RESULT __tspi_add_table_entry(TSS_HCONTEXT, BYTE *, int, struct host_table_entry **);
+--- trousers-0.3.9/src/tspi/rpc/hosttable.c.orig 2011-05-04 16:33:11.000000000 +0200
++++ trousers-0.3.9/src/tspi/rpc/hosttable.c 2012-09-02 21:18:44.017974230 +0200
+@@ -19,7 +19,7 @@
+ #include "hosttable.h"
+ #include "obj.h"
+
+-struct host_table *ht = NULL;
++static struct host_table *ht = NULL;
+
+ TSS_RESULT
+ host_table_init()
Summary(pl.UTF-8): TrouSerS - programowy stos TCG o otwartych źródłach
Name: trousers
Version: 0.3.9
-Release: 1
+Release: 2
License: CPL v1.0
Group: Applications/System
Source0: http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz
# Source0-md5: 1322030eb2540ea0640cfe471b077f32
Patch0: %{name}-nouser.patch
+Patch1: hide-internal-ht-symbol.patch
URL: http://trousers.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake >= 1.6
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# there is some unused variable causing warning
sed -i -e 's/-Werror //' configure.in