]> git.pld-linux.org Git - packages/dict-wn.git/blobdiff - dict-wn.spec
- forced my version of 1.7a:
[packages/dict-wn.git] / dict-wn.spec
index ab6cfb875f05109cab2a041e198f4750b583154f..60ab4663229c6b22e89970a7587835afbd90e209 100644 (file)
@@ -1,58 +1,54 @@
 %define                dictname wn
-Summary:       WordNet lexical reference system formatted as dictionary for dictd
-Name:          dict-wn
-Version:       1.5
-Release:       2
+Summary:       WordNet lexical reference system for dictd
+Summary(pl):   System referencji s³ownikowych WordNet dla dictd
+Name:          dict-%{dictname}
+Version:       1.7a
+Release:       1
 License:       Free to use, but see http://www.cogsci.princeton.edu/~wn/
 Group:         Applications/Dictionaries
-Group(de):     Applikationen/Wörterbücher
-Group(pl):     Aplikacje/S³owniki
+Source0:       ftp://ftp.dict.org/pub/dict/pre/%{name}_%{version}.tar.gz
 URL:           http://www.dict.org/
-Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-BuildRequires: dictzip
-BuildRequires: autoconf
-Requires:      dictd 
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description 
-This package contains WordNet (r) 1.6 Lexical Database formatted for
+%description
+This package contains WordNet (r) %version Lexical Database formatted for
 use by the dictionary server in the dictd package.
 
-%prep 
-%setup -q
+%description -l pl
+Ten pakiet zawiera leksykaln± bazê danych WordNet (r) %version sformatowan±
+do u¿ywania z serwerem s³ownika dictd.
 
-%build
-autoconf
-%configure 
-%{__make} db 
+%prep
+%setup -c -q
 
 %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}
 
-dictprefix=%{_datadir}/dictd/wn
-echo "# WordNet 1.6 Lexical Database dictionary
+dictprefix=%{_datadir}/dictd/%{dictname}
+echo "# WordNet %version Lexical Database dictionary
 database %{dictname} {
-    data  \"$dictprefix.dict.dz\"
-    index \"$dictprefix.index\" 
+       data  \"$dictprefix.dict.dz\"
+       index \"$dictprefix.index\"
 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
+mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%postun
+%post
 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
 
-%post
+%postun
 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 || true
 fi
 
 %files
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
-%{_datadir}/dictd/%{dictname}*
+%{_datadir}/dictd/%{dictname}.*
This page took 0.067489 seconds and 4 git commands to generate.