commit lua51-mpack for openSUSE:Factory
Hello community, here is the log from the commit of package lua51-mpack for openSUSE:Factory checked in at 2017-07-07 10:16:39 Comparing /work/SRC/openSUSE:Factory/lua51-mpack (Old) and /work/SRC/openSUSE:Factory/.lua51-mpack.new (New) Package is "lua51-mpack" Fri Jul 7 10:16:39 2017 rev:4 rq:508195 version:1.0.6 Changes: --- /work/SRC/openSUSE:Factory/lua51-mpack/lua51-mpack.changes 2017-06-07 09:55:06.445362310 +0200 +++ /work/SRC/openSUSE:Factory/.lua51-mpack.new/lua51-mpack.changes 2017-07-07 10:16:42.996708073 +0200 @@ -1,0 +2,5 @@ +Tue Jul 4 16:57:57 UTC 2017 - roni...@gmail.com + +- Fix compilation in openSUSE Leap 42.3. + +--- Other differences: -- ++ lua51-mpack.spec ++ --- /var/tmp/diff_new_pack.ntbkLg/_old 2017-07-07 10:16:43.860585838 +0200 +++ /var/tmp/diff_new_pack.ntbkLg/_new 2017-07-07 10:16:43.860585838 +0200 @@ -59,6 +59,11 @@ # Fix lua directory. sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{_libdir}/lua/%{lua_version}")|g' Makefile +# Fix Lua 5.1 library name if we are building for Leap 42.3. +%if 0%{?leap_version} == 420300 +sed -i 's|LUA_LIB :=.*|LUA_LIB := -llua|g' Makefile +%endif + %build make %{?_smp_mflags} USE_SYSTEM_LUA=yes
commit lua51-mpack for openSUSE:Factory
Hello community, here is the log from the commit of package lua51-mpack for openSUSE:Factory checked in at 2017-06-07 09:55:05 Comparing /work/SRC/openSUSE:Factory/lua51-mpack (Old) and /work/SRC/openSUSE:Factory/.lua51-mpack.new (New) Package is "lua51-mpack" Wed Jun 7 09:55:05 2017 rev:3 rq:500898 version:1.0.6 Changes: --- /work/SRC/openSUSE:Factory/lua51-mpack/lua51-mpack.changes 2016-10-10 16:24:59.0 +0200 +++ /work/SRC/openSUSE:Factory/.lua51-mpack.new/lua51-mpack.changes 2017-06-07 09:55:06.445362310 +0200 @@ -1,0 +2,31 @@ +Thu Jun 1 17:13:03 UTC 2017 - roni...@gmail.com + +- Run spec-cleaner. +- Version bump to 1.0.6. + Upstream changelog: + + Version 1.0.6 + = + + * It seems luarocks.orgs caches a previously uploaded rockspec +for a version, even if we explicitly delete the version. + + Version 1.0.5 + = + + * Bump and adapt build scripts for repository transfer. + +- Adapt .spec because the upstream repository changed. + * libmpack was split into libmpack and libmpack-lua. Hence, now +we need to download libmpack source code and unpack it into the +folder mpack-src to build libmapck-lua. Thus, the file +`libmpack-1.0.5.tar.gz` that contains libmpack v1.0.5 source +code was added. +- Add patch `lua51-mpack-fix-compilation.patch` to fix a + compilation problem when using `USE_SYSTEM_LUA=1`. For more + information, see gh#libmpack/libmpack-lua#2 . +- Add patch `lua51-mpack-fix-gcc7.patch` to fix a compilation + failure when using GCC7. For more information, see + gh#libmpack/libmpack-lua#3 . + +--- Old: 1.0.3.tar.gz New: 1.0.6.tar.gz libmpack-1.0.5.tar.gz lua51-mpack-fix-compilation.patch lua51-mpack-fix-gcc7.patch Other differences: -- ++ lua51-mpack.spec ++ --- /var/tmp/diff_new_pack.8VPIz8/_old 2017-06-07 09:55:07.061275272 +0200 +++ /var/tmp/diff_new_pack.8VPIz8/_new 2017-06-07 09:55:07.061275272 +0200 @@ -1,7 +1,7 @@ # # spec file for package lua51-mpack # -# 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 @@ -18,14 +18,22 @@ %define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2) %define lua_archdir %{_libdir}/lua/%{lua_version} +%define libmpack_version 1.0.5 Name: lua51-mpack -Version:1.0.3 +Version:1.0.6 Release:0 Summary:Implementation of MessagePack for Lua 5.1 License:MIT Group: Development/Libraries/Other -Url:https://github.com/tarruda/libmpack -Source: https://github.com/tarruda/libmpack/archive/%{version}.tar.gz +Url:https://github.com/libmpack/libmpack-lua +Source: https://github.com/libmpack/libmpack-lua/archive/%{version}.tar.gz +# libmpack source is necessary to build lua51-mpack. +# The latest source can be downloaded from: https://github.com/libmpack/libmpack +Source1:libmpack-%{libmpack_version}.tar.gz +# PATCH-FIX-UPSTREAM lua51-mpack-fix-gcc7.patch gh#libmpack/libmpack-lua#3 -- Fix compilation error when using GCC7. +Patch0: lua51-mpack-fix-gcc7.patch +# PATCH-FIX-UPSTREAM lua51-mpack-fix-compilation.patch gh#libmpack/libmpack-lua#2 -- Fix compilation error when using `USE_SYSTEM_LUA=1`. +Patch1: lua51-mpack-fix-compilation.patch BuildRequires: gcc BuildRequires: libtool BuildRequires: lua51-devel @@ -37,28 +45,31 @@ both the msgpack and msgpack-rpc specifications. %prep -%setup -q -n libmpack-%{version} +%setup -q -n libmpack-lua-%{version} +%patch0 -p1 +%patch1 -p1 + +# Extract the libmpack source to the right directory. +mkdir -p mpack-src +pushd mpack-src +cp %{SOURCE1} ./ +tar --strip-components=1 -xzf libmpack-%{libmpack_version}.tar.gz +popd # Fix lua directory. -pushd binding/lua -sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{_libdir}/lua/$(LUA_VERSION_MAJ_MIN)")|g' Makefile -popd +sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{_libdir}/lua/%{lua_version}")|g' Makefile %build -pushd binding/lua -make USE_SYSTEM_LUA=yes -popd +make %{?_smp_mflags} USE_SYSTEM_LUA=yes %install -pushd binding/lua make USE_SYSTEM_LUA=yes \ DESTDIR=%{buildroot} \ install -popd %files %defattr(-,root,root) -%doc LICENSE-MIT README.md +%doc mpack-src/LICENSE-MIT README.md %dir %{lua_archdir} %{lua_archdir}/* ++ 1.0.3.tar.gz -> 1.0.6.tar.gz ++ 8716 lines of diff (skipped) ++
commit lua51-mpack for openSUSE:Factory
Hello community, here is the log from the commit of package lua51-mpack for openSUSE:Factory checked in at 2016-10-10 16:24:39 Comparing /work/SRC/openSUSE:Factory/lua51-mpack (Old) and /work/SRC/openSUSE:Factory/.lua51-mpack.new (New) Package is "lua51-mpack" Changes: --- /work/SRC/openSUSE:Factory/lua51-mpack/lua51-mpack.changes 2016-04-30 23:29:55.0 +0200 +++ /work/SRC/openSUSE:Factory/.lua51-mpack.new/lua51-mpack.changes 2016-10-10 16:24:59.0 +0200 @@ -1,0 +2,6 @@ +Sat Oct 8 23:48:19 UTC 2016 - roni...@gmail.com + +- Version bump to 1.0.3. + * No changelog available. + +--- Old: 1.0.2.tar.gz New: 1.0.3.tar.gz Other differences: -- ++ lua51-mpack.spec ++ --- /var/tmp/diff_new_pack.jRQ6a7/_old 2016-10-10 16:25:00.0 +0200 +++ /var/tmp/diff_new_pack.jRQ6a7/_new 2016-10-10 16:25:00.0 +0200 @@ -19,7 +19,7 @@ %define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2) %define lua_archdir %{_libdir}/lua/%{lua_version} Name: lua51-mpack -Version:1.0.2 +Version:1.0.3 Release:0 Summary:Implementation of MessagePack for Lua 5.1 License:MIT @@ -39,12 +39,22 @@ %prep %setup -q -n libmpack-%{version} +# Fix lua directory. +pushd binding/lua +sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{_libdir}/lua/$(LUA_VERSION_MAJ_MIN)")|g' Makefile +popd + %build -gcc -O2 -I%{_includedir}/lua/%{lua_version} -shared -fPIC -o mpack.so binding/lua/lmpack.c +pushd binding/lua +make USE_SYSTEM_LUA=yes +popd %install -mkdir -p %{buildroot}%{lua_archdir} -install -Dm755 mpack.so %{buildroot}%{lua_archdir} +pushd binding/lua +make USE_SYSTEM_LUA=yes \ + DESTDIR=%{buildroot} \ + install +popd %files %defattr(-,root,root) ++ 1.0.2.tar.gz -> 1.0.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libmpack-1.0.2/Makefile new/libmpack-1.0.3/Makefile --- old/libmpack-1.0.2/Makefile 2016-04-09 03:33:18.0 +0200 +++ new/libmpack-1.0.3/Makefile 2016-09-18 22:09:16.0 +0200 @@ -1,3 +1,6 @@ +# Some parts of this Makefile were taken or adapted from libunibilium: +# https://github.com/mauke/unibilium + config ?= debug SYSTEM ?= $(shell uname -s) @@ -20,11 +23,6 @@ SYMBOLIZER ?= /usr/bin/llvm-symbolizer -.PHONY: all gdb lib-bin test-bin tools amalgamation test coverage profile clean \ - compile_commands.json - -all: lib-bin test-bin - XCFLAGS += -Wall -Wextra -Wconversion -Wstrict-prototypes -pedantic ifeq ($(ANSI),1) @@ -36,11 +34,15 @@ endif NAME:= mpack -MAJOR := 0 +MAJOR := 1 MINOR := 0 -PATCH := 0 +PATCH := 3 VERSION := $(MAJOR).$(MINOR).$(PATCH) +LT_REVISION=0 +LT_CURRENT=0 +LT_AGE=0 + PREFIX ?= /usr/local LIBDIR ?= $(PREFIX)/lib INCDIR ?= $(PREFIX)/include @@ -53,7 +55,8 @@ SRC := $(addprefix $(SRCDIR)/,$(SRC)) HDRS:= $(SRC:.c=.h) OBJ := $(addprefix $(OUTDIR)/,$(SRC:.c=.lo)) -LIB := $(OUTDIR)/lib$(NAME).la +LIBRARY := lib$(NAME).la +LIB := $(OUTDIR)/$(LIBRARY) TSRC:= $(wildcard $(TESTDIR)/*.c) $(TESTDIR)/deps/tap/tap.c TOBJ:= $(addprefix $(OUTDIR)/,$(TSRC:.c=.lo)) TEXE:= $(OUTDIR)/run-tests @@ -64,37 +67,69 @@ TEST_FILTER_OUT := --coverage -ansi -std=c99 -include .config/$(config).mk +.PHONY: all +all: lib-bin test-bin -$(TOBJ): XCFLAGS := $(filter-out $(TEST_FILTER_OUT),$(XCFLAGS)) \ - -std=gnu99 -Wno-conversion -Wno-unused-parameter +include .config/$(config).mk +.PHONY: tools tools: $(COMPILER) $(RUNNER) +.PHONY: amalgamation amalgamation: $(AMALG) +.PHONY: lib-bin lib-bin: tools $(LIB) +.PHONY: test-bin test-bin: lib-bin $(TEXE) +.PHONY: test test: test-bin @$(RUNNER) $(TEXE) +.PHONY: gdb gdb: test-bin - gdb -x .gdb $(TEXE) + $(LIBTOOL) --mode=execute gdb -x .gdb $(TEXE) +.PHONY: coverage coverage: tools $(COVOUT) cat $(COVOUT) +.PHONY: profile profile: tools $(PROFOUT) cat $(PROFOUT) +.PHONY: compile_commands.json compile_commands.json: rm -f $(BINDIR)/compile_commands.json $(MAKE) config=$(config) clean bear $(MAKE) config=$(config) mv compile_commands.json $(BINDIR) +.PHONY: install +install: install-inc install-lib + $(LIBTOOL) --mode=finish '$(DESTDIR)$(LIBDIR)' + +.PHONY: install-inc +install-inc: $(AMALG_H) mpack.pc.in + mkdir -p '$(DESTDIR)$(INCDIR)' + install -m644 $(AMALG_H) '$(DESTDIR)$(INCDIR)' + mkdir -p '$(DESTDIR)$(LIBDIR)/pkgconfig' + sed 's,@VERSION@,$(VERSION),;s,@LIBDIR@,$(LIBDIR),;s,@INCDIR@,$(INCDIR),'
commit lua51-mpack for openSUSE:Factory
Hello community, here is the log from the commit of package lua51-mpack for openSUSE:Factory checked in at 2016-04-30 23:29:54 Comparing /work/SRC/openSUSE:Factory/lua51-mpack (Old) and /work/SRC/openSUSE:Factory/.lua51-mpack.new (New) Package is "lua51-mpack" Changes: New Changes file: --- /dev/null 2016-04-07 01:36:33.300037506 +0200 +++ /work/SRC/openSUSE:Factory/.lua51-mpack.new/lua51-mpack.changes 2016-04-30 23:29:55.0 +0200 @@ -0,0 +1,5 @@ +--- +Fri Apr 22 00:50:42 UTC 2016 - roni...@gmail.com + +- Initial version. + New: 1.0.2.tar.gz lua51-mpack.changes lua51-mpack.spec Other differences: -- ++ lua51-mpack.spec ++ # # spec file for package lua51-mpack # # Copyright (c) 2016 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # 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/ # %define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2) %define lua_archdir %{_libdir}/lua/%{lua_version} Name: lua51-mpack Version:1.0.2 Release:0 Summary:Implementation of MessagePack for Lua 5.1 License:MIT Group: Development/Libraries/Other Url:https://github.com/tarruda/libmpack Source: https://github.com/tarruda/libmpack/archive/%{version}.tar.gz BuildRequires: gcc BuildRequires: libtool BuildRequires: lua51-devel Requires: lua51 %description mpack is a small binary serialization/RPC library that implements both the msgpack and msgpack-rpc specifications. %prep %setup -q -n libmpack-%{version} %build gcc -O2 -I%{_includedir}/lua/%{lua_version} -shared -fPIC -o mpack.so binding/lua/lmpack.c %install mkdir -p %{buildroot}%{lua_archdir} install -Dm755 mpack.so %{buildroot}%{lua_archdir} %files %defattr(-,root,root) %doc LICENSE-MIT README.md %dir %{lua_archdir} %{lua_archdir}/* %changelog