Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37567100
en ru br
Репозитории ALT
5.1: 1.9.15-alt2.3
4.1: 1.9.15-alt1
4.0: 1.9.15-alt1
3.0: 1.9.14-alt5
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: imlib

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: imlib
Version: 1.9.14
Release: alt5

Summary: An image loading and rendering library for X11R6
License: LGPL
Group: System/Libraries
Url: http://www.labs.redhat.com/%name/

Source: ftp://pub/GNOME/stable/sources/%name/%name-%version.tar.bz2
Source1: %name-pofiles.tar.bz2

Provides: lib%name = %version-%release
Obsoletes: Imlib, lib%name
Requires: %{get_dep libpng3}, %{get_dep gtk+}

Patch1: imlib-1.9.14-mdk-rh-m4.patch
Patch2: imlib-1.9.14-alt-imlib_config-i18n.patch
Patch3: imlib-1.9.14-alt-path.patch
Patch4: imlib-1.9.14-alt-configure.patch
Patch5: imlib-1.9.14-alt-linkage.patch
Patch6: imlib-1.9.14-suse-alt-bound.patch
Patch7: imlib-1.9.14-peak-fixes.patch
Patch8: imlib-1.9.14-alt-gdk_imlib-modules-debug.patch

%def_disable static

# Automatically added by buildreq on Wed Oct 09 2002

BuildRequires: XFree86-devel glib-devel gtk+-devel libjpeg-devel libpng-devel libtiff-devel libungif-devel zlib-devel

%package cfgeditor
Summary: A configuration editor for the Imlib library
Group: System/Libraries
Requires: %name = %version-%release

%package devel
Summary: Includes and other files to develop %name applications
Group: Development/GNOME and GTK+
Requires: %name = %version-%release, %name-cfgeditor = %version-%release
Requires: glib-devel gtk+-devel libpng3-devel libjpeg-devel libtiff-devel libungif-devel XFree86-devel zlib-devel
Provides: lib%name-devel = %version-%release
Obsoletes: lib%name-devel

%package devel-static
Summary: Static library files to develop %name applications
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release, libpng3-devel-static
Provides: lib%name-devel-static = %version-%release
Obsoletes: lib%name-devel-static

%description
Imlib is a display depth independent image loading and rendering library.
Imlib is designed to simplify and speed up the process of loading images
and obtaining X Window System drawables.  Imlib provides many simple
manipulation routines which can be used for common operations.

Install %name if you need an image loading and rendering library
for X11R6.  You may also want to install the %name-cfgeditor package,
which will help you configure Imlib.

%description cfgeditor
The %name-cfgeditor package contains the %{name}_config program, which
you can use to configure the Imlib image loading and rendering library.
Imlib_config can be used to control how Imlib uses color and handles
gamma corrections, etc.

%description devel
The header files, static libraries and documentation needed for developing
Imlib applications.  Imlib is an image loading and rendering library
for X11R6.

Install this package if you want to develop Imlib applications.
You'll also need to install the %name and %name-cfgeditor packages.

%description devel-static
The static libraries needed to link Imlib applications statically
with Imlib.  Imlib is an image loading and rendering library for X11R6.

Install this package if you want to develop statically linked
Imlib applications.

%prep
%setup -q -a1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%{?_enable_debug:%patch8 -p1}
find -type f -name \*.orig -delete -print

%build
%add_optflags -DENABLE_NLS
export \
ac_cv_lib_dnet_dnet_ntoa=no \
ac_cv_path_CJPEG_PROG=%_bindir/cjpeg \
ac_cv_path_DJPEG_PROG=%_bindir/djpeg \
ac_cv_path_CONVERT_PROG=%_bindir/convert \
ac_cv_path_GIFTOPNM_PROG=%_bindir/giftopnm \
%{?_disable_static:export lt_cv_prog_cc_static_works=no} \
%{?_enable_static:export lt_cv_prog_cc_static_works=yes} \
#
%configure %{subst_enable static}
#SMP-incompatible build
%make
# Compile locales by hand.
pushd po
for f in *.po; do
msgfmt -v -o "${f%.po}.mo" "$f"
done
popd

%install
%makeinstall

# Install locales by hand.

pushd po
for f in *.mo; do
install -pD -m644 "$f" "$RPM_BUILD_ROOT%_datadir/locale/${f%.mo}/LC_MESSAGES/%name.mo"
done
popd

mkdir -p $RPM_BUILD_ROOT%_menudir
cat << EOF >$RPM_BUILD_ROOT%_menudir/%name-cfgeditor
?package(%name): command="%_bindir/imlib_config" icon="%_datadir/pixmaps/gnome-note.png" longtitle="Image loading and display settings" title="Imlib Configuration Options" needs=gnome section="Configuration/Gnome"
EOF

%define docdir %_docdir/%name-%version
%__rm -rf $RPM_BUILD_ROOT%docdir
%__mkdir_p $RPM_BUILD_ROOT%docdir
%__install -p -m644 README AUTHORS ChangeLog doc/*.{gif,html} \
$RPM_BUILD_ROOT%docdir/
%__bzip2 -9 $RPM_BUILD_ROOT%docdir/ChangeLog

%find_lang %name

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post cfgeditor
%update_menus

%postun cfgeditor
%clean_menus

%files
%_libdir/*.so.*
%_libdir/lib%name-*.so
%config(noreplace) %_sysconfdir/*
%dir %docdir
%docdir/[AR]*

%files cfgeditor -f %name.lang
%_bindir/*_config
%_man1dir/*_config.*
%_menudir/*

%files devel
%_bindir/*-config
%_man1dir/*-config.*
%_libdir/libImlib.so
%_libdir/libgdk_%name.so
%_includedir/*
%_libdir/pkgconfig/*.pc
%_datadir/aclocal/*
%dir %docdir
%docdir/C*
%docdir/*.gif
%docdir/*.html

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

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin