Hello community, here is the log from the commit of package ulfius for openSUSE:Factory checked in at 2018-08-24 17:02:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ulfius (Old) and /work/SRC/openSUSE:Factory/.ulfius.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ulfius" Fri Aug 24 17:02:23 2018 rev:1 rq:628428 version:2.3.8 Changes: -------- New Changes file: --- /dev/null 2018-08-15 23:51:58.373630633 +0200 +++ /work/SRC/openSUSE:Factory/.ulfius.new/ulfius.changes 2018-08-24 17:02:24.005950133 +0200 @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jul 29 19:02:49 UTC 2018 - [email protected] + +- Initial package, version 2.3.8 New: ---- 0001-Fix-pkg-config-information-add-requires-fields-as-me.patch ulfius-2.3.8.tar.gz ulfius-fix-cmake-path.patch ulfius.changes ulfius.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ulfius.spec ++++++ # # spec file for package ulfius # # Copyright (c) 2018, Martin Hauke <[email protected]> # # 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 sover 2_3 Name: ulfius Version: 2.3.8 Release: 0 Summary: Web Framework for REST Applications in C License: MIT Group: Development/Languages/C and C++ URL: https://github.com/babelouest/ulfius Source: https://github.com/babelouest/ulfius/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: ulfius-fix-cmake-path.patch Patch1: 0001-Fix-pkg-config-information-add-requires-fields-as-me.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(jansson) >= 2.4 BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libmicrohttpd) BuildRequires: pkgconfig(liborcania) BuildRequires: pkgconfig(libyder) %description The library is based on GNU libmicrohttpd for the backend web server, jansson for the json manipulation library, and libcurl for the http/smtp client API. It can be used to create web applications in C programs with a small memory footprint. %package -n libulfius%{sover} Summary: Shared library for ulfius Group: System/Libraries %description -n libulfius%{sover} The library is based on GNU libmicrohttpd for the backend web server, jansson for the json manipulation library, and libcurl for the http/smtp client API. It can be used to create web applications in C programs with a small memory footprint. %package devel Summary: Header files for ulfius Group: Development/Libraries/C and C++ Requires: libulfius%{sover} = %{version} %description devel Development and header files for libulfius. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %cmake \ -DCMAKE_SHARED_LINKER_FLAGS="" make %{?_smp_mflags} %install %cmake_install rm -rf %{buildroot}/%{_datadir}/doc/ %post -n libulfius%{sover} -p /sbin/ldconfig %postun -n libulfius%{sover} -p /sbin/ldconfig %files -n libulfius%{sover} %doc CHANGELOG.md README.md %license LICENSE %{_libdir}/libulfius.so.* %files devel %doc API.md %{_includedir}/ulfius.h %{_libdir}/libulfius.so %{_libdir}/pkgconfig/libulfius.pc %changelog ++++++ 0001-Fix-pkg-config-information-add-requires-fields-as-me.patch ++++++ >From 68503f9a6bff6837e903e8a6846fe91f923079fd Mon Sep 17 00:00:00 2001 From: Nicolas Mora <[email protected]> Date: Thu, 2 Aug 2018 12:53:31 -0400 Subject: [PATCH] Fix pkg-config information, add requires fields as mentionned in babelouest/ulfius#62 --- CMakeLists.txt | 14 ++++++++++++++ libulfius.pc.in | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ae4766..04c8c35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,6 +196,20 @@ else() endif () target_link_libraries(ulfius ${LIBS} ${YDER_LIBRARIES}) +set(PKGCONF_REQ "") +set(PKGCONF_REQ_PRIVATE "liborcania, libyder") +if (WITH_CURL) + set (PKGCONF_REQ_PRIVATE "${PKGCONF_REQ_PRIVATE}, libcurl") +endif () +if (WITH_JANSSON) + set (PKGCONF_REQ_PRIVATE "${PKGCONF_REQ_PRIVATE}, jansson") +endif () +if (WITH_WEBSOCKET) + set (PKGCONF_REQ_PRIVATE "${PKGCONF_REQ_PRIVATE}, gnutls > 3.5.0, libmicrohttpd > 0.9.53") +else () + set (PKGCONF_REQ_PRIVATE "${PKGCONF_REQ_PRIVATE}, libmicrohttpd > 0.9.51") +endif () + # tests option(BUILD_TESTING "Build the testing tree." OFF) # because we do not use include(CTest) diff --git a/libulfius.pc.in b/libulfius.pc.in index 646ccad..a65f6bf 100644 --- a/libulfius.pc.in +++ b/libulfius.pc.in @@ -7,5 +7,9 @@ Name: @PROJECT_NAME@ Description: @PROJECT_DESCRIPTION@ URL: @PROJECT_BUGREPORT_PATH@ Version: @LIBRARY_VERSION@ +Requires: @PKGCONF_REQ@ +Requires: @PKGCONF_REQ@ +Requires: @PKGCONF_REQ@ +Requires.private: @PKGCONF_REQ_PRIVATE@ Libs: -L${libdir} -lulfius Cflags: -I${includedir} -- 2.16.4 ++++++ ulfius-fix-cmake-path.patch ++++++ >From b036c09ed0c4cf5b85c5599be3f5c16984515209 Mon Sep 17 00:00:00 2001 From: Martin Hauke <[email protected]> Date: Wed, 1 Aug 2018 20:24:19 +0200 Subject: [PATCH] Fix cmake pkgconfig install path --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ae4766..57034c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,7 +245,7 @@ option(INSTALL_HEADER "Install the header files" ON) # Install ulfius.h or not configure_file(libulfius.pc.in libulfius.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libulfius.pc - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) SET (TARGETS ulfius) if (BUILD_STATIC) -- 2.16.4
