X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dict-misc.spec;h=d0aa85ee68ec009e1b924b9b5a7cb4789c58114f;hb=ff55cc40186c01927cf647f1ddb9f02f512fd3a1;hp=571d43ce915b2b88017c60830c6281b7814f7b35;hpb=b567dc1fa88fcbf480d54c1ea5caf97061cc6ac0;p=packages%2Fdict-misc.git diff --git a/dict-misc.spec b/dict-misc.spec index 571d43c..d0aa85e 100644 --- a/dict-misc.spec +++ b/dict-misc.spec @@ -1,117 +1,227 @@ -%define dictname misc -Summary: misc dictionaries for DICTD +%define dictname misc +Summary: Miscellaneous dictionaries for DICTD +Summary(pl): Ró¿ne s³owniki dla dictd Name: dict-%{dictname} Version: 1.5 -Release: 1 +Release: 14 License: GPL Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -URL: http://www.dict.org/ Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# Source0-md5: 74a41d916b76323482b273f8b53c31bf +Source1: http://dsl.org/faq/fjd/journo-1.1.tar.gz +# Source1-md5: e7ee9a7694e5640cca02da993839771a +Source2: http://wiretap.area.com/Gopher/Library/Classic/devils.txt +Source3: http://ptm.linux.pl/slownik +Source4: http://www.prime-project.org/dict/dict-world02--2003-02-15.tar.gz +# Source4-md5: 344bd453d17536e281f1874cfd318c7d +URL: http://www.dict.org/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: dictfmt BuildRequires: dictzip -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%description +%description This package contains misc dictionaries for use by the dictionary server in the dictd package. -%package -n dict-hitchcock -Summary: hitchcock dictionary for DICTD +%description -l pl +Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika +dictd. + +%package -n dict-devil +Summary: Devil's dictionary for DICTD +Summary(pl): S³ownik Devil's Dictionary dla dictd Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch -%description -n dict-hitchcock -This package contains hitchcock dictionaries for use by the dicitonary -server in the dictd package +%description -n dict-devil +This package contains The Devil's Dictionary, a cynical and irreverent +dictionary of common words, formatted for use by the dictionary server +in the dictd package. + +%description -n dict-devil -l pl +S³ownik The Devil's Dictionary, zawieraj±cy cyniczne i lekcewa¿±ce +opisy s³ów - do u¿ywania z serwerem s³ownika dictd. + +%package -n dict-easton +Summary: Easton's dictionary for DICTD +Summary(pl): S³ownik Eastona dla dictd +Group: Applications/Dictionaries +Requires: dictd +Requires: %{_sysconfdir}/dictd + +%description -n dict-easton +This package contains Easton's 1897 Bible Dictionary, based on M.G. +Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition, +published by Thomas Nelson, 1897, for use by the dictionary server in +the dictd package. -%package -n dict-world95 -Summary: world95 dictionary for DICTD +%description -n dict-easton -l pl +Ten pakiet zawiera s³ownik Easton's 1897 Bible Dictionary do u¿ywania +z serwerem s³ownika dictd. + +%package -n dict-elements +Summary: Elements dictionary for DICTD +Summary(pl): S³ownik pierwiastków dla dictd Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch -%description -n dict-world95 -This package contains world95 dictionaries for use by the dicitonary -server in the dictd package +%description -n dict-elements +This package contains a freely-distributed database of elemental +information, edited by Jay Kominek, for use by the dictionary server +in the dictd package. + +%description -n dict-elements -l pl +Ten pakiet zawiera bazê danych informacji o pierwiastkach, +przygotowan± przez Jaya Kominka, do u¿ywania z serwerem s³ownika +dictd. %package -n dict-foldoc -Summary: foldoc dictionary for DICTD +Summary: The Free On-line Dictionary of Computing for DICTD +Summary(pl): Darmowy s³ownik z dziedziny obliczeñ dla dictd Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch %description -n dict-foldoc -This package contains foldoc dictionaries for use by the dicitonary -server in the dictd package +This package contains The Free On-line Dictionary of Computing for use +by the dictionary server in the dictd package. -%package -n dict-easton -Summary: easton dictionary for DICTD +%description -n dict-foldoc -l pl +Ten pakiet zawiera s³ownik The Free On-line Dictionary of Computing do +u¿ywania z serwerem s³ownika dictd. + +%package -n dict-hitchcock +Summary: Hitchcock's dictionary for DICTD +Summary(pl): S³ownik Hitchcocka dla dictd Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch -%description -n dict-easton -This package contains easton dictionaries for use by the dicitonary -server in the dictd package +%description -n dict-hitchcock +This package contains Hitchcock's Bible Names Dictionary, derived from +Hitchcock's New and Complete Analysis of the Holy Bible, published in +the late 1800's, for use by the dictionary server in the dictd +package. + +%description -n dict-hitchcock -l pl +Ten pakiet zawiera s³ownik Hitchcock's Bible Names Dictionary do +u¿ywania z serwerem s³ownika dictd. + +%package -n dict-journo +Summary: Journalism dictionary for DICTD +Summary(pl): S³ownik Journalism dla dictd +Group: Applications/Dictionaries +Requires: dictd +Requires: %{_sysconfdir}/dictd -%package -n dict-elements -Summary: elements dictionary for DICTD +%description -n dict-journo +This package contains Free Journalism Dictionary for use by the +dictionary server in the dictd package. + +%description -n dict-journo -l pl +Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z +serwerem s³ownika dictd. + +%package -n dict-ptm +Summary: PTM dictionary for DICTD +Summary(pl): S³ownik PTM dla dictd Group: Applications/Dictionaries -Group(de): Applikationen/Wörterbücher -Group(pl): Aplikacje/S³owniki -Requires: dictd +Requires: dictd Requires: %{_sysconfdir}/dictd -BuildArch: noarch -%description -n dict-elements -This package contains elements dictionaries for use by the dicitonary -server in the dictd package +%description -n dict-ptm +This package contains dictionary created by Projekt Tlumaczenia +Manuali for use by the dicitonary server in the dictd package. + +%description -n dict-ptm -l pl +Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z +serwerem dictd. + +%package -n dict-CIAworldbook +Summary: CIAworldbook dictionary for DICTD +Summary(pl): S³ownik CIAworldbook dla dictd +Group: Applications/Dictionaries +URL: http://www.prime-project.org/dict/ +Requires: dictd +Requires: %{_sysconfdir}/dictd +Obsoletes: dict-world95 -%prep -%setup -q +%description -n dict-CIAworldbook +This package contains The 2002 CIA World Factbook for use by the +dictionary server in the dictd package. + +%description -n dict-CIAworldbook -l pl +Ten pakiet zawiera s³ownik The 2002 CIA World Factbook do u¿ywania z +serwerem s³ownika dictd. + +%prep +%setup -q -a1 -a4 +cp %{SOURCE2} ./ +cp %{SOURCE3} ./ %build -%configure -%{__make} db +%{__autoconf} +cp -f /usr/share/automake/install-sh . +cp -f /usr/share/automake/config.sub . +%configure +%{__make} db + +sed 's/^[[:alpha:]]\{2,\}$/:&:/' fjd/journalism.dict | \ + dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo +dictzip journo.dict + +sed 's/^[[:upper:]]\{2,\}/:&:/' devils.txt | \ + dictfmt -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \ + -s "The Devil's Dictionary (1881-1906)" devil +dictzip devil.dict + +#egrep -v "^#" slownik | tr -d \[\] | tr ê󱶳¿¼æñ eoaslzzcn | \ +egrep -v "^#" slownik | tr -d \[\] | \ + sed 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' | \ + dictfmt -j -u "http://ptm.linux.pl/slownik" \ + -s "Projekt Tlumaczenia Manuali" ptm +dictzip ptm.dict + +cd world02-2003-02-15 +dictzip world02.dict +cd .. %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} -%{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/" +install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}} + +%{__make} install \ + dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd +install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd +install world02-2003-02-15/world02.* $RPM_BUILD_ROOT%{_datadir}/dictd # jargon has separate package rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.* -for i in easton elements foldoc hitchcock world95; do +for i in easton elements foldoc hitchcock world02 journo ptm devil; do dictprefix=%{_datadir}/dictd/$i echo "# Misc Dictionaries - $i database $i { - data \"$dictprefix.dict.dz\" - index \"$dictprefix.index\" + data \"$dictprefix.dict.dz\" + index \"$dictprefix.index\" }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf done; %clean rm -rf $RPM_BUILD_ROOT -%postun -n dict-easton +%post -n dict-devil +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 +fi + +%postun -n dict-devil if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 || true fi @@ -121,8 +231,7 @@ if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 fi - -%postun -n dict-elements +%postun -n dict-easton if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 || true fi @@ -132,8 +241,7 @@ if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 fi - -%postun -n dict-foldoc +%postun -n dict-elements if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 || true fi @@ -143,52 +251,87 @@ if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 fi +%postun -n dict-foldoc +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 || true +fi + +%post -n dict-hitchcock +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 +fi %postun -n dict-hitchcock if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 || true fi -%post -n dict-hitchcock +%post -n dict-journo if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 fi +%postun -n dict-journo +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 +fi -%postun -n dict-world95 +%post -n dict-ptm if [ -f /var/lock/subsys/dictd ]; then - /etc/rc.d/init.d/dictd restart 1>&2 || true + /etc/rc.d/init.d/dictd restart 1>&2 +fi + +%postun -n dict-ptm +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 fi -%post -n dict-world95 +%post -n dict-CIAworldbook if [ -f /var/lock/subsys/dictd ]; then /etc/rc.d/init.d/dictd restart 1>&2 fi -%files +%postun -n dict-CIAworldbook +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 || true +fi + +%files -n dict-devil %defattr(644,root,root,755) +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf +%{_datadir}/dictd/devil.* -%files -n dict-hitchcock +%files -n dict-easton %defattr(644,root,root,755) -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf -%{_datadir}/dictd/hitchcock* +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf +%{_datadir}/dictd/easton.* -%files -n dict-world95 +%files -n dict-elements %defattr(644,root,root,755) -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world95.dictconf -%{_datadir}/dictd/world95.* +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf +%{_datadir}/dictd/elements.* %files -n dict-foldoc %defattr(644,root,root,755) %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/foldoc.dictconf %{_datadir}/dictd/foldoc.* -%files -n dict-easton +%files -n dict-hitchcock %defattr(644,root,root,755) -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf -%{_datadir}/dictd/easton* +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf +%{_datadir}/dictd/hitchcock.* -%files -n dict-elements +%files -n dict-journo %defattr(644,root,root,755) -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf -%{_datadir}/dictd/elements.* +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf +%{_datadir}/dictd/journo.* + +%files -n dict-ptm +%defattr(644,root,root,755) +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/ptm.dictconf +%{_datadir}/dictd/ptm.* + +%files -n dict-CIAworldbook +%defattr(644,root,root,755) +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world02.dictconf +%{_datadir}/dictd/world02.*