File libwnck.spec of Package libwnck

#
# spec file for package libwnck
#
# Copyright (c) 2016 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/
#


Name:           libwnck
Version:        3.20.1
Release:        0
Summary:        Window Navigator Construction Kit (Library Package)
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            https://git.gnome.org/browse/libwnck
Source:         http://download.gnome.org/sources/libwnck/3.20/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
%if !0%{?is_opensuse}
BuildRequires:  translation-update-upstream
%endif
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.16.0
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xres)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Window Navigator Construction Kit is a library that can be used to
write task lists, pagers, and similar GNOME programs.

%package -n libwnck-3-0
Summary:        Window Navigator Construction Kit (Library Package)
Group:          Development/Libraries/GNOME
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}
Recommends:     %{name}-lang
# bug437293
%ifarch ppc64
Obsoletes:      libwnck-64bit
%endif
#

%description -n libwnck-3-0
The Window Navigator Construction Kit is a library that can be used to
write task lists, pagers, and similar GNOME programs.

%package -n typelib-1_0-Wnck-3_0
Summary:        Window Navigator Construction Kit (Library Package) -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Wnck-3_0
The Window Navigator Construction Kit is a library that can be used to
write task lists, pagers, and similar GNOME programs.

This package provides the GObject Introspection bindings for libwnck.

%package tools
Summary:        Window Navigator Construction Kit -- Tools
Group:          Development/Libraries/GNOME

%description tools
The Window Navigator Construction Kit is a library that can be used to
write task lists, pagers, and similar GNOME programs.

This package provides some utilities based on libwnck.

%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       libwnck-3-0 = %{version}
Requires:       typelib-1_0-Wnck-3_0 = %{version}
# bug437293
%ifarch ppc64
Obsoletes:      libwnck-devel-64bit
%endif
Obsoletes:      libwnck-doc < %{version}
Provides:       libwnck-doc = %{version}

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%lang_package
%prep
%setup -q
%if !0%{?is_opensuse}
translation-update-upstream
# rpmlint note: libwnck has a separate translation for both Bengali and Bengali India
%endif

%build
%configure\
        --disable-static
%__make %{?jobs:-j%jobs} V=1

%install
%makeinstall
rm %{buildroot}%{_libdir}/*.*a
%find_lang %{name}-3.0
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post -n libwnck-3-0 -p /sbin/ldconfig

%postun -n libwnck-3-0 -p /sbin/ldconfig

%files tools
%defattr(-,root,root)
%{_bindir}/wnck-urgency-monitor
%{_bindir}/wnckprop

%files lang -f %{name}-3.0.lang

%files -n libwnck-3-0
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog
%{_libdir}/*.so.*

%files -n typelib-1_0-Wnck-3_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Wnck-3.0.typelib

%files devel
%defattr(-,root,root)
%{_includedir}/libwnck-3.0/
%{_libdir}/pkgconfig/libwnck-3.0.pc
%{_libdir}/*.so
%{_datadir}/gir-1.0/Wnck-3.0.gir
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/libwnck-3.0/

%changelog
openSUSE Build Service is sponsored by