Репозитории ALT
S: | 1.6.0-alt3.qa1 |
5.1: | 1.5.0-alt1 |
4.1: | 1.3.0-alt0.1 |
4.0: | 1.3.0-alt0.1 |
3.0: | 1.1.6-alt1 |
Группа :: Работа с текстами
Пакет: enchant
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: enchant
Version: 1.3.0
Release: alt0.1
%def_disable static
Summary: An Enchanting Spell Checking Program
Group: Text tools
License: LGPL
URL: http://www.abisource.com/projects/enchant
Packager: Vital Khilko <vk at altlinux.ru>
Source: ftp://ftp.gnome.org/pub/GNOME/sources/libenchant/%name-%version.tar.bz2
Source2: %name-spell.bz2
%define aspell_ver 0.50.0
%define glib_ver 2.6.0
Requires: lib%name = %version-%release
# Automatically added by buildreq on Wed Sep 27 2006
BuildRequires: aspell gcc-c++ glib2-devel libaspell-devel
BuildRequires: libaspell-devel >= %aspell_ver
BuildRequires: glib2-devel >= %glib_ver
Provides: ispell
Provides: %_bindir/spell
%description
This package contains simple programs that wrap other spell checking backends,
including an Ispell compatible script.
%package -n lib%name
Summary: An Enchanting Spell Checking Library
Group: System/Libraries
Requires: libaspell >= %aspell_ver
Requires: glib2 >= %glib_ver
%description -n lib%name
A library that wraps other spell checking backends.
%package -n lib%name-devel
Summary: Support files necessary to compile applications with libenchant.
Group: Development/C++
Requires: lib%name = %version-%release
%description -n lib%name-devel
Libraries, headers, and support files necessary to compile applications
using libenchant.
%package -n lib%name-devel-static
Summary: Static library needed to build static applications with lib%name.
Group: Development/C++
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
Static library needed to build statically linked applications with %name.
%prep
%setup -q
%build
#CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
%configure --with-ispell-dir=/usr/lib/ispell
%make_build
%install
%make_install DESTDIR=%buildroot install
sed 's, at prefix at ,%_prefix,' < tests/ispell.in > %buildroot%_bindir/%name-ispell
chmod 0755 %buildroot%_bindir/%name-ispell
bzcat %SOURCE2 > %buildroot%_bindir/%name-spell
chmod 0755 %buildroot%_bindir/%name-spell
mkdir -p %buildroot%_altdir
cat <<EOF >%buildroot%_altdir/%name
%_bindir/ispell %_bindir/%name-ispell 60
%_bindir/spell %_bindir/%name-spell %_bindir/%name-ispell
EOF
# remove unpackaged files
rm -f %buildroot%_libdir/%name/*.la
%if_disabled static
rm -f %buildroot%_libdir/%name/*.a
rm -f %buildroot%_libdir/*.a
%endif
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%post
%register_alternatives %name -- ispell
%preun
%unregister_alternatives %name
%files
%_altdir/%name
%_bindir/*
%_man1dir/*
%files -n lib%name
%doc AUTHORS COPYING.LIB README
%_libdir/*.so.*
%dir %_libdir/%name
%_libdir/%name/*.so*
%_datadir/%name
%files -n lib%name-devel
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.3.0
Release: alt0.1
%def_disable static
Summary: An Enchanting Spell Checking Program
Group: Text tools
License: LGPL
URL: http://www.abisource.com/projects/enchant
Packager: Vital Khilko <vk at altlinux.ru>
Source: ftp://ftp.gnome.org/pub/GNOME/sources/libenchant/%name-%version.tar.bz2
Source2: %name-spell.bz2
%define aspell_ver 0.50.0
%define glib_ver 2.6.0
Requires: lib%name = %version-%release
# Automatically added by buildreq on Wed Sep 27 2006
BuildRequires: aspell gcc-c++ glib2-devel libaspell-devel
BuildRequires: libaspell-devel >= %aspell_ver
BuildRequires: glib2-devel >= %glib_ver
Provides: ispell
Provides: %_bindir/spell
%description
This package contains simple programs that wrap other spell checking backends,
including an Ispell compatible script.
%package -n lib%name
Summary: An Enchanting Spell Checking Library
Group: System/Libraries
Requires: libaspell >= %aspell_ver
Requires: glib2 >= %glib_ver
%description -n lib%name
A library that wraps other spell checking backends.
%package -n lib%name-devel
Summary: Support files necessary to compile applications with libenchant.
Group: Development/C++
Requires: lib%name = %version-%release
%description -n lib%name-devel
Libraries, headers, and support files necessary to compile applications
using libenchant.
%package -n lib%name-devel-static
Summary: Static library needed to build static applications with lib%name.
Group: Development/C++
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
Static library needed to build statically linked applications with %name.
%prep
%setup -q
%build
#CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
%configure --with-ispell-dir=/usr/lib/ispell
%make_build
%install
%make_install DESTDIR=%buildroot install
sed 's, at prefix at ,%_prefix,' < tests/ispell.in > %buildroot%_bindir/%name-ispell
chmod 0755 %buildroot%_bindir/%name-ispell
bzcat %SOURCE2 > %buildroot%_bindir/%name-spell
chmod 0755 %buildroot%_bindir/%name-spell
mkdir -p %buildroot%_altdir
cat <<EOF >%buildroot%_altdir/%name
%_bindir/ispell %_bindir/%name-ispell 60
%_bindir/spell %_bindir/%name-spell %_bindir/%name-ispell
EOF
# remove unpackaged files
rm -f %buildroot%_libdir/%name/*.la
%if_disabled static
rm -f %buildroot%_libdir/%name/*.a
rm -f %buildroot%_libdir/*.a
%endif
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%post
%register_alternatives %name -- ispell
%preun
%unregister_alternatives %name
%files
%_altdir/%name
%_bindir/*
%_man1dir/*
%files -n lib%name
%doc AUTHORS COPYING.LIB README
%_libdir/*.so.*
%dir %_libdir/%name
%_libdir/%name/*.so*
%_datadir/%name
%files -n lib%name-devel
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь