2011-05-30 19:40:07 +02:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: dictd
|
2012-10-14 05:20:27 +02:00
|
|
|
Version: 1.12.1
|
2011-05-30 19:40:07 +02:00
|
|
|
Release: 1
|
2012-10-14 05:20:27 +02:00
|
|
|
License: GPL-2.0+
|
2011-05-30 19:40:07 +02:00
|
|
|
Summary: Electronic Online Dictionaries
|
|
|
|
Url: http://www.dict.org
|
|
|
|
Group: Productivity/Office/Dictionary
|
2012-10-14 05:20:27 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2011-05-30 19:40:07 +02:00
|
|
|
Source2: dictd.init
|
|
|
|
Source3: colorit.conf
|
2012-10-14 05:20:27 +02:00
|
|
|
BuildRequires: libmaa-devel
|
|
|
|
BuildRequires: zlib-devel
|
2011-05-30 19:40:07 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2012-10-14 05:20:27 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libtool
|
2011-05-30 19:40:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-10-14 05:20:27 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-05-30 19:40:07 +02:00
|
|
|
Requires(pre): %insserv_prereq %fillup_prereq
|
2012-10-14 05:20:27 +02:00
|
|
|
%endif
|
2011-05-30 19:40:07 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains two programs. With dict, you have access to
|
|
|
|
powerful electronic dictionaries on the Internet. With dictd, you can
|
|
|
|
set up your own dictionary. To look up, for example, the word 'grunt',
|
|
|
|
just type "dict grunt" at a command line. See the man pages of dict and
|
|
|
|
dictd for details.
|
|
|
|
|
2012-02-15 22:44:00 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for dictd
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for dictd (header files).
|
|
|
|
|
2011-05-30 19:40:07 +02:00
|
|
|
%prep
|
2012-10-14 05:20:27 +02:00
|
|
|
%setup -q
|
2011-05-30 19:40:07 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
install -D -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/dictd
|
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/colorit.conf
|
|
|
|
ln -sf /etc/init.d/dictd %{buildroot}%{_sbindir}/rcdictd
|
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_and_insserv dictd
|
|
|
|
touch %{_localstatedir}/log/dictd
|
|
|
|
chown nobody:nogroup %{_localstatedir}/log/dictd
|
|
|
|
chmod 644 %{_localstatedir}/log/dictd
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal dictd
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update dictd
|
|
|
|
%insserv_cleanup
|
|
|
|
rm -rf %{_localstatedir}/log/dictd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ANNOUNCE COPYING ChangeLog NEWS README TODO example*
|
|
|
|
%doc doc/dicf.ms doc/rfc.ms doc/rfc2229.txt doc/security.doc
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/colorit.conf
|
|
|
|
%config %{_sysconfdir}/init.d/dictd
|
2012-02-15 22:44:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-05-30 19:40:07 +02:00
|
|
|
%{_includedir}/dict*
|
|
|
|
|
2012-10-14 05:20:27 +02:00
|
|
|
%changelog
|