forked from pool/libindicator
- A shared systemd target for user session is shipped with the source, pack it up properly. https://bazaar.launchpad.net/~indicator-applet-developers/libindicator/trunk.16.10/revision/534 OBS-URL: https://build.opensuse.org/request/show/786796 OBS-URL: https://build.opensuse.org/package/show/X11:Unity/libindicator?expand=0&rev=19
158 lines
4.5 KiB
RPMSpec
158 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package libindicator
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define soname libindicator3
|
|
%define soname_gtk2 libindicator
|
|
%define sover 7
|
|
%define _version 16.10.0+18.04.20171205.1
|
|
Name: libindicator
|
|
Version: 16.10.0+bzr20171205
|
|
Release: 0
|
|
Summary: Panel indicator applet libraries
|
|
License: GPL-3.0-only
|
|
Group: System/GUI/Other
|
|
URL: https://launchpad.net/libindicator
|
|
Source: https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{_version}.orig.tar.gz
|
|
# PATCH-FIX-OPENSUSE libindicator-disable-werror.patch hrvoje.senjan@gmail.com -- Disable -Werror.
|
|
Patch0: libindicator-disable-werror.patch
|
|
BuildRequires: gnome-common
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libido3-0.1)
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%description
|
|
This library contains information to build indicators to go into
|
|
the indicator applet.
|
|
|
|
%package -n %{soname}-%{sover}
|
|
Summary: Panel indicator applet library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{soname}-%{sover}
|
|
This package provides the libraries required to build indicators
|
|
and to go into the indicator applet.
|
|
|
|
%package -n %{soname_gtk2}%{sover}
|
|
Summary: Panel indicator applet library for GTK+2
|
|
Group: System/Libraries
|
|
|
|
%description -n %{soname_gtk2}%{sover}
|
|
This package provides the libraries required to build indicators
|
|
and to go into the indicator applet.
|
|
|
|
%package -n %{soname}-devel
|
|
Summary: Development files for the Panel indicator applet
|
|
Group: Development/Libraries/Other
|
|
Requires: %{soname}-%{sover} = %{version}
|
|
|
|
%description -n %{soname}-devel
|
|
This package provides the development files required to build
|
|
indicators and to go into the indicator applet.
|
|
|
|
%package -n %{soname_gtk2}-devel
|
|
Summary: Development files for the Panel indicator applet (GTK+2 variant)
|
|
Group: Development/Libraries/Other
|
|
Requires: %{soname_gtk2}%{sover} = %{version}
|
|
|
|
%description -n %{soname_gtk2}-devel
|
|
This package provides the development files required to build
|
|
indicators and to go into the indicator applet.
|
|
|
|
%package -n indicator-common
|
|
Summary: Indicator shared files
|
|
Group: System/Libraries
|
|
|
|
%description -n indicator-common
|
|
A package that has files needed to work with the indicators. This
|
|
includes the systemd indicators-pre.target.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
%patch0 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -Wno-error"
|
|
%global _configure ../configure
|
|
NOCONFIGURE=1 gnome-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} V=1
|
|
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 %{buildroot}%{_libdir}/libdummy-indicator*.so
|
|
|
|
%post -n %{soname}-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname}-%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n %{soname_gtk2}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname_gtk2}%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n %{soname}-%{sover}
|
|
%if 0%{?suse_version} >= 1500
|
|
%license COPYING
|
|
%else
|
|
%doc COPYING
|
|
%endif
|
|
%doc AUTHORS NEWS
|
|
%{_libdir}/%{soname}.so.%{sover}*
|
|
|
|
%files -n %{soname_gtk2}%{sover}
|
|
%if 0%{?suse_version} >= 1500
|
|
%license COPYING
|
|
%else
|
|
%doc COPYING
|
|
%endif
|
|
%doc AUTHORS NEWS
|
|
%{_libdir}/%{soname_gtk2}.so.%{sover}*
|
|
|
|
%files -n %{soname}-devel
|
|
%{_includedir}/%{soname}-0.4/
|
|
%{_libexecdir}/indicator-loader3
|
|
%{_libdir}/%{soname}.so
|
|
%{_datadir}/%{name}/
|
|
%{_libdir}/pkgconfig/indicator3-0.4.pc
|
|
|
|
%files -n %{soname_gtk2}-devel
|
|
%{_includedir}/%{soname_gtk2}-0.4/
|
|
%{_libdir}/%{soname_gtk2}.so
|
|
%{_libdir}/pkgconfig/indicator-0.4.pc
|
|
|
|
%files -n indicator-common
|
|
%{_prefix}/lib/systemd/user/indicators-pre.target
|
|
|
|
%changelog
|