]> git.pld-linux.org Git - packages/dict-bouvier.git/blobdiff - dict-bouvier.spec
- rel 4 (use %service)
[packages/dict-bouvier.git] / dict-bouvier.spec
index 0c22b4318566239971c88cf2b494e60e487733fd..2b57a4d4d85641c8543f58134eae429590e571b3 100644 (file)
@@ -1,70 +1,61 @@
-#  $Id: dict-bouvier.spec,v 1.3 2002-10-24 13:19:49 qboosh Exp $
 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:       1
-Release:       2
+Version:       6
+Release:       4
 License:       GPL
 # it was downloaded from http://www.constitution.org/bouv/bouvier.htm
 # Upstream Author(s): John Bouvier, 1856.
 # Copyright claims to this work have expired; it is now public domain.
 # so it's compatible w/ Gnu GPL ???
 Group:         Applications/Dictionaries
-Source0:       dict-bouvier_6.tar.gz
-Patch0:                dict-bouvier_6.revised-1.diff 
+Source0:       %{name}_%{version}.tar.gz
+# Source0-md5: 1c03c5338e6fb5223b0ce341d0ca38ac
+Patch0:                %{name}_%{version}.revised-1.diff
 # from debian
 URL:           http://www.constitution.org/bouv/bouvier.htm
-BuildRequires: dictfmt
 BuildRequires: dictzip
 BuildRequires: python
-Requires:      dictd
+BuildRequires: python-dictlib
+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 Ediition 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 dict-bouvier-6.revised.orig
+%setup -n %{name}-%{version}.revised.orig -q
 %patch0 -p1
 
 %build
-
-# ./conv.py ???
-# ???
+python conv.py *.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
 
-#database $i {
-#      data  \"$dictprefix.dict.dz\"
-#      index \"$dictprefix.index\"
-#}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}-$i.dictconf
-#      install %{dictname}_$i.* $RPM_BUILD_ROOT%{_datadir}/dictd/
-#done
-
 %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/%{dictname}-%{dict6}.dictconf
-%{_datadir}/dictd/%{dictname}_%{dict6}.*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/bouvier*
+%{_datadir}/dictd/bouvier*
This page took 0.035283 seconds and 4 git commands to generate.