]> git.pld-linux.org Git - packages/enchant.git/blobdiff - enchant.spec
- release 3 (rebuild with hunspell 1.7)
[packages/enchant.git] / enchant.spec
index 3927a06ff8a2003d559b025a19e06b9b10973c87..dec07c1d2e8811ea85e06293b3701b315ee21789 100644 (file)
@@ -5,21 +5,32 @@
 Summary:       libenchant - generic spell checking library
 Summary(pl.UTF-8):     libenchant - ogólna biblioteka sprawdzania pisowni
 Name:          enchant
-Version:       1.6.0
-Release:       1
+# version 2.x packaged as enchant2
+Version:       1.6.1
+Release:       3
 License:       LGPL v2
 Group:         Libraries
-Source0:       http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: de11011aff801dc61042828041fb59c7
-URL:           http://www.abisource.com/enchant/
+# 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
+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: libtool
+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)
 
@@ -156,17 +167,49 @@ uspell provider module for Enchant.
 %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}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
+export CFLAGS="%{rpmcflags} -fpermissive"
+export CXXFLAGS="%{rpmcxxflags} -fpermissive"
 %configure \
        --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
@@ -180,9 +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}
-#Zemberek is an open source Natural Language Processing library for Turkic languages
-rm -f $RPM_BUILD_ROOT%{_libdir}/enchant/libenchant_zemberek.so
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -192,7 +233,7 @@ 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}/libenchant.so.*.*.*
@@ -233,3 +274,11 @@ rm -rf $RPM_BUILD_ROOT
 %files uspell
 %defattr(644,root,root,755)
 %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.100345 seconds and 4 git commands to generate.