update to 2.3.0
This commit is contained in:
parent
5b9de5e9e1
commit
2963e481b4
65
uthash.spec
65
uthash.spec
@ -1,13 +1,12 @@
|
|||||||
%global debug_package %{nil}
|
|
||||||
Name: uthash
|
Name: uthash
|
||||||
Version: 2.1.0
|
Version: 2.3.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Hash table for C structures
|
Summary: Hash table for C structures
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/troydhanson/uthash
|
URL: https://github.com/troydhanson/uthash
|
||||||
Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz
|
Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc gcc make perl-interpreter perl(strict) perl(warnings)
|
||||||
%description
|
%description
|
||||||
This package provides hash table for C structures. It isn't a library but a single
|
This package provides hash table for C structures. It isn't a library but a single
|
||||||
header file, so there is no library code to link against. It has been tested on
|
header file, so there is no library code to link against. It has been tested on
|
||||||
@ -17,10 +16,26 @@ count, iterate and sort.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Header and library files for uthash
|
Summary: Header and library files for uthash
|
||||||
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
Obsoletes: %{name} < %{version}-%{release}
|
||||||
%description devel
|
%description devel
|
||||||
Header and library files for uthash
|
Header and library files for uthash
|
||||||
|
|
||||||
|
%package tools
|
||||||
|
Summary: Command-line utilities for %{name}
|
||||||
|
Requires: %{name}-devel = %{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 help
|
%package help
|
||||||
Summary: Documentation for uthash
|
Summary: Documentation for uthash
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -32,35 +47,35 @@ Documentation for uthash
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd doc/
|
%set_build_flags
|
||||||
%make_build V=1
|
%make_build -C doc
|
||||||
cd ..
|
%make_build -C tests
|
||||||
|
%make_build -C tests/threads
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d %{buildroot}%{_prefix}/share/doc/uthash
|
mkdir -p %{buildroot}{%{_bindir},%{_includedir},%{_pkgdocdir}/html}
|
||||||
install -d %{buildroot}%{_prefix}/share/licenses/uthash/
|
install -pm 0755 tests/{hashscan,keystats} %{buildroot}%{_bindir}
|
||||||
cp LICENSE %{buildroot}%{_prefix}/share/licenses/uthash/
|
install -pm 0644 src/*.h %{buildroot}%{_includedir}
|
||||||
cp README.md %{buildroot}%{_prefix}/share/doc/uthash/
|
install -pm 0644 doc/*.txt tests/example.c %{buildroot}%{_pkgdocdir}
|
||||||
|
install -pm 0644 doc/*.html doc/*.css doc/*.png %{buildroot}%{_pkgdocdir}/html
|
||||||
install -d %{buildroot}%{_includedir}
|
rm -f %{buildroot}%{_pkgdocdir}/html/google*.html
|
||||||
cd src/
|
|
||||||
cp * %{buildroot}%{_includedir}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
install -d %{buildroot}%{_libdir}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc %{_prefix}/share/licenses/uthash/LICENSE
|
|
||||||
%doc %{_prefix}/share/doc/uthash/README.md
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%license LICENSE
|
||||||
|
%doc %dir %{_pkgdocdir}
|
||||||
|
%doc %{_pkgdocdir}/ChangeLog.txt
|
||||||
|
%{_includedir}/*.h
|
||||||
|
|
||||||
|
%files tools
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{_prefix}/share/doc/uthash/*
|
%doc %{_pkgdocdir}
|
||||||
%exclude %{_prefix}/share/doc/uthash/README.md
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 23 2023 liyanan <thistleslyn@163.com> - 2.3.0-1
|
||||||
|
- Update to 2.3.0
|
||||||
|
|
||||||
* Tue Jun 02 2020 huanghaitao <huanghaitao8@huawei.com> - 2.1.0-1
|
* Tue Jun 02 2020 huanghaitao <huanghaitao8@huawei.com> - 2.1.0-1
|
||||||
- Change source to latest update
|
- Change source to latest update
|
||||||
|
|
||||||
|
|||||||
BIN
v2.1.0.tar.gz
BIN
v2.1.0.tar.gz
Binary file not shown.
BIN
v2.3.0.tar.gz
Normal file
BIN
v2.3.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user