Accepting request 826905 from devel:libraries:c_c++
- update to 2.9.4: * use optflags for building * Remove NULL sentinels from test runner * Reject interior blanks in Content-Length * Disallow empty Content-Length * Speed up http_parser loop * Fix bad pointer arithmetic * Support multi-coding Transfer-Encoding - remove makefile.patch: we want to build with -Werror OBS-URL: https://build.opensuse.org/request/show/826905 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/http-parser?expand=0&rev=7
This commit is contained in:
commit
3e56033ae1
@ -1 +1 @@
|
||||
libhttp_parser2_7_1
|
||||
libhttp_parser2_9
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:70409ad324e5de2da6a0f39e859e566d497c1ff0a249c0c38a5012df91b386b3
|
||||
size 48578
|
BIN
http-parser-2.9.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
http-parser-2.9.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 15 23:03:50 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- update to 2.9.4:
|
||||
* use optflags for building
|
||||
* Remove NULL sentinels from test runner
|
||||
* Reject interior blanks in Content-Length
|
||||
* Disallow empty Content-Length
|
||||
* Speed up http_parser loop
|
||||
* Fix bad pointer arithmetic
|
||||
* Support multi-coding Transfer-Encoding
|
||||
|
||||
- remove makefile.patch: we want to build with -Werror
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 3 10:01:08 UTC 2017 - mimi.vx@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package http-parser
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,22 +12,21 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define soname 2_7_1
|
||||
%define soname 2_9
|
||||
%define libname libhttp_parser%{soname}
|
||||
Name: http-parser
|
||||
Version: 2.7.1
|
||||
Version: 2.9.4
|
||||
Release: 0
|
||||
Summary: HTTP request/response parser for C
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://github.com/nodejs/http-parser
|
||||
URL: https://github.com/nodejs/http-parser
|
||||
Source0: https://github.com/nodejs/http-parser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
Patch0: makefile.patch
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%description
|
||||
@ -72,27 +71,27 @@ Development headers and libraries for http-parser.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} PREFIX=%{_prefix} library
|
||||
%make_build PREFIX=%{_prefix} CFLAGS_FAST_EXTRA="%{optflags}" library
|
||||
|
||||
%install
|
||||
make PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir} install
|
||||
%make_install PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
||||
chmod a-x %{buildroot}/%{_includedir}/*.h
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} test
|
||||
%make_build test
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{libname}
|
||||
%doc AUTHORS LICENSE-MIT README.md
|
||||
%license LICENSE-MIT
|
||||
%doc README.md
|
||||
%{_libdir}/libhttp_parser.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/*
|
||||
%{_includedir}/http_parser.h
|
||||
%{_libdir}/libhttp_parser.so
|
||||
|
||||
%changelog
|
||||
|
@ -1,63 +0,0 @@
|
||||
Index: http-parser-2.7.1/Makefile
|
||||
===================================================================
|
||||
--- http-parser-2.7.1.orig/Makefile
|
||||
+++ http-parser-2.7.1/Makefile
|
||||
@@ -46,7 +46,6 @@ CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSE
|
||||
CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA)
|
||||
CPPFLAGS_BENCH = $(CPPFLAGS_FAST)
|
||||
|
||||
-CFLAGS += -Wall -Wextra -Werror
|
||||
CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
|
||||
CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
|
||||
CFLAGS_BENCH = $(CFLAGS_FAST) -Wno-unused-parameter
|
||||
@@ -55,7 +54,7 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
|
||||
LDFLAGS_LIB = $(LDFLAGS) -shared
|
||||
|
||||
INSTALL ?= install
|
||||
-PREFIX ?= $(DESTDIR)/usr/local
|
||||
+PREFIX ?= /usr/local
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
INCLUDEDIR = $(PREFIX)/include
|
||||
|
||||
@@ -102,7 +101,7 @@ libhttp_parser.o: http_parser.c http_par
|
||||
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
|
||||
|
||||
library: libhttp_parser.o
|
||||
- $(CC) $(LDFLAGS_LIB) -o $(SONAME) $<
|
||||
+ $(CC) $(CFLAGS_LIB) $(LDFLAGS_LIB) -o $(SONAME) $<
|
||||
|
||||
package: http_parser.o
|
||||
$(AR) rcs libhttp_parser.a http_parser.o
|
||||
@@ -122,20 +121,20 @@ parsertrace_g: http_parser_g.o contrib/p
|
||||
tags: http_parser.c http_parser.h test.c
|
||||
ctags $^
|
||||
|
||||
-install: library
|
||||
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
||||
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
-
|
||||
-install-strip: library
|
||||
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
||||
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
+install: $(SONAME)
|
||||
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
|
||||
+ $(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
|
||||
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
|
||||
+
|
||||
+install-strip: $(SONAME)
|
||||
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
|
||||
+ $(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
|
||||
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
|
||||
|
||||
uninstall:
|
||||
- rm $(INCLUDEDIR)/http_parser.h
|
||||
- rm $(LIBDIR)/$(SONAME)
|
||||
- rm $(LIBDIR)/libhttp_parser.so
|
||||
+ rm "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
|
||||
+ rm "$(DESTDIR)$(LIBDIR)/$(SONAME)"
|
||||
+ rm "$(DESTDIR)$(LIBDIR)/libhttp_parser.so"
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a tags test test_fast test_g \
|
Loading…
Reference in New Issue
Block a user