File libindicator.spec of Package libindicator
#
# spec file for package libindicator
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define lname libindicator3-7
%define lname_gtk2 libindicator7
%define _version 12.10.2+14.10.20140922
Name: libindicator
Version: 12.10.2+bzr20140922
Release: 0
Summary: Panel indicator applet libraries
License: GPL-3.0
Group: System/GUI/Other
Url: https://launchpad.net/libindicator
Source: http://archive.ubuntu.com/ubuntu/pool/main/libi/%{name}/%{name}_%{_version}.orig.tar.gz
# PATCH-FIX-OPENSUSE dont-build-debug-tools.patch hrvoje.senjan@gmail.com -- Do not build debug tools that are used only for tests & developing indicators, which pulls libido.
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 %{lname}
Summary: Panel indicator applet - Shared Libraries
Group: System/Libraries
%description -n %{lname}
This package provides the libraries required to build indicators
and to go into the indicator applet.
%package -n %{lname_gtk2}
Summary: Panel indicator applet -- Shared Libraries
Group: System/Libraries
%description -n %{lname_gtk2}
This package provides the libraries 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: %{lname} = %{version}
%description -n libindicator3-devel
This package provides the development files required to build
indicators and to go into the indicator applet.
%package devel
Summary: Panel indicator applet -- Development Files
Group: Development/Libraries/Other
Requires: %{lname_gtk2} = %{version}
%description 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 ./autogen.sh
for ver in 2 3; do
mkdir build-gtk$ver
pushd build-gtk$ver
%configure --disable-static --with-gtk=$ver
make %{?_smp_mflags}
popd
done
%install
for ver in 2 3; do
pushd build-gtk$ver
%make_install
popd
done
find %{buildroot} -type f -name "*.la" -delete -print
# This dummy indicator is fairly useless, it is not shipped in Ubuntu.
rm -f %{buildroot}%{_libdir}/libdummy-indicator*.so
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%post -n %{lname_gtk2} -p /sbin/ldconfig
%postun -n %{lname_gtk2} -p /sbin/ldconfig
%files -n %{lname}
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS
%{_libdir}/%{name}3.so.*
%files -n %{lname_gtk2}
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS
%{_libdir}/%{name}.so.*
%files -n libindicator3-devel
%defattr(-,root,root)
%{_includedir}/%{name}3-0.4/
%{_libdir}/%{name}3.so
%{_libdir}/pkgconfig/indicator3-0.4.pc
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-0.4/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/indicator-0.4.pc
%changelog