]> git.pld-linux.org Git - packages/dict-misc.git/blobdiff - dict-misc.spec
- it's possible to put URL for subpackages, so let's do it in -CIAworldbook
[packages/dict-misc.git] / dict-misc.spec
index 84c3d8577575abbfd91d737dc5db0210a5cbab29..f6ba5675c5a3eb90ffb33da51979728af395a071 100644 (file)
@@ -1,22 +1,26 @@
-%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
 Summary(pl):   Ró¿ne s³owniki dla dictd
 Name:          dict-%{dictname}
 Version:       1.5
-Release:       1
+Release:       11
 License:       GPL
 Group:         Applications/Dictionaries
 Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
 Source1:       http://dsl.org/faq/fjd/journo-1.1.tar.gz
 License:       GPL
 Group:         Applications/Dictionaries
 Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
 Source1:       http://dsl.org/faq/fjd/journo-1.1.tar.gz
-Source2:    http://wiretap.area.com/Gopher/Library/Classic/devils.txt
+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
 URL:           http://www.dict.org/
 BuildRequires: autoconf
 URL:           http://www.dict.org/
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: dictfmt
 BuildRequires: dictzip
 Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRequires: dictzip
 Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 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.
 
 This package contains misc dictionaries for use by the dictionary
 server in the dictd package.
 
@@ -25,8 +29,8 @@ Ten pakiet zawiera r
 dictd.
 
 %package -n dict-devil
 dictd.
 
 %package -n dict-devil
-Summary:       Devils dictionary for DICTD
-Summary(pl):   S³ownik Devils dla dictd
+Summary:       Devil's dictionary for DICTD
+Summary(pl):   S³ownik Devil's Dictionary dla dictd
 Group:         Applications/Dictionaries
 Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 Group:         Applications/Dictionaries
 Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
@@ -44,61 +48,67 @@ opisy s
 Summary:       easton dictionary for DICTD
 Summary(pl):   S³ownik easton dla dictd
 Group:         Applications/Dictionaries
 Summary:       easton dictionary for DICTD
 Summary(pl):   S³ownik easton dla dictd
 Group:         Applications/Dictionaries
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-easton
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-easton
-This package contains easton dictionaries for use by the dicitonary
-server in the dictd package.
+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.
 
 %description -n dict-easton -l pl
 
 %description -n dict-easton -l pl
-Ten pakiet zawiera s³ownik easton do u¿ywania z serwerem s³ownika
-dictd.
+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 elements dla dictd
 Group:         Applications/Dictionaries
 
 %package -n dict-elements
 Summary:       elements dictionary for DICTD
 Summary(pl):   S³ownik elements dla dictd
 Group:         Applications/Dictionaries
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-elements
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-elements
-This package contains elements dictionaries for use by the dicitonary
-server in the dictd package.
+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
 
 %description -n dict-elements -l pl
-Ten pakiet zawiera s³ownik elements do u¿ywania z serwerem s³ownika
+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(pl):   S³ownik foldoc dla dictd
 Group:         Applications/Dictionaries
 dictd.
 
 %package -n dict-foldoc
 Summary:       foldoc dictionary for DICTD
 Summary(pl):   S³ownik foldoc dla dictd
 Group:         Applications/Dictionaries
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-foldoc
 Requires:      %{_sysconfdir}/dictd
 
 %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.
 
 %description -n dict-foldoc -l pl
 
 %description -n dict-foldoc -l pl
-Ten pakiet zawiera s³ownik foldoc do u¿ywania z serwerem s³ownika
-dictd.
+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 dictionary for DICTD
 Summary(pl):   S³ownik hitchcock dla dictd
 Group:         Applications/Dictionaries
 
 %package -n dict-hitchcock
 Summary:       hitchcock dictionary for DICTD
 Summary(pl):   S³ownik hitchcock dla dictd
 Group:         Applications/Dictionaries
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-hitchcock
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-hitchcock
-This package contains hitchcock dictionaries for use by the dicitonary
-server in the dictd package.
+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
 
 %description -n dict-hitchcock -l pl
-Ten pakiet zawiera s³ownik hitchcock do u¿ywania z serwerem s³ownika
-dictd.
+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
 
 %package -n dict-journo
 Summary:       Journalism dictionary for DICTD
@@ -108,79 +118,93 @@ Requires: dictd
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-journo
 Requires:      %{_sysconfdir}/dictd
 
 %description -n dict-journo
-This package contains journo dictionaries for use by the dicitonary
-server in the dictd package.
+This package contains Free Journalism Dictionary for use by the
+dictionary server in the dictd package.
 
 %description -n dict-journo -l pl
 
 %description -n dict-journo -l pl
-Ten pakiet zawiera s³ownik journo do u¿ywania z serwerem s³ownika
-dictd.
+Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z
+serwerem s³ownika dictd.
 
 
-%package -n dict-world95
-Summary:       world95 dictionary for DICTD
-Summary(pl):   S³ownik world95 dla dictd
+%package -n dict-ptm
+Summary:       PTM dictionary for DICTD
+Summary(pl):   S³ownik PTM dla dictd
 Group:         Applications/Dictionaries
 Group:         Applications/Dictionaries
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
 
 Requires:      %{_sysconfdir}/dictd
 
-%description -n dict-world95
-This package contains world95 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-world95 -l pl
-Ten pakiet zawiera s³ownik world95 do u¿ywania z serwerem s³ownika
-dictd.
+%description -n dict-ptm -l pl
+Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
+serwerem dictd.
 
 
-%package -n dict-fmt
-Summary:    Dict file formater for DICTD
-Summary(pl):    Obrabiarka plików dla dictda
-Group:      Applications/Dictionaries
-Requires:   %{_sysconfdir}/dictd
-Provides: dictfmt
+%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
 
 
-%description -n dict-fmt
-This package contains dictfmt, util for formater for files used aferwards
-by the dictionary server from the dictd package.
+%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-devil -l pl
-Narzêdzia do obróbki plików u¿ywanych pó¼niej przez serwer z pakietu dictd.
+%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 
+%prep
+%setup -q -a1 -a4
 cp %{SOURCE2} ./
 cp %{SOURCE2} ./
+cp %{SOURCE3} ./
 
 %build
 
 %build
-autoconf
-%configure 
-%{__make} db 
-
-
-sed  -e 's/^[[:alpha:]]\{2,\}$/:&:/' < journo-1.1/journalism.dict \
-    > journalism.txt
-./dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo < journalism.txt
+%{__autoconf}
+cp -f %{_datadir}/automake/install-sh .
+cp -f %{_datadir}/automake/config.sub .
+%configure
+%{__make} db
+
+sed 's/^[[:alpha:]]\{2,\}$/:&:/' journo-1.1/journalism.dict | \
+       dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo
 dictzip journo.dict
 
 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
-
+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
 
 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,%{_bindir}}
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
-%{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
-install journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd/
-install dictfmt $RPM_BUILD_ROOT%{_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.*
 
 
 # jargon has separate package
 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
 
-for i in easton elements foldoc hitchcock world95 journo devil; do
+for i in easton elements foldoc hitchcock world02 journo ptm devil; do
 dictprefix=%{_datadir}/dictd/$i
 echo "# Misc Dictionaries - $i
 database $i {
 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;
 
 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
 done;
 
@@ -189,12 +213,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %post -n dict-devil
 if [ -f /var/lock/subsys/dictd ]; then
 
 %post -n dict-devil
 if [ -f /var/lock/subsys/dictd ]; then
-    /etc/rc.d/init.d/dictd restart 1>&2
+       /etc/rc.d/init.d/dictd restart 1>&2
 fi
 
 %postun -n dict-devil
 if [ -f /var/lock/subsys/dictd ]; then
 fi
 
 %postun -n dict-devil
 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 || true
 fi
 
 %post -n dict-easton
 fi
 
 %post -n dict-easton
@@ -247,12 +271,22 @@ if [ -f /var/lock/subsys/dictd ]; then
        /etc/rc.d/init.d/dictd restart 1>&2
 fi
 
        /etc/rc.d/init.d/dictd restart 1>&2
 fi
 
-%post -n dict-world95
+%post -n dict-ptm
+if [ -f /var/lock/subsys/dictd ]; then
+       /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-CIAworldbook
 if [ -f /var/lock/subsys/dictd ]; then
        /etc/rc.d/init.d/dictd restart 1>&2
 fi
 
 if [ -f /var/lock/subsys/dictd ]; then
        /etc/rc.d/init.d/dictd restart 1>&2
 fi
 
-%postun -n dict-world95
+%postun -n dict-CIAworldbook
 if [ -f /var/lock/subsys/dictd ]; then
        /etc/rc.d/init.d/dictd restart 1>&2 || true
 fi
 if [ -f /var/lock/subsys/dictd ]; then
        /etc/rc.d/init.d/dictd restart 1>&2 || true
 fi
@@ -261,11 +295,11 @@ fi
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf
 %{_datadir}/dictd/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-easton
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
 %files -n dict-easton
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
-%{_datadir}/dictd/easton*
+%{_datadir}/dictd/easton.*
 
 %files -n dict-elements
 %defattr(644,root,root,755)
 
 %files -n dict-elements
 %defattr(644,root,root,755)
@@ -280,18 +314,19 @@ fi
 %files -n dict-hitchcock
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
 %files -n dict-hitchcock
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
-%{_datadir}/dictd/hitchcock*
+%{_datadir}/dictd/hitchcock.*
 
 %files -n dict-journo
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
 %{_datadir}/dictd/journo.*
 
 
 %files -n dict-journo
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
 %{_datadir}/dictd/journo.*
 
-%files -n dict-world95
+%files -n dict-ptm
 %defattr(644,root,root,755)
 %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-fmt
+%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)
 %defattr(644,root,root,755)
-%{_bindir}/dictfmt
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world02.dictconf
+%{_datadir}/dictd/world02.*
This page took 0.12235 seconds and 4 git commands to generate.