]> git.pld-linux.org Git - packages/dict-bouvier.git/blob - dict-bouvier.spec
- mass commit: cosmetics (removed trailing white spaces)
[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 # Source0-md5:  1c03c5338e6fb5223b0ce341d0ca38ac
14 Patch0:         %{name}_%{version}.revised-1.diff
15 # from debian
16 URL:            http://www.constitution.org/bouv/bouvier.htm
17 BuildRequires:  dictzip
18 BuildRequires:  python
19 BuildRequires:  python-dictlib
20 Requires:       dictd
21 Requires:       %{_sysconfdir}/dictd
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This is the 1856 Revised Sixth Edition of John Bouvier's law dictionary,
26 formatted for use with the dictd server.  It is an excellent, if dated,
27 way to look up information about legal words and principles.
28
29 %description -l pl
30 Jest to szóste wydanie s³ownika prawa amerykañskiego z 1856 roku,
31 autorstwa Johna Bouviera. Jest wspania³ym ¼ród³em informacji o prawie
32 z tamtych czasów.
33
34 %prep
35 %setup -n %{name}-%{version}.revised.orig -q
36 %patch0 -p1
37
38 %build
39
40 python conv.py *.txt
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 if [ -f /var/lock/subsys/dictd ]; then
51         /etc/rc.d/init.d/dictd restart 1>&2
52 fi
53
54 %postun
55 if [ -f /var/lock/subsys/dictd ]; then
56         /etc/rc.d/init.d/dictd restart 1>&2 || true
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/bouvier*
62 %{_datadir}/dictd/bouvier*
This page took 0.033925 seconds and 3 git commands to generate.