Search
SailfishOS Open Build Service
>
Projects
>
home:maikoool
:
tradfri
>
coap
> coap.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File coap.spec of Package coap
# # spec file for package coap # Cloned from build.opensuse.org # Modified to suit python-pytradfri # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 Maikel Wever <maikel@maikelwever.nl> # # 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/ # Name: coap-dtls %define lname libcoap-dtls Version: 4.1.2 Release: 2 License: GPL-2.0+ Summary: An open implementation for this protocol Url: https://libcoap.net/ Group: System/Daemons Source: %{name}-%{version}.tar.gz BuildRequires: autoconf >= 2.60 BuildRequires: automake BuildRequires: pkgconfig BuildRequires: libtool BuildRequires: doxygen BuildRequires: gcc BuildRequires: ctags BuildRoot: %{_tmppath}/lib%{name}-%{version}-build %{?systemd_requires} %description An open implementation for the Constrained Application Protocol (CoAP). This package contains server and client files for libcoap. %package -n %lname Summary: An open coap implementation Group: System/Libraries %description -n %lname This project aims to implement a free CoAP protocol implementation. %package -n libcoap-dtls-devel Group: Development/Libraries/C and C++ Provides: libcoap-dtls-devel = %{version}-%{release} Summary: Development files and static library for libcoap Requires: %lname = %version %description -n libcoap-dtls-devel Development files and static library for libcoap. This project aims to implement a free CoAP protocol implementation. %prep %setup -q -n libcoap %build #autoreconf -fi export CFLAGS="$CFLAGS -fPIC -D COAP_DEBUG_FD=stderr" export CXXFLAGS="$CXXFLAGS -fPIC -D COAP_DEBUG_FD=stderr" ./autogen.sh %configure --enable-shared \ --disable-documentation \ --without-debug \ --with-examples \ --libdir=%{_libdir} make %{?_smp_mflags} %install make DESTDIR="%buildroot" install; rm -f %{buildroot}/%{_libdir}/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/coap-client %{_bindir}/coap-rd %{_bindir}/coap-server %files -n %lname %defattr(-,root,root) %{_libdir}/libcoap-1.so.0* %files -n libcoap-dtls-devel %defattr(-,root,root) %{_libdir}/libcoap-1.a %{_libdir}/libcoap-1.so %{_includedir}/coap/ %_libdir/pkgconfig/libcoap-1.pc /usr/include/tinydtls/aes/*.h /usr/include/tinydtls/ecc/*.h /usr/include/tinydtls/sha2/*.h /usr/include/tinydtls/*.h /usr/lib/libtinydtls.a %changelog * Mon Jun 09 2017 Maikel Wever <maikel@maikelwever.nl> - 4.1.2-1 - Initial Packaging for Python 3 on SailfishOS