orion / rpms / libarcus

Forked from rpms/libarcus 4 years ago
Clone

Blame libarcus.spec

0f8fcce
Name:           libarcus
312ee67
Version:        2.6.1
9f185a6
Release:        1%{?dist}
0f8fcce
Summary:        Communication library between internal components for Ultimaker software
0f8fcce
License:        AGPLv3+
0f8fcce
URL:            https://github.com/Ultimaker/libArcus
0f8fcce
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
0f8fcce
0f8fcce
BuildRequires:  protobuf-devel
0f8fcce
BuildRequires:  python3-devel
0f8fcce
BuildRequires:  python3-protobuf
0f8fcce
BuildRequires:  python3-sip-devel
0f8fcce
BuildRequires:  /usr/bin/sip
0f8fcce
BuildRequires:  cmake
0f8fcce
BuildRequires:  gcc-c++
0f8fcce
BuildRequires:  git
0f8fcce
0f8fcce
%description
0f8fcce
Arcus library contains C++ code and Python 3 bindings for creating a socket in
0f8fcce
a thread and using this socket to send and receive messages based on the
0f8fcce
Protocol Buffers library. It is designed to facilitate the communication
0f8fcce
between Cura and its backend and similar code.
0f8fcce
0f8fcce
%package        devel
c4acf9f
c4acf9f
# The cmake scripts are BSD
c4acf9f
License:        AGPLv3+ and BSD
c4acf9f
0f8fcce
Summary:        Development files for libarcus
0f8fcce
Requires:       %{name}%{?_isa} = %{version}-%{release}
0f8fcce
0f8fcce
%description    devel
0f8fcce
Arcus library contains C++ code and Python 3 bindings for creating a socket in
0f8fcce
a thread and using this socket to send and receive messages based on the
0f8fcce
Protocol Buffers library. It is designed to facilitate the communication
0f8fcce
between Cura and its backend and similar code.
0f8fcce
0f8fcce
Development files.
0f8fcce
0f8fcce
%package -n     python3-arcus
0f8fcce
Summary:        Python 3 libArcus bindings
0f8fcce
%{?python_provide:%python_provide python3-arcus}
0f8fcce
0f8fcce
%description -n python3-arcus
0f8fcce
Arcus Python 3 bindings for creating a socket in a thread and using this
0f8fcce
socket to send and receive messages based on the
0f8fcce
Protocol Buffers library. It is designed to facilitate the communication
0f8fcce
between Cura and its backend and similar code.
0f8fcce
0f8fcce
%prep
0f8fcce
%autosetup -n libArcus-%{version} -p1 -S git
0f8fcce
0f8fcce
# Move stuff to lib64 on 64 arches
0f8fcce
# TODO propose a change to honor -DLIB_SUFFIX=64
0f8fcce
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|g' CMakeLists.txt
0f8fcce
sed -i 's|PYTHON_SITE_PACKAGES_DIR lib|PYTHON_SITE_PACKAGES_DIR %{_lib}|g' CMakeLists.txt
0f8fcce
0f8fcce
0f8fcce
%build
0f8fcce
%{cmake} -DBUILD_EXAMPLES:BOOL=OFF -DCMAKE_SKIP_RPATH:BOOL=ON .
0f8fcce
make %{?_smp_mflags}
0f8fcce
0f8fcce
%install
0f8fcce
make install DESTDIR=%{buildroot}
0f8fcce
0f8fcce
%post -p /sbin/ldconfig
0f8fcce
0f8fcce
%postun -p /sbin/ldconfig
0f8fcce
0f8fcce
%files
0f8fcce
%license LICENSE
0f8fcce
%doc README.md TODO.md
0f8fcce
%{_libdir}/libArcus.so.*
0f8fcce
0f8fcce
%files devel
c4acf9f
%license LICENSE cmake/COPYING-CMAKE-SCRIPTS
0f8fcce
%doc examples/example.cpp examples/example.proto
0f8fcce
%{_libdir}/libArcus.so
0f8fcce
%{_includedir}/Arcus
0f8fcce
# Own the dir not to depend on cmake:
0f8fcce
%{_libdir}/cmake
0f8fcce
0f8fcce
%files -n python3-arcus
0f8fcce
%license LICENSE
0f8fcce
%doc README.md TODO.md
0f8fcce
%doc examples/example.py
0f8fcce
%{python3_sitearch}/Arcus.so
0f8fcce
0f8fcce
%changelog
312ee67
* Wed Jun 28 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-1
312ee67
- Update to 2.6.1
312ee67
9f185a6
* Tue Jun 27 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-1
9f185a6
- Update to 2.6.0
9f185a6
8645ba3
* Tue Jun 13 2017 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-3
8645ba3
- Rebuilt for new protobuf 3.3.1
8645ba3
c4acf9f
* Wed May 03 2017 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
c4acf9f
- Clarify licensing information on cmake files
c4acf9f
cf7ea09
* Wed Apr 26 2017 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-1
cf7ea09
- Update to 2.5.0
cf7ea09
0f8fcce
* Sat Mar 25 2017 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-1
0f8fcce
- Initial package