Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > efa09163b967dd9711a6ae642fa129f1 > files > 3

arcus-15.10-6.mga7.src.rpm

# Major
%define major 1
%define libver 15.09.81

# Library names
%define libname   %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Library for creating a socket to send and receive messages
Name:		arcus
Version:	15.10
Release:	%mkrel 6
License:	AGPLv3
Group:		Development/Other
URL:		https://github.com/Ultimaker/libArcus
Source0:	https://github.com/Ultimaker/libArcus/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Fix build : add lpthread and disable example (require proto3)
Patch0:		arcus-15.10-fix_build.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(python3)

%description
This library contains a C++ and Python3 class for creating a socket
in a thread and using this socket to send and receive messages based
on the Protocol Buffers library.
It is designed to facilitate the communication between Cura and its backend
and similar code.

%package -n	%{libname}
Summary:	Runtime library for Arcus
Group:		System/Libraries

%description -n	%{libname}
This library contains a C++ and Python3 class for creating a socket
in a thread and using this socket to send and receive messages based
on the Protocol Buffers library.
It is designed to facilitate the communication between Cura and its backend
and similar code.

This package contains the shared Arcus library.

%package -n	%{develname}
Summary:	Arcus C++ headers and libraries
Group:		Development/Other
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This package contains Arcus C++ headers and libraries.

%prep
%setup -q -n libArcus-%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
pushd build
    %make_install
    mkdir -p %{buildroot}%{python3_sitelib}
    mv %{buildroot}/usr/lib/python3/dist-packages/Arcus %{buildroot}%{python3_sitelib}
popd

%files -n %{libname}
%doc README.md
%license LICENSE
%{_libdir}/libArcus.so.%{major}
%{_libdir}/libArcus.so.%{libver}
%{python3_sitelib}/Arcus

%files -n %{develname}
%doc examples/example.cpp examples/example.proto
%doc examples/example.py examples/example_py.sh
%{_includedir}/Arcus
%{_libdir}/libArcus.so
%{_libdir}/cmake/Arcus


%changelog
* Tue Jan 08 2019 daviddavid <daviddavid> 15.10-6.mga7
+ Revision: 1352698
- rebuild for new Python 3.7

* Fri Sep 21 2018 umeabot <umeabot> 15.10-5.mga7
+ Revision: 1294481
- Mageia 7 Mass Rebuild

* Sun Apr 15 2018 daviddavid <daviddavid> 15.10-4.mga7
+ Revision: 1219029
- rebuild for new protobuf 3.5
- remove no more needed protobuf-2.6.1 patch

* Sat Aug 05 2017 pterjan <pterjan> 15.10-3.mga7
+ Revision: 1135184
- Rebuild for python 3.6

* Thu Jan 05 2017 daviddavid <daviddavid> 15.10-2.mga6
+ Revision: 1080286
- add patch to fix build with protobuf 2.6.1

* Thu Dec 31 2015 ycantin <ycantin> 15.10-1.mga6
+ Revision: 917040
- imported package arcus