init (based on Fedora spec)

This commit is contained in:
Mikhail Novosyolov 2021-01-02 02:00:24 +03:00
commit 926b4f7aaf
2 changed files with 108 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
sdbus-cpp-0.8.3.tar.gz: 003700d9710ab8563681186d5ec244e48bc8ed94

106
sdbus-cpp.spec Normal file
View file

@ -0,0 +1,106 @@
%global 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
Name: sdbus-cpp
Version: 0.8.3
Release: 1
Summary: High-level C++ D-Bus library
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