diff --git a/uthash.spec b/uthash.spec index 7bf0b2a..80bfaba 100644 --- a/uthash.spec +++ b/uthash.spec @@ -1,9 +1,13 @@ +# Header-only lib. +%global debug_package %{nil} + + Name: uthash Version: 2.3.0 -Release: 12%{?dist} +Release: 2%{?dist} Summary: A hash table for C structures -License: BSD-1-Clause +License: BSD URL: http://troydhanson.github.io/%{name} Source0: https://github.com/troydhanson/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -11,8 +15,6 @@ BuildRequires: asciidoc BuildRequires: gcc BuildRequires: make BuildRequires: perl-interpreter -BuildRequires: perl(strict) -BuildRequires: perl(warnings) %description Any C structure can be stored in a hash table using uthash. Just @@ -42,26 +44,9 @@ 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 program’s 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 -Requires: %{name} = %{version}-%{release} %description doc This package contains the documentation-files for %{name}. @@ -72,20 +57,21 @@ This package contains the documentation-files for %{name}. %build -%set_build_flags %make_build -C doc -%make_build -C tests -%make_build -C tests/threads %install -mkdir -p %{buildroot}{%{_bindir},%{_includedir},%{_pkgdocdir}/html} -install -pm 0755 tests/{hashscan,keystats} %{buildroot}%{_bindir} +mkdir -p %{buildroot}{%{_includedir},%{_pkgdocdir}/html} install -pm 0644 src/*.h %{buildroot}%{_includedir} # Install doc. -install -pm 0644 doc/*.txt tests/example.c %{buildroot}%{_pkgdocdir} +install -pm 0644 doc/*.txt %{buildroot}%{_pkgdocdir} install -pm 0644 doc/*.html doc/*.css doc/*.png %{buildroot}%{_pkgdocdir}/html -rm -f %{buildroot}%{_pkgdocdir}/html/google*.html + + +%check +%set_build_flags +%make_build -C tests +%make_build -C tests/threads %files devel @@ -94,50 +80,12 @@ rm -f %{buildroot}%{_pkgdocdir}/html/google*.html %doc %{_pkgdocdir}/ChangeLog.txt %{_includedir}/*.h - -%files tools -%{_bindir}/* - - %files doc +%license %{_datadir}/licenses/%{name}* %doc %{_pkgdocdir} %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 2.3.0-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Tue Jan 20 2026 Fedora Release Engineering - 2.3.0-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Fri Jul 25 2025 Fedora Release Engineering - 2.3.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 2.3.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sat Jul 20 2024 Fedora Release Engineering - 2.3.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jan 27 2024 Fedora Release Engineering - 2.3.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 2.3.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 27 2023 Björn Esser - 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 - 2.3.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Jul 23 2022 Fedora Release Engineering - 2.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - * Sat Jan 22 2022 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild