File mx.spec of Package mx
#
# spec file for package mx
#
# Copyright (c) 2012 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: mx
Version: 1.4.7
Release: 0
Summary: Clutter-based Toolkit
License: LGPL-2.1
Group: System/Libraries
Url: http://www.clutter-project.org/
Source0: https://github.com/downloads/clutter-project/mx/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM mx-Replace-GL-data-types-with-equivalent-glib-types.patch zaitor@opensuse.org -- patch taken from upstream git, fixes build.
Patch0: mx-Replace-GL-data-types-with-equivalent-glib-types.patch
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig(clutter-1.0)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(xrandr)
%description
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
%package -n libmx-1_0-2
Summary: Clutter-based Toolkit
License: LGPL-2.1
Group: System/Libraries
Recommends: %{name}-lang
# To make lang package installable
Provides: %{name} = %{version}
%description -n libmx-1_0-2
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
%package -n libmx-gtk-1_0-0
Summary: Clutter-based Toolkit -- GTK+ Widgets
License: LGPL-2.1
Group: System/Libraries
%description -n libmx-gtk-1_0-0
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
%package -n typelib-1_0-Mx-1_0
Summary: Clutter-based Toolkit -- Introspection bindings
License: LGPL-2.1
Group: System/Libraries
%description -n typelib-1_0-Mx-1_0
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
This package provides the GObject Introspection bindings for Mx.
%package -n typelib-1_0-MxGtk-1_0
Summary: Clutter-based Toolkit -- GTK+ Widgets, Introspection bindings
License: LGPL-2.1
Group: System/Libraries
%description -n typelib-1_0-MxGtk-1_0
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
This package provides the GObject Introspection bindings for the
libmx-gtk library.
%package tools
Summary: Clutter-based Toolkit -- Tools
License: GPL-2.0
Group: System/Libraries
%description tools
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
%package -n glade3-catalog-mx-gtk
Summary: Clutter-based Toolkit -- GTK+ Widgets -- Catalog for Glade
License: LGPL-2.1
Group: Development/Tools/GUI Builders
Requires: glade3
Requires: libmx-gtk-1_0-0 = %{version}
Supplements: packageand(glade3:%{name}-devel)
%description -n glade3-catalog-mx-gtk
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
This package provides a catalog for Glade, to allow the use of MX-GTK
widgets in Glade.
%package devel
Summary: Clutter-based Toolkit -- Development Files
License: LGPL-2.1
Group: Development/Libraries/GNOME
Requires: libmx-1_0-2 = %{version}
Requires: libmx-gtk-1_0-0 = %{version}
Requires: typelib-1_0-Mx-1_0 = %{version}
Requires: typelib-1_0-MxGtk-1_0 = %{version}
%description devel
Mx is a widget toolkit using Clutter that provides a set of standard
interface elements, including buttons, progress bars, scroll bars and
others.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
%configure \
--disable-static \
--with-glade
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang mx-1.0
%fdupes %{buildroot}%{_datadir}/gtk-doc/
%fdupes %{buildroot}%{_datadir}/mx/style/
%clean
rm -rf %{buildroot}
%post -n libmx-1_0-2 -p /sbin/ldconfig
%postun -n libmx-1_0-2 -p /sbin/ldconfig
%post -n libmx-gtk-1_0-0 -p /sbin/ldconfig
%postun -n libmx-gtk-1_0-0 -p /sbin/ldconfig
%files -n libmx-1_0-2
%defattr(-,root,root,-)
%doc ChangeLog COPYING.LIB NEWS README
%{_libdir}/libmx-1.0.so.*
%dir %{_datadir}/mx
# Default style
%{_datadir}/mx/style/
%files -n libmx-gtk-1_0-0
%defattr(-,root,root,-)
%doc ChangeLog COPYING.LIB NEWS README
%{_libdir}/libmx-gtk-1.0.so.*
%files -n typelib-1_0-Mx-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Mx-1.0.typelib
%files -n typelib-1_0-MxGtk-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/MxGtk-1.0.typelib
%files tools
%defattr(-,root,root)
%{_bindir}/mx-create-image-cache
%files -n glade3-catalog-mx-gtk
%defattr(-,root,root)
%{_datadir}/glade3/catalogs/mx-gtk-catalog.xml
%files devel
%defattr(-,root,root,-)
%{_includedir}/mx-1.0/
%{_libdir}/pkgconfig/mx-1.0.pc
%{_libdir}/pkgconfig/mx-gtk-1.0.pc
%{_libdir}/*.so
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/mx/
%doc %{_datadir}/gtk-doc/html/mx-gtk/
%files lang -f mx-1.0.lang
%changelog