X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=aspell.spec;h=99404ebe34414fb5d70c41a4b14bb5c86f2203e0;hb=a7f9bd699959a4a1e291bc4c0ec28416003088c1;hp=943a9b4836d54b8ead589b82a668b12f7bfa1987;hpb=2c5edb04009edf40a8bd66ced500856c2da3eaa9;p=packages%2Faspell.git diff --git a/aspell.spec b/aspell.spec index 943a9b4..99404eb 100644 --- a/aspell.spec +++ b/aspell.spec @@ -1,26 +1,30 @@ Summary: GNU Aspell is an Open Source spell checker -Summary(pl): GNU Aspell jest kontrolerem pisowni -Summary(pt_BR): Verificador ortográfico +Summary(pl.UTF-8): GNU Aspell jest kontrolerem pisowni +Summary(pt_BR.UTF-8): Verificador ortográfico Name: aspell -Version: 0.50.3 -Release: 1.1 -Epoch: 2 -License: LGPL +Version: 0.60.6.1 +Release: 4 +Epoch: 3 +License: LGPL v2 or v2.1 Group: Applications/Text -Vendor: Kevin Atkinson -Source0: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz -# Source0-md5: a3bf0d46303ffb0beab8121bbc3311a3 -Patch0: %{name}-assert.patch +Source0: http://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz +# Source0-md5: e66a9c9af6a60dc46134fdacf6ce97d7 +Patch0: %{name}-info.patch +Patch1: %{name}-ac.patch +#Patch2: %{name}-home_etc.patch URL: http://aspell.net/ -BuildRequires: autoconf +BuildRequires: autoconf >= 2.50 BuildRequires: automake +BuildRequires: gettext-tools >= 0.16.1 BuildRequires: libstdc++-devel -BuildRequires: libtool >= 2:1.4e-0.20021218.3 -BuildRequires: gettext-devel -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRequires: libtool >= 2:1.5 +BuildRequires: ncurses-devel +BuildRequires: texinfo +Requires: %{name}-libs = %{epoch}:%{version}-%{release} Provides: pspell = %{epoch}:%{version}-%{release} Obsoletes: libaspell15 Obsoletes: pspell +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GNU Aspell is a Free and Open Source spell checker designed to @@ -33,24 +37,37 @@ enhancements over Ispell such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once. -%description -l pl -GNU Aspell jest kontrolerem pisowni zaprojektowanym tak, by móc -zast±piæ ispella. Dodatkowo zawiera wsparcie dla innych jêzyków ni¿ -angielski. Interfejs aspella napisany zosta³ w C++, a interfejsy w -Perlu i C s± aktualnie rozwijane. +%description -l pl.UTF-8 +GNU Aspell jest kontrolerem pisowni zaprojektowanym tak, by móc +zastąpić ispella. Dodatkowo zawiera wsparcie dla innych języków niż +angielski. Interfejs aspella napisany został w C++, a interfejsy w +Perlu i C są aktualnie rozwijane. -%description -l pt_BR -GNU Aspell é um verificador ortográfico criado para substituir o -antigo "ispell". Sua principal vantagem (sobre o Ispell) é uma melhor -sugestão de correções. Aspell inclui suporte a vários idiomas e pode +%description -l pt_BR.UTF-8 +GNU Aspell é um verificador ortográfico criado para substituir o +antigo "ispell". Sua principal vantagem (sobre o Ispell) é uma melhor +sugestão de correções. Aspell inclui suporte a vários idiomas e pode fazer a checagem de arquivos LaTeX e HTML. +%package libs +Summary: aspell libraries +Summary(pl.UTF-8): Biblioteki aspella +Group: Libraries +Conflicts: aspell < 0.60.4-1.2 + +%description libs +aspell/pspell libraries + +%description libs -l pl.UTF-8 +Biblioteki aspell/pspell. + %package devel Summary: Header files for aspell development -Summary(pl): Pliki nag³ówkowe dla programistów u¿ywaj±cych aspella -Summary(pt_BR): Arquivos para desenvolvimento usando Aspell +Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających aspella +Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando Aspell Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name}-libs = %{epoch}:%{version}-%{release} +Requires: libstdc++-devel Provides: pspell-devel = %{epoch}:%{version}-%{release} Obsoletes: libaspell15-devel Obsoletes: pspell-devel @@ -59,85 +76,130 @@ Obsoletes: pspell-devel Aspell is an Open Source spell checker. This package contains header files for aspell development. -%description devel -l pl -Aspell jest kontrolerem pisowni. Ten pakiet zawiera pliki nag³ówkowe -dla programistów u¿ywaj±cych bibliotek aspella. +%description devel -l pl.UTF-8 +Aspell jest kontrolerem pisowni. Ten pakiet zawiera pliki nagłówkowe +dla programistów używających bibliotek aspella. -%description devel -l pt_BR -Aspell é um corretor ortográfico. O pacote -devel inclui bibliotecas -dinâmicas e arquivos de inclusão necessários para o desenvolvimento +%description devel -l pt_BR.UTF-8 +Aspell é um corretor ortográfico. O pacote -devel inclui bibliotecas +dinâmicas e arquivos de inclusão necessários para o desenvolvimento utilizando o aspell. %package static Summary: Static libraries for aspell development -Summary(pl): Biblioteki statyczne aspella -Summary(pt_BR): Bibliotecas estáticas para desenvolvimento usando Aspell +Summary(pl.UTF-8): Biblioteki statyczne aspella +Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento usando Aspell Group: Development/Libraries -Requires: %{name}-devel = %{version} -Obsoletes: pspell-static +Requires: %{name}-devel = %{epoch}:%{version}-%{release} Provides: pspell-static = %{epoch}:%{version}-%{release} +Obsoletes: pspell-static %description static Aspell is an Open Source spell checker. This package contains static aspell libraries. -%description static -l pl +%description static -l pl.UTF-8 Aspell jest kontrolerem pisowni. Pakiet ten zawiera biblioteki statyczne aspella. -%description static -l pt_BR -Aspell é um corretor ortográfico. O pacote -devel-static inclui as -bibliotecas estáticas necessárias para o desenvolvimento utilizando o +%description static -l pt_BR.UTF-8 +Aspell é um corretor ortográfico. O pacote -devel-static inclui as +bibliotecas estáticas necessárias para o desenvolvimento utilizando o aspell. %prep %setup -q -%patch -p1 +%patch0 -p1 +%patch1 -p1 +# home_etc patch is fubar. If HOME_ETC var is not defined, it tries to open +# such files: +# open("$HOME|.//.aspell.conf", O_RDONLY) = -1 ENOENT (No such file or directory) +# Disabled until someone fixes it. +#%%patch2 -p1 %build +%{__gettextize} %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__automake} %configure \ - --enable-shared \ - --enable-static + --enable-static \ + --enable-pkgdatadir=%{_datadir}/aspell \ + --enable-pkglibdir=%{_libdir}/aspell %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_libdir}/aspell %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT{%{_bindir}/run-with-aspell,%{_datadir}/aspell/{i,}spell} +rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%post -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%postun -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%files +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc README manual/aspell.html +%{_infodir}/aspell.info* +%attr(755,root,root) %{_bindir}/aspell +%attr(755,root,root) %{_bindir}/aspell-import +%attr(755,root,root) %{_bindir}/pre* +%attr(755,root,root) %{_bindir}/run-with-aspell +%attr(755,root,root) %{_bindir}/word-list-compress +%dir %{_datadir}/aspell +%attr(755,root,root) %{_datadir}/aspell/ispell +%attr(755,root,root) %{_datadir}/aspell/spell +%{_datadir}/aspell/*.cmap +%{_datadir}/aspell/*.cset +%{_datadir}/aspell/*.kbd +%{_mandir}/man1/aspell.1* +%{_mandir}/man1/aspell-import.1* +%{_mandir}/man1/pre*.1* +%{_mandir}/man1/run-with-aspell.1* +%{_mandir}/man1/word-list-compress.1* + +%files libs %defattr(644,root,root,755) -%doc README manual/man-html/*.{html,png,css} -%attr(755,root,root) %{_bindir}/a* -%attr(755,root,root) %{_bindir}/w* -%attr(755,root,root) %{_libdir}/lib*.so.*.* -%{_datadir}/aspell -%dir %{_libdir}/aspell +%attr(755,root,root) %{_libdir}/libaspell.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libaspell.so.15 +%attr(755,root,root) %{_libdir}/libpspell.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libpspell.so.15 +%{_libdir}/aspell %files devel %defattr(644,root,root,755) -%doc manual/dev-html/*.{html,png,css} -%attr(755,root,root) %{_bindir}/p* -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.la +%doc manual/aspell-dev.html +%attr(755,root,root) %{_bindir}/pspell-config +%attr(755,root,root) %{_libdir}/libaspell.so +%attr(755,root,root) %{_libdir}/libpspell.so +%{_libdir}/libaspell.la +%{_libdir}/libpspell.la %{_includedir}/pspell -%{_includedir}/*.h +%{_includedir}/aspell.h +%{_mandir}/man1/pspell-config.1* +%{_infodir}/aspell-dev.info* %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libaspell.a +%{_libdir}/libpspell.a