libdbus-cPlusPlus/libdbus-c++.spec

135 lines
3.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: libdbus-c++
Version: 0.9.1
Release: 1mamba
Summary: C++ Interface for DBus
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/apps/mediawiki/dbus-cplusplus/index.php?title=Main_Page
Source: https://github.com/andreas-volz/dbus-cplusplus.git/v%{version}pw/dbus-cplusplus-%{version}.tar.bz2
#Source: http://downloads.sourceforge.net/project/dbus-cplusplus/dbus-c%2B%2B/%{version}/libdbus-c%2B%2B-%{version}.tar.gz
Patch0: libdbus-c++-0.9.0-gcc-4.7.patch
Patch1: libdbus-c++-0.9.0-writechar.patch
Patch2: libdbus-c++-0.9.0-threading.patch
Patch3: libdbus-c++-0.9.0-macro-collision.patch
Patch4: libdbus-c++-0.9.0-linkfix.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libdbus-devel
BuildRequires: libecore-devel
BuildRequires: libeina-devel
BuildRequires: libexpat-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libgtkmm-devel
BuildRequires: libtool
%description
%{name} attempts to provide a C++ API for D-BUS. The library has a glib/gtk and an Ecore mainloop integration. It also offers an optional own main loop.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
%description devel
C++ Interface for DBus.
This package contains libraries and header files needed for development.
%package tools
Group: Development/Tools
Summary: Tools provided with %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
C++ Interface for DBus.
This package contains the tools provided with %{name}.
%package static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
C++ Interface for DBus.
This package contains static libraries needed for development.
%debug_package
%prep
%setup -q -n dbus-cplusplus-%{version}
#-D -T
#:<< _EOF
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
./autogen.sh
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
export CPPFLAGS='%{optflags}'
CXXFLAGS='--std=gnu++11 %{optflags}'
export LDFLAGS='-lexpat -lpthread'
%configure \
--enable-glib
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install DESTDIR=%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libdbus-c++-*.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/dbus-c++-*
%dir %{_includedir}/dbus-c++-*/dbus-c++
%{_includedir}/dbus-c++-*/dbus-c++/*.h
%{_libdir}/libdbus-c++-*.so
%{_libdir}/pkgconfig/dbus-c++-*.pc
%doc README TODO
%files tools
%defattr(-,root,root)
%{_bindir}/dbusxx-introspect
%{_bindir}/dbusxx-xml2cpp
%files static
%defattr(-,root,root)
%{_libdir}/libdbus-c++-*.*a
%changelog
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-1mamba
- update to 0.9.1
* Wed Dec 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
- rebuilt with debug package and tools subpackage, added patches
* Mon Sep 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-1mamba
- update to 0.9.0
* Sat Dec 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-2mamba
- imported from milestone1-contib to devel
* Sat Oct 02 2010 gil <puntogil@libero.it> 0.5.0-1mamba
- package created by autospec