mirror of
https://abf.rosa.ru/djam/sdbus-cpp.git
synced 2025-02-23 18:22:55 +00:00
107 lines
2.9 KiB
RPMSpec
107 lines
2.9 KiB
RPMSpec
%define major 0
|
|
%define libname %mklibname sdbus-c++ %{major}
|
|
%define devname %mklibname sdbus-c++ -d
|
|
|
|
# https://github.com/Kistler-Group/sdbus-cpp/issues/137
|
|
%global optflags %{optflags} -lpthread
|
|
|
|
Summary: High-level C++ D-Bus library
|
|
Name: sdbus-cpp
|
|
Group: System/Libraries
|
|
Version: 0.8.3
|
|
Release: 1
|
|
License: LGPLv2
|
|
URL: https://github.com/Kistler-Group/sdbus-cpp
|
|
Source0: https://github.com/Kistler-Group/sdbus-cpp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: doxygen
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
%description
|
|
High-level C++ D-Bus library for Linux designed to provide easy-to-use
|
|
yet powerful API in modern C++
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: High-level C++ D-Bus library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
High-level C++ D-Bus library for Linux designed to provide easy-to-use
|
|
yet powerful API in modern C++
|
|
|
|
%files -n %{libname}
|
|
%license COPYING
|
|
%doc README README.md NEWS ChangeLog AUTHORS
|
|
%{_libdir}/libsdbus-c++.so.%{major}*
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Development files for %{name}
|
|
Group: Development/C++
|
|
Requires: %{libname}%{?_isa} = %{EVRD}
|
|
Provides: sdbus-cpp-devel = %{EVRD}
|
|
Provides: sdbus-c++-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
Development files for %{name} - high-level C++ D-Bus for Linux designed
|
|
to provide easy-to-use yet powerful API in modern C++
|
|
|
|
%files -n %{devname}
|
|
%license COPYING
|
|
%doc README README.md NEWS ChangeLog AUTHORS
|
|
%{_libdir}/pkgconfig/sdbus-c++.pc
|
|
%{_libdir}/libsdbus-c++.so
|
|
%{_includedir}/sdbus-c++
|
|
%{_libdir}/cmake/sdbus-c++
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
%package devel-doc
|
|
Summary: Developer documentation for %{name}
|
|
BuildArch: noarch
|
|
Group: Development/C++
|
|
|
|
%description devel-doc
|
|
Developer documentation for %{name} - high-level C++ D-Bus for Linux
|
|
designed to provide easy-to-use yet powerful API in modern C++
|
|
|
|
%files devel-doc
|
|
%license COPYING
|
|
%doc README README.md NEWS ChangeLog AUTHORS
|
|
%{_docdir}/sdbus-c++
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
%package xml2cpp
|
|
Summary: Stub code generator for sdbus-c++
|
|
Requires: %{devname}%{?_isa} = %{EVRD}
|
|
|
|
%description xml2cpp
|
|
The stub code generator for generating the adapter and proxy interfaces
|
|
out of the D-Bus IDL XML description.
|
|
|
|
%files xml2cpp
|
|
%license COPYING
|
|
%doc README README.md NEWS ChangeLog AUTHORS
|
|
%{_bindir}/sdbus-c++-xml2cpp
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake . \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_CODE_GEN=ON \
|
|
-DBUILD_DOXYGEN_DOC=ON
|
|
%make
|
|
%make -C docs
|
|
|
|
%install
|
|
%makeinstall_std -C build
|