]> git.pld-linux.org Git - packages/dict-web1913.git/blobdiff - dict-web1913.spec
- cosmetics,
[packages/dict-web1913.git] / dict-web1913.spec
index cf671009e6f9f02f6f9078d4444bd6ffa4dc1401..3642e13a56cfb082348c9bc27d2439a6ece7f3f6 100644 (file)
@@ -1,58 +1,72 @@
 %define         dictname web1913
 %define         dictversion 0.46-a
 Summary:       Webster's Revised Unabridged Dictionary
+Summary(pl):   S³ownik Webster's Revised Unabridged Dictionary
 Name:          dict-%{dictname}
 Version:       1.4
-Release:       1
+Release:       2
 License:       Free to use, but see http://www.cogsci.princeton.edu/~wn/
-Group:         Applications/Dictionary
-URL:           http://www.dict.org/
+Group:         Applications/Dictionaries
 Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
 Source1:       ftp://ftp.dict.org/pub/dict/%{dictname}-%{dictversion}.tar.gz
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-BuildRequires:  dictzip
-Requires:       dictd 
+URL:           http://www.dict.org/
+BuildRequires: autoconf
+BuildRequires: bison
+BuildRequires: dictzip
+BuildRequires: flex
+Requires:      dictd
 Requires:      %{_sysconfdir}/dictd
-BuildArch:      noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description 
+%description
+Webster's Revised Unabridged Dictionary (1913).
 
-%prep 
+%description -l pl
+S³ownik Webstera (angielsko-angielski): Webster's Revised Unabridged
+Dictionary (1913).
+
+%prep
 %setup -q
 
 %build
-%configure --with-local-libmaa --with-datapath=%{dictname}-%{dictversion}
+%{__autoconf}
+cd libmaa
+%{__autoconf}
+cd ..
+%configure \
+       --with-local-libmaa \
+       --with-datapath=%{dictname}-%{dictversion}
 %{__make}
 tar xfz %{SOURCE1}
-%{__make} db 
+%{__make} db
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
+install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
 #make install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
-install %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd/
+install %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
 
 dictprefix=%{_datadir}/dictd/%{dictname}
 echo "# Webster's Revised Unabridged Dictionary
 database %{dictname} {
-    data  \"$dictprefix.dict.dz\"
-    index \"$dictprefix.index\" 
+       data  \"$dictprefix.dict.dz\"
+       index \"$dictprefix.index\"
 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
 
 %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.082117 seconds and 4 git commands to generate.