# # spec file for package libblepp # # Copyright (c) 2021 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define vmajor 1 %define vminor 1 Name: libblepp Version: %{vmajor}.%{vminor} Release: 0 Summary: Bluetooth Low Energy Library License: GPL-2.0-or-later URL: https://github.com/edrosten/libblepp Source0: https://github.com/edrosten/libblepp/archive/VERSION_%{vmajor}_%{vminor}/libblepp-VERSION_%{vmajor}_%{vminor}.tar.gz BuildRequires: bluez-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libboost_headers-devel Requires: bluez %description Implementation of Bluetooth Low Energy functions in C++, without the BlueZ DBUS API. %package devel Summary: Development files for %{name} Requires: %{name} = %{version} Requires: bluez-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 -n %{name}-VERSION_%{vmajor}_%{vminor} %build %configure %make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print # disable-static has no effect find %{buildroot} -type f -name "*.a" -delete -print %fdupes %buildroot/%_prefix %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc README %{_libdir}/*.so.* %files devel %license COPYING %doc README %doc examples/*.cc %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog