]> git.pld-linux.org Git - packages/enchant.git/blobdiff - enchant.spec
- release 3 (rebuild with hunspell 1.7)
[packages/enchant.git] / enchant.spec
index aa9ae04d84ee4ec93b668871973cc418284c11e7..dec07c1d2e8811ea85e06293b3701b315ee21789 100644 (file)
@@ -1,17 +1,37 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       libenchant - generic spell checking library
-Summary(pl):   libenchant - ogólna biblioteka sprawdzania pisowni
+Summary(pl.UTF-8):     libenchant - ogólna biblioteka sprawdzania pisowni
 Name:          enchant
-Version:       1.1.3
-Release:       1
-License:       LGPL
+# version 2.x packaged as enchant2
+Version:       1.6.1
+Release:       3
+License:       LGPL v2
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/abiword/%{name}-%{version}.tar.gz
-# Source0-md5: c95186755fe46b27a78d9a85fef2175c
-URL:           http://www.abisource.com/enchant/
-BuildRequires: aspell-devel >= 0.50.0
-BuildRequires: glib2-devel >= 2.0
+# versions up to 1.6.0
+#Source0:      http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
+# 1.6.x > 1.6.0 (for 2.x see enchant2.spec)
+#Source0Download: https://github.com/AbiWord/enchant/releases
+Source0:       https://github.com/AbiWord/enchant/releases/download/enchant-1-6-1/%{name}-%{version}.tar.gz
+# Source0-md5: 4110afe7d7010acbb5c69dd1214fa936
+Patch0:                hunspell-1.4.patch
+Patch1:                %{name}-sh.patch
+URL:           https://www.abisource.com/projects/enchant/
+BuildRequires: aspell-devel >= 2:0.50.0
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: dbus-glib-devel >= 0.62
+BuildRequires: glib2-devel >= 1:2.12.0
+BuildRequires: hspell-devel >= 0.9-3
+BuildRequires: hunspell-devel
+BuildRequires: libtool >= 2:2
+BuildRequires: libvoikko-devel
 BuildRequires: pkgconfig
 BuildRequires: uspell-devel >= 1.1.0
+Requires:      glib2 >= 1:2.12.0
+Suggests:      %{name}-backend
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,109 +55,164 @@ both provider modules and for dictionaries themselves, when possible.
 Enchant's module location algorithm takes this into account, and gives
 preference to the $USER resources, when found.
 
-%description -l pl
+%description -l pl.UTF-8
 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
-do obs³ugi ró¿nych bibliotek kontroli pisowni. Enchant ma dostarczaæ
-ogólny interfejs do ró¿nych istniej±cych bibliotek. Obejmuj± one (ale
-nie s± ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella.
-
-Enchant ma byæ tak¿e u¿ywany w ¶rodowisku wieloplatformowym. Oznacza
-to miêdzy innymi, ¿e Enchant ma mieæ ograniczon± liczbê zewnêtrznych
-zale¿no¶ci do zera lub najbli¿ej jak to mo¿liwe. Tak¿e dowolny klient
-enchanta (czyli procesor tekstu) nie powinien potrzebowaæ wiedzy,
-jakie backendy s± dostêpne dla Enchanta. W rzeczywisto¶ci nawet
-Enchant nie powinien potrzebowaæ takiej informacji. Aby to osi±gn±æ,
-wszystkie backendy Enchanta s± dynamicznie ³adowanymi modu³ami.
-
-Enchant ma byæ tak¿e u¿ywany w ¶rodowisku wielou¿ytkownikowym, takim
-jak Unix. Preferuje siê, ¿eby istnia³y zarówno specyficzne dla
-u¿ytkownika jak i globalne lokalizacje zarówno dla modu³ów jak i
-samych s³owników, je¶li to mo¿liwe. Algorytm poszukiwania modu³ów
-Enchanta bierze to pod uwagê i preferuje zasoby u¿ytkownika, je¶li
+do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
+ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
+nie są ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella.
+
+Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
+to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
+zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
+enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
+jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
+Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
+wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
+
+Enchant ma być także używany w środowisku wieloużytkownikowym, takim
+jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
+użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
+samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
+Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
 takie znajdzie.
 
 %package devel
 Summary:       Header files for enchant library
-Summary(pl):   Pliki nag³ówkowe biblioteki enchant
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki enchant
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Requires:      glib2-devel >= 2.0
+Requires:      %{name} = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.12.0
 
 %description devel
 Header files for enchant library.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki enchant.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki enchant.
 
 %package static
 Summary:       Static enchant library
-Summary(pl):   Statyczna biblioteka enchant
+Summary(pl.UTF-8):     Statyczna biblioteka enchant
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static enchant library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka enchant.
 
 %package aspell
 Summary:       aspell provider module for Enchant
-Summary(pl):   Modu³ obs³uguj±cy aspella dla Enchanta
+Summary(pl.UTF-8):     Moduł obsługujący aspella dla Enchanta
 Group:         Libraries
-Requires:      %{name} = %{version}
-Requires:      aspell >= 0.50.0
+Requires:      %{name} = %{version}-%{release}
+Requires:      aspell >= 2:0.50.0
+Provides:      %{name}-backend
 
 %description aspell
 aspell provider module for Enchant.
 
-%description aspell -l pl
-Modu³ obs³uguj±cy aspella dla Enchanta.
+%description aspell -l pl.UTF-8
+Moduł obsługujący aspella dla Enchanta.
+
+%package hspell
+Summary:       hspell provider module for Enchant
+Summary(pl.UTF-8):     Moduł obsługujący hspella dla Enchanta
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Provides:      %{name}-backend
+
+%description hspell
+hspell provider module for Enchant.
+
+%description hspell -l pl.UTF-8
+Moduł obsługujący hspella dla Enchanta.
 
 %package ispell
 Summary:       ispell provider module for Enchant
-Summary(pl):   Modu³ obs³uguj±cy ispella dla Enchanta
+Summary(pl.UTF-8):     Moduł obsługujący ispella dla Enchanta
 Group:         Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Provides:      %{name}-backend
 
 %description ispell
 ispell provider module for Enchant.
 
-%description ispell -l pl
-Modu³ obs³uguj±cy ispella dla Enchanta.
+%description ispell -l pl.UTF-8
+Moduł obsługujący ispella dla Enchanta.
 
 %package myspell
 Summary:       myspell provider module for Enchant
-Summary(pl):   Modu³ obs³uguj±cy myspella dla Enchanta
+Summary(pl.UTF-8):     Moduł obsługujący myspella dla Enchanta
 Group:         Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Provides:      %{name}-backend
 
 %description myspell
 myspell provider module for Enchant.
 
-%description myspell -l pl
-Modu³ obs³uguj±cy myspella dla Enchanta.
+%description myspell -l pl.UTF-8
+Moduł obsługujący myspella dla Enchanta.
 
 %package uspell
 Summary:       uspell provider module for Enchant
-Summary(pl):   Modu³ obs³uguj±cy uspella dla Enchanta
+Summary(pl.UTF-8):     Moduł obsługujący uspella dla Enchanta
 Group:         Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Provides:      %{name}-backend
 
 %description uspell
 uspell provider module for Enchant.
 
-%description uspell -l pl
-Modu³ obs³uguj±cy uspella dla Enchanta.
+%description uspell -l pl.UTF-8
+Moduł obsługujący uspella dla Enchanta.
+
+%package voikko
+Summary:       Voikko provider module for Enchant
+Summary(pl.UTF-8):     Moduł obsługujący backend voikko dla Enchanta
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Provides:      %{name}-backend
+
+%description voikko
+Voikko (Finnish) provider module for Enchant.
+
+%description voikko -l pl.UTF-8
+Moduł obsługujący backend voikko (fiński) dla Enchanta.
+
+%package zemberek
+Summary:       Zemberek provider module for Enchant
+Summary(pl.UTF-8):     Moduł obsługujący backend zemberek dla Enchanta
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      dbus-glib >= 0.62
+Provides:      %{name}-backend
+
+%description zemberek
+Zemberek (Turkish) provider module for Enchant.
+
+%description zemberek -l pl.UTF-8
+Moduł obsługujący backend zemberek (turecki) dla Enchanta.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+export CFLAGS="%{rpmcflags} -fpermissive"
+export CXXFLAGS="%{rpmcxxflags} -fpermissive"
 %configure \
-       --with-ispell-dir=/usr/lib/ispell \
+       --disable-binreloc \
+       %{!?with_static_libs:--disable-static} \
+       --enable-zemberek \
+       --with-ispell-dir=/usr/%{_lib}/ispell \
+       --with-myspell-dir=/usr/share/myspell \
        --with-uspell-dir=/usr/share/uspell
-# --with-myspell-dir=/some/where
 
 %{__make}
 
@@ -148,7 +223,7 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 # useless - modules loaded through libgmodule
-rm -f $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -158,36 +233,52 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS MAINTAINERS NEWS README TODO
+%doc AUTHORS MAINTAINERS NEWS README
 %attr(755,root,root) %{_bindir}/enchant
 %attr(755,root,root) %{_bindir}/enchant-lsmod
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libenchant.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libenchant.so.1
 %dir %{_libdir}/enchant
+%{_datadir}/enchant
 %{_mandir}/man1/enchant.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libenchant.so
+%{_libdir}/libenchant.la
 %{_includedir}/enchant
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/enchant.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libenchant.a
+%endif
 
 %files aspell
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so*
+%attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so
+
+%files hspell
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so
 
 %files ispell
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so*
+%attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so
 
 %files myspell
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so*
+%attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so
 
 %files uspell
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so*
+%attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so
+
+%files voikko
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/enchant/libenchant_voikko.so
+
+%files zemberek
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/enchant/libenchant_zemberek.so
This page took 0.693224 seconds and 4 git commands to generate.