Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
90c95f28d3 !9 Revert Change source to latest update
Merge pull request !9 from huanghaitao/openEuler-20.03-LTS
2020-06-02 16:37:32 +08:00
hht8
3fceac50cc Revert Change source to latest update 2020-06-02 16:31:19 +08:00
openeuler-ci-bot
5bee1390e5 !7 Change source to latest update
Merge pull request !7 from huanghaitao/openEuler-20.03-LTS
2020-06-02 14:13:53 +08:00
hht8
27fad0cef2 Change source to latest update 2020-06-02 10:47:00 +08:00
openeuler-ci-bot
78d7b7c4ab !3 Add stack-protector-strong flag
Merge pull request !3 from sigui/sgs-own
2020-03-18 11:16:16 +08:00
zhangtao2020
6ead125e0a Add stack-protector-strong flag 2020-03-18 11:10:30 +08:00
openeuler-ci-bot
afb05bdd9d !2 Fix header file missing
Merge pull request !2 from 窃格瓦拉/master
2020-01-14 18:42:40 +08:00
qiegewala
e34f5aff8d Fix header file missing
Signed-off-by: qiegewala <1169471515@qq.com>
2020-01-14 18:01:29 +08:00
openeuler-ci-bot
5f928b15cc !1 Package Init
Merge pull request !1 from 窃格瓦拉/master
2020-01-13 16:33:54 +08:00
qiegewala
9bf88ea366 Package Init 2020-01-13 15:26:17 +08:00
3 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/libut/Makefile b/libut/Makefile
index 6143588..f67ff06 100644
--- a/libut/Makefile
+++ b/libut/Makefile
@@ -4,6 +4,7 @@ INCDIR=./include
CFLAGS+=-I$(INCDIR)
CFLAGS+=-Wall -Wextra
CFLAGS+=-g
+CFLAGS+=-fstack-protector-strong
libut.a: libut.o utvector.o utmm.o ringbuf.o
ar r $@ $^

90
uthash.spec Normal file
View File

@ -0,0 +1,90 @@
Name: uthash
Version: 2.0.2
Release: 7
Summary: Hash table for C structures
License: BSD
URL: https://github.com/troydhanson/uthash
Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz
Patch6000: uthash-2.0.2-add-stack-protector-strong-flag.patch
BuildRequires: asciidoc
Provides: libut == %{version}-%{release} libut-devel == %{version}-%{release}
Obsoletes: libut <= %{version}-%{release} libut-devel <= %{version}-%{release}
%description
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
various platforms including Linux, Windows, Solaris, OpenBSD, FreeBSD and Android.
Most of operations on hash table are supported, such as add/replace, find, delete,
count, iterate and sort.
%package devel
Summary: Header and library files for uthash
%description devel
Header and library files for uthash
%package help
Summary: Documentation for uthash
BuildArch: noarch
%description help
Documentation for uthash
Provides: libut-doc == %{version}-%{release}
Obsoletes: libut-doc <= %{version}-%{release}
%prep
%autosetup -p1
%build
cd doc/
%make_build V=1
cd ..
cd libut/
export CFLAGS="-fPIC"
%make_build
gcc -fPIC -shared -o libut.so.0 *.o
%install
install -d %{buildroot}%{_prefix}/share/doc/uthash
cd doc/
cp *.html *.txt *.css *.png %{buildroot}%{_prefix}/share/doc/uthash/
cd ..
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
%{_libdir}/libut.so
%{_libdir}/libut.a
%{_includedir}/*
%files help
%doc %{_prefix}/share/doc/uthash/*
%exclude %{_prefix}/share/doc/uthash/README.md
%changelog
* 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

BIN
v2.0.2.tar.gz Normal file

Binary file not shown.