Compare commits

...
Sign in to create a new pull request.

20 commits

Author SHA1 Message Date
Fedora Release Engineering
7ef41ef1ae Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:17 +00:00
Fedora Release Engineering
da2b48eb09 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-20 03:31:27 +00:00
Fedora Release Engineering
c1d9265ce4 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:54:24 +00:00
Fedora Release Engineering
9987d43094 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:59:52 +00:00
Fedora Release Engineering
4f80f6076b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:28:24 +00:00
Fedora Release Engineering
89e1ed1efa Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:21:47 +00:00
Miroslav Suchý
05db3e4e30 Migrate to SPDX license
This is part of 
https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2
2023-11-01 15:24:52 +00:00
Fedora Release Engineering
426d677d59 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:19:39 +00:00
Björn Esser
55d6af2e19
Require main package in doc package to avoid file conflicts 2023-06-28 01:12:17 +02:00
Björn Esser
f0195e5515
Drop google site-verification file from doc package 2023-06-28 01:12:16 +02:00
Björn Esser
374588bb32
Add example program to doc package 2023-06-28 01:11:44 +02:00
Björn Esser
ca04d4f5e6
Add explicit perl BRs 2023-06-28 01:11:44 +02:00
Björn Esser
d3de8c0bf2
Add tools package 2023-06-28 01:11:43 +02:00
Fedora Release Engineering
cf194b15ec Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:01:19 +00:00
Fedora Release Engineering
4bae7e9ae7 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:35:40 +00:00
Fedora Release Engineering
60847809eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:42:43 +00:00
Björn Esser
02c7ee79ff
Update to 2.3.0
Obsolete libut as it has been dropped upstream
2021-12-23 15:17:35 +01:00
Fedora Release Engineering
c0cfdcd6e6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:13:38 +00:00
Fedora Release Engineering
57881be5a3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:50:14 +00:00
Tom Stellard
956b52b82f Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-12 01:34:04 +00:00
4 changed files with 111 additions and 124 deletions

5
.gitignore vendored
View file

@ -1,4 +1 @@
/v1.9.8.tar.gz
/uthash-1.9.9.tar.gz
/uthash-2.0.1.tar.gz
/uthash-2.0.2.tar.gz
/uthash-*.tar.gz

View file

@ -1 +1 @@
SHA512 (uthash-2.0.2.tar.gz) = 0c2e686eb5a1d6a03a6fa1d42e803fca4e9b60b2d965c635a5a33d487c8d115f1f8155ff99a0e1874b69f6b66c04ea7d8866472a39abe5d1a23ae73f6fa956d7
SHA512 (uthash-2.3.0.tar.gz) = 3b01f1074790fb242900411cb16eb82c1a9afcf58e3196a0f4611d9d7ef94690ad38c0a500e7783d3efa20328aa8d6ab14f246be63b3b3d385502ba2b6b2a294

View file

@ -1,14 +0,0 @@
doc/userguide.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/userguide.txt b/doc/userguide.txt
--- a/doc/userguide.txt
+++ b/doc/userguide.txt
@@ -1,6 +1,6 @@
uthash User Guide
=================
-Troy D. Hanson, Arthur O'Dwyer
+Hanson, O'Dwyer
v2.0.2, March 2017
To download uthash, follow this link back to the

View file

@ -1,152 +1,156 @@
%global sover 0
%global git_url https://github.com/troydhanson/%{name}
Name: uthash
Version: 2.3.0
Release: 12%{?dist}
Summary: A hash table for C structures
%global common_desc \
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 _pkgdocdir if not defined already
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: uthash
Version: 2.0.2
Release: 9%{?dist}
Summary: A hash table for C structures
License: BSD
URL: http://troydhanson.github.io/%{name}
Source0: %{git_url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%if (0%{?rhel} && 0%{?rhel} <= 6)
# Downstream patch for asciidoc generation.
Patch1000: %{name}-%{version}_fix-asciidoc.patch
%endif # (0#{?rhel} && 0#{?rhel} <= 6)
License: BSD-1-Clause
URL: http://troydhanson.github.io/%{name}
Source0: https://github.com/troydhanson/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: asciidoc
BuildRequires: gcc
BuildRequires: asciidoc
BuildRequires: perl-interpreter
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
%description
%{common_desc}
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: A hash table for C structures (headers only)
%package devel
Summary: A hash table for C structures (headers only)
Provides: %{name}-static == %{version}-%{release}
# c-compiled libraries have been dropped upstream.
Obsoletes: libut < 2.3.0
Obsoletes: libut-devel < 2.3.0
BuildArch: noarch
Provides: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Provides: libut = %{version}-%{release}
Provides: libut-devel = %{version}-%{release}
%description devel
%{common_desc}
BuildArch: noarch
%description devel
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 tools
Summary: Command-line utilities for %{name}
Requires: %{name} = %{version}-%{release}
%description tools
This package provides the hashscan and keystats utility programs
for %{name}.
The hashscan program examines a running process and reports on the
uthash tables that it finds in that programs memory. It can also
save the keys from each table in a format that can be fed into keystats.
The keystats program is able to analyze which hash function has the best
characteristics on the set of keys reported by the hashscan program.
%package doc
Summary: Documentation-files for %{name}.
BuildArch: noarch
Summary: Documentation-files for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description doc
This package contains the documentation-files for %{name}.
%package -n libut
Summary: Library-implementation of utvector
%description -n libut
The utvector is an alternative to utarray. It is a bit more
efficient. It's object code, not just a header.
%package -n libut-devel
Summary: Development-files for libut
Requires: %{name}-devel == %{version}-%{release}
Requires: libut%{?_isa} == %{version}-%{release}
%description -n libut-devel
Development-files for libut.
%prep
%autosetup -p 1
%autosetup -p1
%build
%configure || :
export CFLAGS="-fPIC ${CFLAGS}"
%make_build -C libut
%{__cc} -shared ${CFLAGS} ${LDFLAGS} \
-Wl,-soname,libut.so.%{sover} \
-o libut/libut.so.%{sover} libut/*.o
%set_build_flags
%make_build -C doc
%make_build -C tests
%make_build -C tests/threads
%install
%{__mkdir} -p html \
%{buildroot}%{_includedir} \
%{buildroot}%{_libdir} \
%{buildroot}%{_pkgdocdir}/{html,libut}
%{__install} -pm 0644 src/*.h %{buildroot}%{_includedir}
%{__install} -pm 0755 libut/libut.so.0 %{buildroot}%{_libdir}
/bin/ln -s %{_libdir}/libut.so.0 %{buildroot}%{_libdir}/libut.so
mkdir -p %{buildroot}{%{_bindir},%{_includedir},%{_pkgdocdir}/html}
install -pm 0755 tests/{hashscan,keystats} %{buildroot}%{_bindir}
install -pm 0644 src/*.h %{buildroot}%{_includedir}
# Install doc.
%{__install} -pm 0644 doc/*.txt %{buildroot}%{_pkgdocdir}
%{__install} -pm 0644 doc/*.html doc/*.css doc/*.png %{buildroot}%{_pkgdocdir}/html
%{__install} -pm 0644 libut/README.md %{buildroot}%{_pkgdocdir}/libut
%if (0%{?rhel} && 0%{?rhel} <= 6)
%{__install} -pm 0644 LICENSE %{buildroot}%{_pkgdocdir}
%endif # (0#{?rhel} && 0#{?rhel} <= 6)
%check
%configure || :
%make_build -C tests
%make_build -C tests/threads
%make_build -C libut/tests
%ldconfig_scriptlets -n libut
install -pm 0644 doc/*.txt tests/example.c %{buildroot}%{_pkgdocdir}
install -pm 0644 doc/*.html doc/*.css doc/*.png %{buildroot}%{_pkgdocdir}/html
rm -f %{buildroot}%{_pkgdocdir}/html/google*.html
%files devel
%if !(0%{?rhel} && 0%{?rhel} <= 6)
%license LICENSE
%else # !(0%{?rhel} && 0%{?rhel} <= 6)
%doc %{_pkgdocdir}/LICENSE
%endif # !(0%{?rhel} && 0%{?rhel} <= 6)
%doc %dir %{_pkgdocdir}
%exclude %{_includedir}/utvector.h
%{_includedir}/ut*.h
%doc %{_pkgdocdir}/ChangeLog.txt
%{_includedir}/*.h
%files tools
%{_bindir}/*
%files doc
%if !(0%{?rhel} && 0%{?rhel} <= 6)
%license %{_datadir}/licenses/%{name}*
%endif # !(0%{?rhel} && 0%{?rhel} <= 6)
%doc %{_pkgdocdir}
%files -n libut
%if !(0%{?rhel} && 0%{?rhel} <= 6)
%license %{_datadir}/licenses/%{name}*
%else # !(0%{?rhel} && 0%{?rhel} <= 6)
%doc %{_pkgdocdir}/LICENSE
%endif # !(0%{?rhel} && 0%{?rhel} <= 6)
%doc %dir %{_pkgdocdir}
%{_libdir}/libut.so.%{sover}
%files -n libut-devel
%doc %dir %{_pkgdocdir}
%doc %{_pkgdocdir}/libut
%{_includedir}/libut.h
%{_includedir}/ringbuf.h
%{_includedir}/utvector.h
%{_libdir}/libut.so
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Tue Jan 20 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 27 2023 Björn Esser <besser82@fedoraproject.org> - 2.3.0-5
- Add tools package
- Add explicit perl BRs
- Add example program to doc package
- Drop google site-verification file from doc package
- Require main package in doc package to avoid file conflicts
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Dec 23 2021 Björn Esser <besser82@fedoraproject.org> - 2.3.0-1
- Update to 2.3.0
- Obsolete libut as it has been dropped upstream
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild