File libindicator.spec of Package libindicator
#
# spec file for package libindicator
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: libindicator
%define _gtk2_name libindicator7
%define _gtk3_name libindicator3-7
Version: 12.10.2+14.04.20140304
Release: 0
Summary: Panel indicator applet libraries
License: GPL-3.0
Group: System/GUI/Other
Url: https://launchpad.net/libindicator
Source: %{name}_%{version}.orig.tar.gz
# PATCH-FIX-OPENSUSE dont-build-debug-tools.patch -- they are used only for tests & developing indicators.
# also, it pulls libido requirement, which does not exists on openSUSE
Patch0: dont-build-debug-tools.patch
BuildRequires: gnome-common
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
%description
This library contains information to build indicators to go into the indicator
applet.
%package -n %{_gtk2_name}
Summary: Panel indicator applet - shared libraries
Group: System/Libraries
%description -n %{_gtk2_name}
This package provides the libraries required to build indicators and to go into
the indicator applet.
%package -n %{_gtk3_name}
Summary: Panel indicator applet - shared libraries
Group: System/Libraries
%description -n %{_gtk3_name}
This package provides the libraries required to build indicators and to go into
the indicator applet.
%package devel
Summary: Panel indicator applet - development files
Group: Development/Libraries/Other
Requires: %{_gtk2_name} = %{version}
%description devel
This package provides the development files required to build indicators and to
go into the indicator applet.
%package -n libindicator3-devel
Summary: Panel indicator applet - development files
Group: Development/Libraries/Other
Requires: %{_gtk3_name} = %{version}
%description -n libindicator3-devel
This package provides the development files required to build indicators and to
go into the indicator applet.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
%global _configure ../configure
NOCONFIGURE=1 sh autogen.sh
export V=1
mkdir -p build-gtk2 build-gtk3
pushd build-gtk2
%configure --with-gtk=2 --disable-static
make %{?_smp_mflags}
popd
pushd build-gtk3
%configure --with-gtk=3 --disable-static
make %{?_smp_mflags}
popd
%install
pushd build-gtk2
%make_install
popd
pushd build-gtk3
%make_install
popd
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
# this dummy indicator is fairly useless, it's not shipped in Ubuntu
rm -f %{buildroot}%{_libdir}/libdummy-indicator*.so
%post -n %{_gtk2_name} -p /sbin/ldconfig
%postun -n %{_gtk2_name} -p /sbin/ldconfig
%post -n %{_gtk3_name} -p /sbin/ldconfig
%postun -n %{_gtk3_name} -p /sbin/ldconfig
%files -n %{_gtk2_name}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.*
%files -n %{_gtk3_name}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/%{name}3.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-0.4/
%{_libdir}/pkgconfig/indicator-0.4.pc
%{_libdir}/%{name}.so
%files -n libindicator3-devel
%defattr(-,root,root)
%{_includedir}/%{name}3-0.4/
%{_libdir}/pkgconfig/indicator3-0.4.pc
%{_libdir}/%{name}3.so
%changelog