Hello community, here is the log from the commit of package http-parser for openSUSE:Factory checked in at 2017-11-10 14:39:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/http-parser (Old) and /work/SRC/openSUSE:Factory/.http-parser.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "http-parser" Fri Nov 10 14:39:33 2017 rev:6 rq:539235 version:2.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/http-parser/http-parser.changes 2016-10-25 17:43:14.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.http-parser.new/http-parser.changes 2017-11-10 14:41:31.858500956 +0100 @@ -1,0 +2,8 @@ +Fri Nov 3 10:01:08 UTC 2017 - [email protected] + +- move out from gyp +- use correct SONAME +- drop http-parser-gyp-sharedlib.patch +- add makefile.patch + +------------------------------------------------------------------- Old: ---- http-parser-gyp-sharedlib.patch New: ---- makefile.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ http-parser.spec ++++++ --- /var/tmp/diff_new_pack.qYuYjI/_old 2017-11-10 14:41:33.162453824 +0100 +++ /var/tmp/diff_new_pack.qYuYjI/_new 2017-11-10 14:41:33.170453534 +0100 @@ -1,7 +1,7 @@ # # spec file for package http-parser # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,19 @@ # -%define somajor suse0 -%define libname libhttp-parser-%{somajor} +%define soname 2_7_1 +%define libname libhttp_parser%{soname} Name: http-parser Version: 2.7.1 Release: 0 Summary: HTTP request/response parser for C License: MIT Group: Development/Libraries/C and C++ -Url: https://github.com/joyent/http-parser -Source0: https://github.com/joyent/http-parser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +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 -Patch1: http-parser-gyp-sharedlib.patch +Patch0: makefile.patch BuildRequires: gcc-c++ -BuildRequires: gyp %description This is a parser for HTTP messages written in C. It parses both @@ -43,6 +42,8 @@ %package -n %{libname} Summary: HTTP request/response parser for C Group: System/Libraries +Provides: libhttp-parser-suse0 = %{version} +Obsoletes: libhttp-parser-suse0 <= %{version} %description -n %{libname} This is a parser for HTTP messages written in C. It parses both @@ -71,45 +72,27 @@ %prep %setup -q -%patch1 -p1 +%patch0 -p1 %build -# TODO: fix -fPIC upstream -export CFLAGS='%{optflags} -fPIC' -gyp -f make --depth=`pwd` http_parser.gyp -make %{?_smp_mflags} BUILDTYPE=Release +make %{?_smp_mflags} PREFIX=%{_prefix} library %install -install -d %{buildroot}%{_includedir} -install -d %{buildroot}%{_libdir} -install -pm644 http_parser.h %{buildroot}%{_includedir} - -#install regular variant -install "out/Release/lib.target/libhttp_parser.so.%{somajor}" "%{buildroot}/%{_libdir}/" -ln -sf "libhttp_parser.so.%{somajor}" "%{buildroot}/%{_libdir}/libhttp_parser.so" - -#install strict variant -install "out/Release/lib.target/libhttp_parser_strict.so.%{somajor}" "%{buildroot}/%{_libdir}/" -ln -sf "libhttp_parser_strict.so.%{somajor}" "%{buildroot}/%{_libdir}/libhttp_parser_strict.so" +make PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir} install +chmod a-x %{buildroot}/%{_includedir}/*.h %check -export LD_LIBRARY_PATH='./out/Release/lib.target' -./out/Release/test-nonstrict -./out/Release/test-strict +make %{?_smp_mflags} test %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} -%defattr(-,root,root) %doc AUTHORS LICENSE-MIT README.md %{_libdir}/libhttp_parser.so.* -%{_libdir}/libhttp_parser_strict.so.* %files devel -%defattr(-,root,root) %{_includedir}/* %{_libdir}/libhttp_parser.so -%{_libdir}/libhttp_parser_strict.so %changelog ++++++ baselibs.conf ++++++ --- /var/tmp/diff_new_pack.qYuYjI/_old 2017-11-10 14:41:33.202452377 +0100 +++ /var/tmp/diff_new_pack.qYuYjI/_new 2017-11-10 14:41:33.202452377 +0100 @@ -1 +1 @@ -libhttp-parser-suse0 +libhttp_parser2_7_1 ++++++ makefile.patch ++++++ 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 \
