Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563488
en ru br
ALT Linux repos
S:2.6.4-alt6
5.0: 2.6.4-alt1
4.1: 2.6.3-alt0.M41.1
4.0: 2.6.0-alt4
3.0: 0.17-alt9

Group :: System/Libraries
RPM: libglade

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
%define _oldname libglade2
%define ver_major 2.6
%def_disable static
%def_disable python
%def_disable gtk_doc

Name: libglade
Version: %ver_major.3
Release: alt0.M41.1

Summary: libglade library
License: LGPL
Group: System/Libraries
Url: ftp://ftp.gnome.org

Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Obsoletes: %_oldname
Provides: %_oldname = %version-%release

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

%define gtk_ver 2.5.0
%define glib_ver 2.10
%define pango_ver 1.8.1
%define atk_ver 1.9.0
%define libxml2_ver 2.6.17
%define pkgconfig_ver 0.15-alt3.2
%define python_ver 2.0

PreReq: xml-utils, xml-common

Requires: libgtk+2 >= %gtk_ver

Requires: libxml2 >= %libxml2_ver
Requires: libatk >= %atk_ver

BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: python >= %python_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: pkgconfig >= %pkgconfig_ver

%if_enabled python
BuildPreReq: PyXML python-modules-xml
%endif

%if_enabled gtk_doc
gtk-doc
%endif

BuildRequires: docbook-dtds docbook-style-xsl python-devel xml-utils xsltproc zlib-devel

BuildRequires: rpm-build-compat >= 0.95

%description
This library allows you to load user interfaces in your program, which are
stored externally.  This allows alteration of the interface without
recompilation of the program.

The interfaces can also be edited with GLADE.

%package devel
Summary: Libraries, includes, etc to develop libglade applications
Group: Development/GNOME and GTK+
Obsoletes: %_oldname-devel
Provides: %_oldname-devel = %version-%release
Requires: %name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver libatk-devel >= %atk_ver
Requires: libxml2-devel >= %libxml2_ver libpango-devel >= %pango_ver
Requires: pkgconfig >= %pkgconfig_ver

%description devel
This library allows you to load user interfaces in your program, which are
stored externally.  This allows alteration of the interface without
recompilation of the program.

Libraries, include files, etc you can use to develop libglade applications.

%if_enabled python
%package devel-converter
Summary: Python script to convert old glade files.
Group: Development/GNOME and GTK+
Obsoletes: %_oldname-devel-python
Provides: %_oldname-devel-python = %version-%release
Obsoletes: %name-devel-python
Provides: %name-devel-python = %version-%release
Requires: %name-devel = %version-%release

%description devel-converter
This library allows you to load user interfaces in your program, which are
stored externally.  This allows alteration of the interface without
recompilation of the program.

This package provides libglade-convert script to convert old glade files.
%endif

%package devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Obsoletes: %_oldname-devel-doc
Provides: %_oldname-devel-doc = %version-%release
Conflicts: %name < %version-%release

%description devel-doc
Glade library allows to load user interfaces in programs, which are
stored externally. This allows alteration of the interface without
recompilation of the program.

This package contains development documentation for %name

%if_enabled static
%package devel-static
Summary: Libraries, includes, etc to develop libglade applications
Group: Development/GNOME and GTK+
Requires: libgtk+2-devel libxml2-devel %name-devel = %version-%release

%description devel-static
Libraries, include files, etc you can use to develop libglade applications.
%endif

%define xmlbase %_datadir/xml
%define xmlconfdir %_sysconfdir/xml
%define xmlcatalog %xmlconfdir/catalog

%prep
%setup

# fix LTVERSION (2.4.1 was 0:5:0)

%__subst 's,0:4:0,0:6:0,' glade/Makefile*

%build
%if_disabled python
export ac_cv_path_PYTHON=/bin/false
%endif
%configure \
%{subst_enable static} \
%{?_enable_gtk_doc:--enable-gtk-doc}

%make_build

%install
%makeinstall

# The directory for libglade extenstions.

%__mkdir_p %buildroot%_libdir/%name/2.0

# Development documentation.

%__mkdir_p %buildroot%_docdir/%name-devel-%version
%__cp test-libglade.c examples/*.glade %buildroot%_docdir/%name-devel-%version/

%__bzip2 -9fk ChangeLog

%post
%post_ldconfig
%_bindir/xmlcatalog --noout --add "system" \
   "http://glade.gnome.org/glade-2.0.dtd" \
   %_datadir/xml/%name/glade-2.0.dtd %xmlcatalog ||:

%postun
%postun_ldconfig
%_bindir/xmlcatalog --noout --del \
   "%_datadir/xml/%name/glade-2.0.dtd" %xmlcatalog ||:

%files
%_libdir/%name-2.0.so.*
%dir %_libdir/%name
%dir %_libdir/%name/2.0
%dir %_datadir/xml/%name
%_datadir/xml/%name/glade-2.0.dtd
%doc AUTHORS ChangeLog.* NEWS README

%files devel
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*

%if_enabled python
%files devel-converter
%_bindir/libglade-convert
%endif

%files devel-doc
%_docdir/%name-devel-%version
%_datadir/gtk-doc/html/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin