Hello community,

here is the log from the commit of package libusb3380 for openSUSE:Factory 
checked in at 2018-01-05 00:58:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libusb3380 (Old)
 and      /work/SRC/openSUSE:Factory/.libusb3380.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libusb3380"

Fri Jan  5 00:58:51 2018 rev:1 rq:560867 version:0.0.0+git.20171214

Changes:
--------
New Changes file:

--- /dev/null   2017-12-26 18:16:24.364283585 +0100
+++ /work/SRC/openSUSE:Factory/.libusb3380.new/libusb3380.changes       
2018-01-05 00:58:51.727061003 +0100
@@ -0,0 +1,16 @@
+-------------------------------------------------------------------
+Sun Dec 31 01:23:23 UTC 2017 - [email protected]
+
+- Fix RPM groups.
+
+-------------------------------------------------------------------
+Thu Dec 14 20:46:25 UTC 2017 - [email protected]
+
+- Add patch:
+  - libusb3380-cmake-fix-compiler-setup.patch
+    (fix build on non factory systems)
+
+-------------------------------------------------------------------
+Thu Dec 14 19:00:01 UTC 2017 - [email protected]
+
+- Initial package, version 0.0.0+git.20171214

New:
----
  _service
  _servicedata
  libusb3380-0.0.0+git.20171214.tar.xz
  libusb3380-cmake-fix-compiler-setup.patch
  libusb3380.changes
  libusb3380.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libusb3380.spec ++++++
#
# spec file for package libusb3380
#
# Copyright (c) 2017, 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   0
%define libname libusb3380-%{sover}
Name:           libusb3380
Version:        0.0.0+git.20171214
Release:        0
Summary:        USB3380 abstraction layer for libusb
License:        LGPL-2.1
Group:          Development/Libraries/C and C++
URL:            http://xtrx.io
Source:         %{name}-%{version}.tar.xz
Patch0:         libusb3380-cmake-fix-compiler-setup.patch
BuildRequires:  cmake
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libusb-1.0)

%description
USB3380 abstraction layer for libusb.

%package -n %{libname}
Summary:        USB3380 abstraction layer for libusb
Group:          System/Libraries

%description -n %{libname}
USB3380 abstraction layer for libusb.

%package devel
Summary:        Development files for libusb3380
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}
Requires:       pkgconfig(libusb-1.0)

%description devel
USB3380 abstraction layer for libusb.

This subpackage contains libraries and header files for developing
applications that want to make use of libusb3380.

%prep
%setup -q
%patch0 -p1

%build
%cmake \
    -DCMAKE_SHARED_LINKER_FLAGS=""
%make_jobs

%install
%cmake_install

%post   -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname}
%doc LICENSE README.md
%{_libdir}/libusb3380.so.%{sover}*

%files devel
%{_includedir}/libusb3380.h
%{_libdir}/libusb3380.so
%{_libdir}/pkgconfig/libusb3380.pc

%changelog
++++++ _service ++++++
<services>
  <service mode="disabled" name="tar_scm">
    <param name="url">https://github.com/xtrx-sdr/libusb3380.git</param>
    <param name="package-meta">yes</param>
    <param name="revision">master</param>
    <param name="scm">git</param>
    <param name="changesgenerate">enable</param>
    <param name="filename">libusb3380</param>
    <param name="versionformat">0.0.0+git.%cd</param>
  </service>
  <service mode="disabled" name="recompress">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
  </service>
  <service mode="disabled" name="set_version"/>
</services>

++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
                <param 
name="url">https://github.com/xtrx-sdr/libusb3380.git</param>
              <param 
name="changesrevision">ed7c1433fe57f57da98fd2e074c716184287a8a7</param></service></servicedata>++++++
 libusb3380-cmake-fix-compiler-setup.patch ++++++
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e1deef..c76b2e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,15 @@ set(CROSS_COMPILE_LIB_PATH     "/usr/${CC_ARCH}/lib")
 
 find_package(libusb-1.0 REQUIRED)
 
+########################################################################
+# Compiler setup
+########################################################################
+if(CMAKE_COMPILER_IS_GNUCC)
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
+    add_definitions(-Wall)
+    add_definitions(-Wextra)
+    add_definitions(-pedantic)
+endif()
 
 set(LIBUSB3380_LIBRARY_DIR      lib${LIB_SUFFIX})
 set(LIBUSB3380_INCLUDE_DIR      include)

Reply via email to