Package libpangox-compat: Specfile

%define _name pangox-compat
%define ver_major 0.0

Name: lib%_name
Version: %ver_major.2
Release: alt3

Summary: Obsolete pangox library
License: LGPL-2.0+
Group: System/Legacy libraries
Url: ftp://ftp.gnome.org

Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
Patch1: %name-%version-archlinux-disable-shaper.patch

%define glib_ver 2.31

BuildPreReq: glib2-devel >= %glib_ver
BuildRequires: libpango-devel libX11-devel

%description
This is a compatibility library providing the obsolete pangox library
that is not shipped by Pango itself anymore.

%package -n libpangox1.0-compat
Summary: Obsolete pangox library
Group: System/Legacy libraries
Provides: libpangox-compat = %version-%release
Obsoletes: libpangox-compat < %version-%release
Conflicts: libpango < 1.32.0

%description -n libpangox1.0-compat
This is a compatibility library providing the obsolete pangox library
that is not shipped by Pango itself anymore.

%package -n libpangox1.0-compat-devel
Summary: Libraries and include files for developing with %_name
Group: Development/C
Requires: libpangox1.0-compat = %version-%release
Provides: libpangox-compat-devel = %version-%release
Obsoletes: libpangox-compat-devel < %version-%release
Conflicts: libpango-devel < 1.32.0

%description -n libpangox1.0-compat-devel
This package provides the necessary development libraries and include
files to develop with %_name.

%prep
%setup -n %_name-%version
%patch1 -p1

%build
%configure --disable-static
%make_build

%install
%makeinstall_std

%check
%make check

%files -n libpangox1.0-compat
%_libdir/*.so.*

%files -n libpangox1.0-compat-devel
%_sysconfdir/pango/pangox.aliases
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*


%changelog
* Mon Sep 13 2021 Leontiy Volodin <lvol@altlinux.org> 0.0.2-alt3
- Adjusted to Shared Libs Policy.
- Returned for ibm_lotus_notes (redmine #51324).

* Mon Sep 13 2021 Leontiy Volodin <lvol@altlinux.org> 0.0.2-alt2
- Returned for libpangox-1.0.so.0.
- Applied the patch from archlinux.

* Sat Jun 04 2016 Yuri N. Sedunov <aris@altlinux.org> 0.0.2-alt1
- 0.0.2

* Fri Sep 28 2012 Yuri N. Sedunov <aris@altlinux.org> 0.0.1-alt1
- first build for Sisyphus