File mingw64-glade3.spec of Package mingw64-glade3
#
# spec file for package mingw64-glade3
#
# Copyright (c) 2021 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/
#
%_mingw64_package_header_debug
Name: mingw64-glade3
Version: 3.8.2
Release: 0
Summary: User Interface Builder for GTK+ and Gnome
License: GPL-2.0-or-later
Group: Development/Libraries/GNOME
URL: https://glade.gnome.org/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-%{version}.tar.xz
Patch0: glade3-3.6.5-canonical_host.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gnome-doc-utils
BuildRequires: mingw64-gnome-doc-utils-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libbonoboui-devel
BuildRequires: mingw64-libgnomeui-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: xz
#!BuildIgnore: post-build-checks
Requires: %{name}-lang >= %{version}
BuildArch: noarch
%if 0%{?suse_version} <= 1120
BuildRequires: gnome-doc-utils
%else
BuildRequires: xml2po
%endif
%if 0%{?suse_version} < 1550
BuildRequires: libxml2-python
BuildRequires: python
%else
BuildRequires: python3
BuildRequires: python3-libxml2
%endif
%description
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment. The
user interfaces designed in Glade are stored in XML format, enabling
easy integration with external tools. In particular libglade can load
the XML files and create the interfaces at runtime. The DTD for the XML
files is included with libglade, and is also at
http://glade.gnome.org/glade-2.0.dtd. Other tools are available which
can turn the XML files into source code in languages such as C++, Perl
and Python.
%package -n mingw64-libgladeui-1-11
Summary: Library for User Interface Builder for GTK+ and Gnome
Group: System/Libraries
Obsoletes: mingw64-libgladeui
%description -n mingw64-libgladeui-1-11
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment. The
user interfaces designed in Glade are stored in XML format, enabling
easy integration with external tools. In particular libglade can load
the XML files and create the interfaces at runtime. The DTD for the XML
files is included with libglade, and is also at
http://glade.gnome.org/glade-2.0.dtd. Other tools are available which
can turn the XML files into source code in languages such as C++, Perl
and Python.
%package -n mingw64-libgladeui-devel
Summary: Import Libraries and Header Files for glade3
Group: Development/Libraries/C and C++
%description -n mingw64-libgladeui-devel
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment. The
user interfaces designed in Glade are stored in XML format, enabling
easy integration with external tools. In particular libglade can load
the XML files and create the interfaces at runtime. The DTD for the XML
files is included with libglade, and is also at
http://glade.gnome.org/glade-2.0.dtd. Other tools are available which
can turn the XML files into source code in languages such as C++, Perl
and Python.
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n glade3-%{version}
%patch -P 0 -p1 -b .canonical_host
%build
autoconf -f -i
export PATH="%{_mingw64_bindir}:$PATH"
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%_mingw64_configure \
--enable-shared --disable-static \
--disable-scrollkeeper --enable-compile-warnings=maximum
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw64_libdir}/glade3/modules/*.dll.a
%find_lang glade3
%files
%{_mingw64_bindir}/glade-3.exe
%{_mingw64_datadir}/applications/glade-3.desktop
%{_mingw64_datadir}/glade3
%{_mingw64_datadir}/icons/hicolor/*/apps/*.*
%{_mingw64_libdir}/glade3/modules/libgladegtk.dll
%{_mingw64_libdir}/glade3/modules/libgladegnome.dll
%files lang -f glade3.lang
%if 0%{?suse_version} <= 1100
%{_mingw64_datadir}/omf/glade/glade-*.omf
%endif
%files -n mingw64-libgladeui-1-11
%{_mingw64_bindir}/libgladeui-1-11.dll
%files -n mingw64-libgladeui-devel
%{_mingw64_datadir}/gtk-doc/html/gladeui
%{_mingw64_includedir}/libgladeui-1.0/gladeui
%{_mingw64_libdir}/libgladeui-1.dll.a
%{_mingw64_libdir}/pkgconfig/gladeui-1.0.pc
%changelog