Blame SPECS/dbus-c++.spec

93576b
# Disabled by default for RHEL https://bugzilla.redhat.com/show_bug.cgi?id=1553111
93576b
%bcond_with ecore
93576b
93576b
Name:          dbus-c++
93576b
Version:       0.9.0
93576b
Release:       17%{?dist}
93576b
Summary:       Native C++ bindings for D-Bus
93576b
93576b
Group:         System Environment/Libraries
93576b
License:       LGPLv2+
93576b
URL:           http://sourceforge.net/projects/dbus-cplusplus/
93576b
Source0:       http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz
93576b
93576b
Patch1: dbus-c++-gcc4.7.patch
93576b
Patch2: dbus-c++-linkfix.patch
93576b
# Fix collision between macro bind_property in dbus-c++/interface.h and method
93576b
# bind_property in glibmm/binding.h
93576b
Patch3: dbus-c++-macro_collision.patch
93576b
# Remove broken classes for multithreading support
93576b
# https://sourceforge.net/p/dbus-cplusplus/patches/18/
93576b
Patch4: dbus-c++-threading.patch
93576b
# https://sourceforge.net/p/dbus-cplusplus/patches/19/
93576b
Patch5: dbus-c++-writechar.patch
93576b
93576b
BuildRequires: dbus-devel
93576b
BuildRequires: glib2-devel
93576b
BuildRequires: gtkmm24-devel
93576b
BuildRequires: autoconf automake libtool
93576b
BuildRequires: expat-devel
93576b
%if %{with ecore}
93576b
BuildRequires: ecore-devel
93576b
%endif
93576b
93576b
%description
93576b
dbus-c++ attempts to provide a C++ API for D-Bus.
93576b
Subpackages are provided with mainloop integration.
93576b
93576b
%if %{with ecore}
93576b
%package       ecore
93576b
Summary:       Ecore library for %{name}
93576b
Group:         System Environment/Libraries
93576b
Requires:      %{name}%{?_isa} = %{version}-%{release}
93576b
%description   ecore
93576b
This package contains the ecore mainloop library for %{name}
93576b
%endif
93576b
93576b
%package       glib
93576b
Summary:       GLib library for %{name}
93576b
Group:         System Environment/Libraries
93576b
Requires:      %{name}%{?_isa} = %{version}-%{release}
93576b
%description   glib
93576b
This package contains the GLib mainloop library for %{name}
93576b
93576b
%package       devel
93576b
Summary:       Development files for %{name}
93576b
Group:         Development/Libraries
93576b
Requires:      %{name}%{?_isa} = %{version}-%{release}
93576b
Requires:      pkgconfig
93576b
%description   devel
93576b
This package contains libraries and header files for
93576b
developing applications that use %{name}.
93576b
93576b
93576b
%prep
93576b
%setup -q -n lib%{name}-%{version}
93576b
sed -i 's/\r//' AUTHORS
93576b
sed -i 's/libtoolize --force --copy/libtoolize -if --copy/' bootstrap
93576b
%patch1 -p1 -b .gcc47
93576b
%patch2 -p1 -b .linkfix
93576b
%patch3 -p1 -b .collision
93576b
%patch4 -p1 -b .threading
93576b
%patch5 -p1 -b .writechar
93576b
93576b
%build
93576b
autoreconf -vfi
93576b
export CPPFLAGS='%{optflags}' CXXFLAGS='--std=gnu++11 %{optflags}'
93576b
%configure --disable-static --disable-tests \
93576b
%if %{without ecore}
93576b
           --disable-ecore
93576b
%endif
93576b
make %{?_smp_mflags}
93576b
93576b
%install
93576b
make install DESTDIR=$RPM_BUILD_ROOT
93576b
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
93576b
93576b
%post -p /sbin/ldconfig
93576b
93576b
%postun -p /sbin/ldconfig
93576b
93576b
93576b
%files
93576b
%{!?_licensedir:%global license %%doc}
93576b
%license COPYING
93576b
%doc AUTHORS
93576b
%{_bindir}/dbusxx-introspect
93576b
%{_bindir}/dbusxx-xml2cpp
93576b
%{_libdir}/libdbus-c++-1.so.0*
93576b
93576b
%if %{with ecore}
93576b
%files ecore
93576b
%{_libdir}/libdbus-c++-ecore-1.so.0*
93576b
%endif
93576b
93576b
%files glib
93576b
%{_libdir}/libdbus-c++-glib-1.so.0*
93576b
93576b
%files devel
93576b
%doc TODO
93576b
%{_includedir}/*
93576b
%{_libdir}/*.so
93576b
%{_libdir}/pkgconfig/*
93576b
93576b
%changelog
93576b
* Thu Mar 15 2018 Colin Walters <walters@redhat.com> - 0.9.0-17
93576b
- Add a bcond for ecore, some downstream distributions may not want it
93576b
93576b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-15
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
93576b
93576b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-14
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
93576b
93576b
* Thu Feb 16 2017 Jonathan Wakely <jwakely@redhat.com> - 0.9.0-13
93576b
- Remove broken multi-threading support that doesn't build with GCC 7
93576b
93576b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-12
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93576b
93576b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-11
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
93576b
93576b
* Thu Jan 14 2016 Lubomir Rintel <lkundrak@v3.sk> - 0.9.0-10
93576b
- Fix FTBFS
93576b
93576b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-9
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93576b
93576b
* Thu May  7 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.0-8
93576b
- Split ecore/glib mainloop out to subpackage to reduce deps
93576b
- Use %%license
93576b
93576b
* Sun Apr 19 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.0-7
93576b
- Rebuilt with gcc5 once again
93576b
93576b
* Thu Mar 05 2015 Sandro Mani <manisandro@gmail.com> - 0.9.0-6
93576b
- Add patch to fix macro macro collision (#1187045)
93576b
93576b
* Fri Feb 27 2015 Adel Gadllah <adel.gadllah@gmail.com> - 0.9.0-5
93576b
- Rebuilt with gcc5
93576b
93576b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
93576b
93576b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93576b
93576b
* Wed Feb 26 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9.0-2
93576b
- fix bootstrap script for ppc64le (#1070306)
93576b
93576b
* Tue Dec 17 2013 Jiri Popelka <jpopelka@redhat.com> - 0.9.0-1
93576b
- 0.9.0
93576b
93576b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.17.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
93576b
93576b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.16.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
93576b
93576b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.15.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
93576b
93576b
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.14.20090203git13281b3
93576b
- Rebuilt for c++ ABI breakage
93576b
93576b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.13.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
93576b
93576b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.12.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
93576b
93576b
* Sat Feb 13 2010 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.11.20090203git13281b3
93576b
- Fix FTBS (RH #565052)
93576b
93576b
* Fri Jul 31 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.10.20090203git13281b3
93576b
- Fix build
93576b
93576b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.9.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
93576b
93576b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.8.20090203git13281b3
93576b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
93576b
93576b
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.7.20090203git13281b3
93576b
- bump..
93576b
93576b
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.6.20090203git13281b3
93576b
- Fix build with new gcc
93576b
93576b
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.5.20090203git13281b3
93576b
- Add the ability to get the senders unix userid (Patch by Jiri Moskovcak)
93576b
93576b
* Tue Feb 03 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.4.20090203git13281b3
93576b
- Update to new git snapshot
93576b
- Should fix RH #483418
93576b
93576b
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.3.20080716git1337c65
93576b
- Generate tarball with git-archive
93576b
- Fix cflags
93576b
93576b
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.2.20080716git1337c65
93576b
- Add commit id to version
93576b
93576b
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.1.20080716git
93576b
- Initial package