X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dict-web1913.spec;h=7aa89149eaa0f584c507e31981493a0723b2f163;hb=8d156b971df71308422d24a65223cf9a4b7ec959;hp=40f0715cf7ef37b0b5aa30c9f30447e8c7887ffe;hpb=c25b0d1bfa227a6d4c564ce608a32e463e17c2c0;p=packages%2Fdict-web1913.git diff --git a/dict-web1913.spec b/dict-web1913.spec index 40f0715..7aa8914 100644 --- a/dict-web1913.spec +++ b/dict-web1913.spec @@ -1,22 +1,24 @@ -%define dictname web1913 -%define dictversion 0.46-a +%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: 2 +Release: 4 License: Free to use, but see http://www.cogsci.princeton.edu/~wn/ Group: Applications/Dictionaries -URL: http://www.dict.org/ 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 +Patch0: %{name}-ac.patch +Patch1: %{name}-sparc.patch +URL: http://www.dict.org/ BuildRequires: autoconf -BuildRequires: flex BuildRequires: bison +BuildRequires: dictzip +BuildRequires: flex Requires: dictd Requires: %{_sysconfdir}/dictd +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Webster's Revised Unabridged Dictionary (1913). @@ -27,11 +29,17 @@ Dictionary (1913). %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build -autoconf -(cd libmaa; autoconf) -%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 @@ -45,8 +53,8 @@ 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 @@ -58,11 +66,11 @@ if [ -f /var/lock/subsys/dictd ]; then fi %postun -if [ "$1" = "0" -a -f /var/lock/subsys/dictd ]; then +if [ -f /var/lock/subsys/dictd ]; then /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}.*