File uthash.spec of Package uthash

# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:               uthash
Version:            1.9.5
Release:            1.1
Summary:            Hash Table for C Structures
Source:   {version}.tar.bz2
Patch1:             uthash-proceed_with_tests_without_prompt.patch
Patch2:             uthash-optflags.patch
Group:              Development/Libraries/C and C++
License:            BSD-3-Clause
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
Provides:           uthash-devel = %{version}
BuildRequires:      gcc make glibc-devel pkgconfig
BuildArch:          noarch

Any C structure can be stored in a hash table using uthash. Just add a
UT_hash_handle to the structure and choose one or more fields in your structure
to act as the key. Then use these macros to store, retrieve or delete items
from the hash table. 

%setup -q
%__chmod 644 LICENSE


%__install -d "%{buildroot}%{_includedir}"
%__cp -a src/*.h "%{buildroot}%{_includedir}/"

pushd tests
OPTFLAGS="%{optflags}" \


* Tue Feb 28 2012
- initial version (1.9.5)