File gtk1-compat.spec of Package gtk1-compat

#
# spec file for package gtk1-compat
#
# 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:           gtk1-compat
Version:        0.10
Release:        0
Summary:        Compatibility Wrappers for Old Versions of GLib, GTK+, GDK-Pixbuf, and libglade
License:        LGPL-2.1+
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Wrapper headers, M4 macros, configuration scripts, and library
symlinks, which simulate the presence of GLib1, GTK+1, GDK-Pixbuf1, and
libglade1 development packages, but use GLib2, GTK+2, and libglade2.
Using it, you can force to link some older applications with new
libraries without any effort.

The package also provides the gtk1-compat-autofix script, which does
some source code modifications that cannot be worked around any other
way, and a static library with some obsolete functions.

Author: Stanislav Brabec <sbrabec@suse.cz>

%package devel
Summary:        Compatibility Wrappers for Old Versions of GLib, GTK+, GDK-Pixbuf and libglade
Group:          Development/Libraries/X11
Requires:       pkgconfig
Requires:       python
Requires:       pkgconfig(glib-2.0)
Requires:       pkgconfig(gtk+-2.0)
Requires:       pkgconfig(libglade-2.0)
Requires:       pkgconfig(libxml-2.0)
Conflicts:      glib-devel gtk-devel gdk-pixbuf-devel libxml-devel libglade-devel

%description devel
Wrapper headers, M4 macros, config scripts and library symlinks, which
simulate presence of GLib1, GTK+1, GDK-Pixbuf1, libglade1 development
packages, but tries to use GLib2, GTK+2 and libglade2.

Using it, you can force linking of some old applications with new
libraries without any effort.

Package also provides gtk1-compat-autofix script, which does some
source code modifications, which cannot be worked around by any other
way, and a static library with some obsolete functions.

%prep
%setup -q

%build
autoreconf -f -i
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%files devel
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/*
%{_datadir}/aclocal/*.m4
%{_includedir}/gtk1-compat
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by