Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37567325
en ru br
ALT Linux repositórios
S:1.6.0-alt3.qa1
5.0: 1.3.0-alt0.1
4.1: 1.3.0-alt0.1
4.0: 1.3.0-alt0.1
3.0: 1.1.6-alt1

Group :: Ferramentas de texto
RPM: enchant

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define name enchant
%define ver 1.1.6

Name: %name
Version: %ver
Release: alt1

Summary: An Enchanting Spell Checking Program
License: LGPL
Group: Text tools

URL: http://www.abisource.com/projects/enchant
Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libenchant/%{name}-%{version}.tar.gz
Source1: %name.alternatives
Source2: %name-spell.bz2

PreReq: alternatives >= 0.0.6
Requires:  lib%name

# Automatically added by buildreq on Mon Apr 04 2005

BuildRequires: aspell gcc-c++ gcc-g77 glib2-devel gnome-libs-devel hostinfo libaspell-devel libstdc++-devel pkgconfig

BuildRequires: glib2-devel >= 2.6.0
BuildRequires: libalternatives-devel

Provides: ispell
Provides: /usr/bin/spell

%description
This package contained simple programs that wraps other spell checking backends and Ispell compatible script.

%package -n lib%name
Summary: An Enchanting Spell Checking Library
Group: System/Libraries
Requires:  glib2 >= 2.6.0

%description -n lib%name
Libraries 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

%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

%description -n lib%name-devel-static
Static library needed to build statically linked applications with %name.

%prep
%setup -q -n %name-%ver

%build
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--mandir=%_mandir \
--with-ispell-dir=/usr/lib/ispell \
%{?_without_ispell:--disable-ispell} \
%{?_without_myspell:--disable-myspell} \
%{?_without_aspell:--disable-aspell} \
%{?_with_uspell:--enable-uspell}


if [ "$SMP" != "" ]; then
 (%__make "MAKE=%__make -k -j $SMP"; exit 0)
 %__make
else
%__make
fi

%install
%make install DESTDIR=$RPM_BUILD_ROOT install
mv tests/ispell $RPM_BUILD_ROOT%_bindir/%name-ispell
install -d $RPM_BUILD_ROOT%_altdir
install -p -m 644 %SOURCE1 $RPM_BUILD_ROOT%_altdir/%name
bzcat %SOURCE2 > $RPM_BUILD_ROOT%_bindir/%name-spell
chmod 0755 $RPM_BUILD_ROOT%_bindir/%name-spell

%post -n lib%name -p /sbin/ldconfig
%postun -n lib%name -p /sbin/ldconfig

%post
%register_alternatives %name -- ispell

%preun
%unregister_alternatives %name

%files
%_altdir/%name
%_bindir/*
%_man1dir/enchant.1.gz

%files -n lib%name
%doc AUTHORS COPYING.LIB README
%_libdir/*.so*
%dir %_libdir/enchant
%{!?_without_ispell:%_libdir/enchant/*ispell.so*}
%{!?_without_myspell:%_libdir/enchant/*myspell.so*}
%{!?_without_aspell:%_libdir/enchant/*aspell.so*}
%{?_with_uspell:%_libdir/enchant/*uspell.so*}

%files -n lib%name-devel
%{!?_without_ispell:%_libdir/enchant/*ispell.la}
%{!?_without_myspell:%_libdir/enchant/*myspell.la}
%{!?_without_aspell:%_libdir/enchant/*aspell.la}
%{?_with_uspell:%_libdir/enchant/*uspell.la}
%_libdir/pkgconfig/enchant.pc
%dir %_includedir/enchant/
%_includedir/enchant/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%{!?_without_ispell:%_libdir/enchant/*ispell.a}
%{!?_without_myspell:%_libdir/enchant/*myspell.a}
%{!?_without_aspell:%_libdir/enchant/*aspell.a}
%{?_with_uspell:%_libdir/enchant/*uspell.a}
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009