Summary: John Bouvier's Law Dictionary dated 1856 for the USA in the DICTD format
-Summary(pl): S³ownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD
+Summary(pl.UTF-8): Słownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD
Name: dict-bouvier
Version: 6
-Release: 2
+Release: 4
License: GPL
# it was downloaded from http://www.constitution.org/bouv/bouvier.htm
# Upstream Author(s): John Bouvier, 1856.
BuildRequires: dictzip
BuildRequires: python
BuildRequires: python-dictlib
-Requires: dictd
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: %{_sysconfdir}/dictd
+Requires: dictd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This is the 1856 Revised Sixth Edition of John Bouvier's law dictionary,
-formatted for use with the dictd server. It is an excellent, if dated,
-way to look up information about legal words and principles.
+This is the 1856 Revised Sixth Edition of John Bouvier's law
+dictionary, formatted for use with the dictd server. It is an
+excellent, if dated, way to look up information about legal words and
+principles.
-%description -l pl
-Jest to szóste wydanie s³ownika prawa amerykañskiego z 1856 roku,
-autorstwa Johna Bouviera. Jest wspania³ym ¼ród³em informacji o prawie
-z tamtych czasów.
+%description -l pl.UTF-8
+Jest to szóste wydanie słownika prawa amerykańskiego z 1856 roku,
+autorstwa Johna Bouviera. Jest wspaniałym źródłem informacji o prawie
+z tamtych czasów.
%prep
%setup -n %{name}-%{version}.revised.orig -q
%patch0 -p1
%build
-
python conv.py *.txt
%install
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%post
+%service -q dictd restart
%postun
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%files
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/bouvier*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/bouvier*
%{_datadir}/dictd/bouvier*