]> git.pld-linux.org Git - packages/dict-bouvier.git/blob - dict-bouvier.spec
-should build now.
[packages/dict-bouvier.git] / dict-bouvier.spec
1 Summary:        John Bouvier's Law Dictionary dated 1856 for the USA in the DICTD format
2 Summary(pl):    S³ownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD
3 Name:           dict-bouvier
4 Version:        6
5 Release:        2
6 License:        GPL
7 # it was downloaded from http://www.constitution.org/bouv/bouvier.htm
8 # Upstream Author(s): John Bouvier, 1856.
9 # Copyright claims to this work have expired; it is now public domain.
10 # so it's compatible w/ Gnu GPL ???
11 Group:          Applications/Dictionaries
12 Source0:        %{name}_%{version}.tar.gz
13 Patch0:         %{name}_%{version}.revised-1.diff
14 # from debian
15 URL:            http://www.constitution.org/bouv/bouvier.htm
16 BuildRequires:  dictzip
17 BuildRequires:  python
18 BuildRequires:  python-dictlib
19 Requires:       dictd
20 Requires:       %{_sysconfdir}/dictd
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This is the 1856 Revised Sixth Edition of John Bouvier's law dictionary,
25 formatted for use with the dictd server.  It is an excellent, if dated,
26 way to look up information about legal words and principles.
27
28 %description -l pl
29 Jest to szóste wydanie s³ownika prawa amerykañskiego z 1856 roku,
30 autorstwa Johna Bouviera. Jest wspania³ym ¼ród³em informacji o prawie
31 z tamtych czasów.
32
33 %prep
34 %setup -n %{name}-%{version}.revised.orig -q
35 %patch0 -p1
36
37 %build
38
39 python conv.py *.txt
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post 
49 if [ -f /var/lock/subsys/dictd ]; then
50         /etc/rc.d/init.d/dictd restart 1>&2
51 fi
52
53 %postun
54 if [ -f /var/lock/subsys/dictd ]; then
55         /etc/rc.d/init.d/dictd restart 1>&2 || true
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/bouvier*
61 %{_datadir}/dictd/bouvier*
This page took 0.130475 seconds and 4 git commands to generate.