blob: 1fbd7af16e23730d2c3f828e67735bd3fea9a57c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Summary: A hash table for C structures
Name: uthash
Version: 1.9.3
Release: 1
License: BSD-style single-clause
Group: System/Kernel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source0: %{name}-%{version}.tar.bz2
Source1001: packaging/uthash.manifest
%description
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.
%package devel
Summary: %{summary}
Group: Development/Libraries
%description devel
Description: %{summary}
%prep
%setup -q
%build
cp %{SOURCE1001} .
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/include
cd src
cp utarray.h uthash.h utlist.h utstring.h $RPM_BUILD_ROOT/usr/include
%clean
%files devel
%manifest uthash.manifest
%defattr(-,root,root,-)
%{_includedir}/utarray.h
%{_includedir}/uthash.h
%{_includedir}/utlist.h
%{_includedir}/utstring.h
|