]> git.pld-linux.org Git - packages/dict-web1913.git/commitdiff
- Initital version
authorundefine <undefine@pld-linux.org>
Sat, 17 Mar 2001 16:33:57 +0000 (16:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-web1913.spec -> 1.1

dict-web1913.spec [new file with mode: 0644]

diff --git a/dict-web1913.spec b/dict-web1913.spec
new file mode 100644 (file)
index 0000000..cf67100
--- /dev/null
@@ -0,0 +1,58 @@
+%define         dictname web1913
+%define         dictversion 0.46-a
+Summary:       Webster's Revised Unabridged Dictionary
+Name:          dict-%{dictname}
+Version:       1.4
+Release:       1
+License:       Free to use, but see http://www.cogsci.princeton.edu/~wn/
+Group:         Applications/Dictionary
+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
+Requires:       dictd 
+Requires:      %{_sysconfdir}/dictd
+BuildArch:      noarch
+
+%description 
+
+%prep 
+%setup -q
+
+%build
+%configure --with-local-libmaa --with-datapath=%{dictname}-%{dictversion}
+%{__make}
+tar xfz %{SOURCE1}
+%{__make} db 
+
+%install
+rm -rf $RPM_BUILD_ROOT
+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/
+
+dictprefix=%{_datadir}/dictd/%{dictname}
+echo "# Webster's Revised Unabridged Dictionary
+database %{dictname} {
+    data  \"$dictprefix.dict.dz\"
+    index \"$dictprefix.index\" 
+}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%postun
+if [ -f /var/lock/subsys/dictd ]; then
+       /etc/rc.d/init.d/dictd restart 1>&2 || true
+fi
+
+%post
+if [ -f /var/lock/subsys/dictd ]; then
+       /etc/rc.d/init.d/dictd restart 1>&2
+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}*
This page took 0.079819 seconds and 4 git commands to generate.