Compare commits
No commits in common. "237f02daea02bcd2a85046a88597c919bdb153f5" and "9bf88ea366d83fd4d23e644beea6f62cf5418d18" have entirely different histories.
237f02daea
...
9bf88ea366
96
uthash.spec
96
uthash.spec
@ -1,12 +1,15 @@
|
|||||||
Name: uthash
|
Name: uthash
|
||||||
Version: 2.3.0
|
Version: 2.0.2
|
||||||
Release: 1
|
Release: 6
|
||||||
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 gcc make perl-interpreter perl(strict) perl(warnings)
|
BuildRequires: asciidoc
|
||||||
|
Provides: libut == %{version}-%{release} libut-devel == %{version}-%{release}
|
||||||
|
Obsoletes: libut <= %{version}-%{release} libut-devel <= %{version}-%{release}
|
||||||
|
|
||||||
%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
|
||||||
@ -16,72 +19,69 @@ 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
|
||||||
|
|
||||||
%description help
|
%description help
|
||||||
Documentation for uthash
|
Documentation for uthash
|
||||||
|
Provides: libut-doc == %{version}-%{release}
|
||||||
|
Obsoletes: libut-doc <= %{version}-%{release}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
cd doc/
|
||||||
%make_build -C doc
|
%make_build
|
||||||
%make_build -C tests
|
cd ..
|
||||||
%make_build -C tests/threads
|
|
||||||
|
cd libut/
|
||||||
|
export CFLAGS="-fPIC"
|
||||||
|
%make_build
|
||||||
|
gcc -fPIC -shared -o libut.so.0 *.o
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}{%{_bindir},%{_includedir},%{_pkgdocdir}/html}
|
install -d %{buildroot}%{_prefix}/share/doc/uthash
|
||||||
install -pm 0755 tests/{hashscan,keystats} %{buildroot}%{_bindir}
|
cd doc/
|
||||||
install -pm 0644 src/*.h %{buildroot}%{_includedir}
|
cp *.html *.txt *.css *.png %{buildroot}%{_prefix}/share/doc/uthash/
|
||||||
install -pm 0644 doc/*.txt tests/example.c %{buildroot}%{_pkgdocdir}
|
cd ..
|
||||||
install -pm 0644 doc/*.html doc/*.css doc/*.png %{buildroot}%{_pkgdocdir}/html
|
|
||||||
rm -f %{buildroot}%{_pkgdocdir}/html/google*.html
|
cp libut/README.md %{buildroot}%{_prefix}/share/doc/uthash/
|
||||||
|
install -d %{buildroot}%{_prefix}/share/licenses/uthash/
|
||||||
|
cp LICENSE %{buildroot}%{_prefix}/share/licenses/uthash/
|
||||||
|
|
||||||
|
install -d %{buildroot}%{_includedir}
|
||||||
|
cd src/
|
||||||
|
cp * %{buildroot}%{_includedir}
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
install -d %{buildroot}%{_libdir}
|
||||||
|
cd libut/
|
||||||
|
cp libut.a %{buildroot}%{_libdir}
|
||||||
|
cp libut.so.0 %{buildroot}%{_libdir}
|
||||||
|
ln -s %{_libdir}/libut.so.0 %{buildroot}%{_libdir}/libut.so
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/libut.so.0
|
||||||
|
%doc %{_prefix}/share/licenses/uthash/LICENSE
|
||||||
|
%doc %{_prefix}/share/doc/uthash/README.md
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE
|
%{_libdir}/libut.so
|
||||||
%doc %dir %{_pkgdocdir}
|
%{_libdir}/libut.a
|
||||||
%doc %{_pkgdocdir}/ChangeLog.txt
|
%{_includedir}/*
|
||||||
%{_includedir}/*.h
|
%exclude %{_includedir}/utvector.h
|
||||||
|
|
||||||
%files tools
|
|
||||||
%{_bindir}/*
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{_pkgdocdir}
|
%doc %{_prefix}/share/doc/uthash/*
|
||||||
|
%exclude %{_prefix}/share/doc/uthash/README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Aug 23 2023 liyanan <thistleslyn@163.com> - 2.3.0-1
|
* Tue Dec 07 2019 lihao <lihao129@huawei.com> - 2.0.2-6
|
||||||
- Update to 2.3.0
|
|
||||||
|
|
||||||
* Tue Jun 02 2020 huanghaitao <huanghaitao8@huawei.com> - 2.1.0-1
|
|
||||||
- Change source to latest update
|
|
||||||
|
|
||||||
* Thu Mar 18 2020 zhangtao <zhangtao221@huawei.com> - 2.0.2-7
|
|
||||||
- Add stack-protector-strong flag
|
|
||||||
|
|
||||||
* Sat Dec 07 2019 lihao <lihao129@huawei.com> - 2.0.2-6
|
|
||||||
- Package Init
|
- Package Init
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: troydhanson/uthash
|
|
||||||
tag_prefix: ^v
|
|
||||||
seperator: .
|
|
||||||
BIN
v2.0.2.tar.gz
Normal file
BIN
v2.0.2.tar.gz
Normal file
Binary file not shown.
BIN
v2.3.0.tar.gz
BIN
v2.3.0.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user