!9 Revert Change source to latest update

Merge pull request !9 from huanghaitao/openEuler-20.03-LTS
This commit is contained in:
openeuler-ci-bot 2020-06-02 16:37:32 +08:00 committed by Gitee
commit 90c95f28d3
4 changed files with 37 additions and 7 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 $@ $^

View File

@ -1,13 +1,16 @@
%global debug_package %{nil}
Name: uthash Name: uthash
Version: 2.1.0 Version: 2.0.2
Release: 1 Release: 7
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
Patch6000: uthash-2.0.2-add-stack-protector-strong-flag.patch
BuildRequires: asciidoc 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
@ -27,6 +30,8 @@ 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
@ -36,11 +41,20 @@ cd doc/
%make_build V=1 %make_build V=1
cd .. cd ..
cd libut/
export CFLAGS="-fPIC"
%make_build
gcc -fPIC -shared -o libut.so.0 *.o
%install %install
install -d %{buildroot}%{_prefix}/share/doc/uthash 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/ install -d %{buildroot}%{_prefix}/share/licenses/uthash/
cp LICENSE %{buildroot}%{_prefix}/share/licenses/uthash/ cp LICENSE %{buildroot}%{_prefix}/share/licenses/uthash/
cp README.md %{buildroot}%{_prefix}/share/doc/uthash/
install -d %{buildroot}%{_includedir} install -d %{buildroot}%{_includedir}
cd src/ cd src/
@ -48,12 +62,19 @@ cp * %{buildroot}%{_includedir}
cd .. cd ..
install -d %{buildroot}%{_libdir} 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 %files
%{_libdir}/libut.so.0
%doc %{_prefix}/share/licenses/uthash/LICENSE %doc %{_prefix}/share/licenses/uthash/LICENSE
%doc %{_prefix}/share/doc/uthash/README.md %doc %{_prefix}/share/doc/uthash/README.md
%files devel %files devel
%{_libdir}/libut.so
%{_libdir}/libut.a
%{_includedir}/* %{_includedir}/*
%files help %files help
@ -61,9 +82,6 @@ install -d %{buildroot}%{_libdir}
%exclude %{_prefix}/share/doc/uthash/README.md %exclude %{_prefix}/share/doc/uthash/README.md
%changelog %changelog
* 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 * Thu Mar 18 2020 zhangtao <zhangtao221@huawei.com> - 2.0.2-7
- Add stack-protector-strong flag - Add stack-protector-strong flag

BIN
v2.0.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.