Search
SailfishOS Open Build Service
>
Projects
>
home:deadsquirrel
:
anbox
>
dbus-cpp
> dbus-cpp.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dbus-cpp.spec of Package dbus-cpp
# # spec file for package dbus-cpp # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %global debug_package %{nil} %define major_version 5 %define sover %{major_version} Name: dbus-cpp Version: 5.0.0 Release: 1 Summary: A header-only dbus-binding leveraging C++-11 License: LGPL Group: Development/Libraries Url: https://launchpad.net/dbus-cpp #Source0: https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{version}.orig.tar.gz Source0: %{name}_%{version}.orig.tar.gz Patch0: dbus-cpp-no-gtest.patch BuildRequires: gcc-c++ BuildRequires: cmake %if 0%{?suse_version} >= 1330 BuildRequires: libboost_filesystem-devel BuildRequires: libboost_system-devel BuildRequires: libboost_program_options-devel %else BuildRequires: boost-devel %endif BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(process-cpp) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A header-only dbus-binding leveraging C++-11. %package -n libdbus-cpp%{sover} Summary: C++11 library for handling processes - runtime library Group: System/Libraries %description -n libdbus-cpp%{sover} A header-only dbus-binding leveraging C++-11. This package provides shared libraries for %{name}. %package devel Summary: %{summary} Group: Development/Libraries Requires: libdbus-cpp%{sover} = %{version} %description devel A header-only dbus-binding leveraging C++-11. This package provides development headers for %{name}. %prep %setup -q -c %patch0 -p1 %build mkdir build pushd build cmake .. \ -DDBUS_CPP_VERSION_MAJOR=%{major_version} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_C_FLAGS="%{optflags}" \ -DCMAKE_CXX_FLAGS="%{optflags}" \ -DCMAKE_NO_BUILTIN_CHRPATH=ON \ -DLIBS_ENTRY_PATH=%{_libdir} make %{?_smp_mflags} popd %install pushd build %make_install popd %files %defattr(-,root,root) %doc COPYING.GPL COPYING.LGPL %{_bindir}/dbus-cppc %exclude %{_prefix}/libexec/examples %files -n libdbus-cpp%{sover} %defattr(-,root,root) %{_libdir}/libdbus-cpp.so.%{sover}* %files devel %defattr(-,root,root) %{_libdir}/libdbus-cpp.so %dir %{_includedir}/core %dir %{_includedir}/core/dbus %{_includedir}/core/dbus/* %{_libdir}/pkgconfig/dbus-cpp.pc %{_datadir}/dbus-cpp %post -n libdbus-cpp%{sover} /sbin/ldconfig %postun -n libdbus-cpp%{sover} /sbin/ldconfig %changelog