]> git.pld-linux.org Git - packages/dict-jargon.git/commitdiff
- new from scratch
authormis <mis@pld-linux.org>
Wed, 19 Jul 2000 17:47:37 +0000 (17:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-jargon.spec -> 1.1

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

diff --git a/dict-jargon.spec b/dict-jargon.spec
new file mode 100644 (file)
index 0000000..52e49b1
--- /dev/null
@@ -0,0 +1,49 @@
+%define         dictname jargon
+Summary:       The On-Line Hacker Jargon File dictionary for dictd
+Name:          dict-%{dictname}
+Version:       4.2.0
+Release:       1
+License:       GPL
+Group:         Applications/Dictionary
+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
+Requires:       dictd 
+BuildArch:      noarch
+
+%description 
+This package contains The On-Line Hacker Jargon File, version 4.2.0,                     formatted for use by the dictionary server in the dictd package.
+
+%prep
+%setup -q
+
+%build
+%configure 
+%{__make} db 
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/dictd/
+
+DICTDIR="$RPM_BUILD_ROOT%{_datadir}/dictd/"
+make install dictdir="$DICTDIR" 
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+prefix=%{_datadir}/dictd/%{dictname}
+
+if ! grep ' %{dictname} ' /etc/dictd.conf >/dev/null; then 
+   echo "Edit /etc/dictd.conf to see %{dictname} dictionary under dictd"
+echo "# Uncommment this to configure The On-Line Hacker Jargon File dictionary
+#database %{dictname} {
+#    data  \"$prefix.dict.dz\"
+#    index \"$prefix.index\" }
+" >> /etc/dictd.conf
+fi
+
+%files
+%defattr(644,root,root,755)
+%{_datadir}/dictd/%{dictname}*
This page took 0.137075 seconds and 4 git commands to generate.