]>
Commit | Line | Data |
---|---|---|
1 | Summary: John Bouvier's Law Dictionary dated 1856 for the USA in the DICTD format | |
2 | Summary(pl.UTF-8): Słownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD | |
3 | Name: dict-bouvier | |
4 | Version: 6 | |
5 | Release: 4 | |
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 | BuildRequires: rpmbuild(macros) >= 1.268 | |
21 | Requires: %{_sysconfdir}/dictd | |
22 | Requires: dictd | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This is the 1856 Revised Sixth Edition of John Bouvier's law | |
27 | dictionary, formatted for use with the dictd server. It is an | |
28 | excellent, if dated, way to look up information about legal words and | |
29 | principles. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Jest to szóste wydanie słownika prawa amerykańskiego z 1856 roku, | |
33 | autorstwa Johna Bouviera. Jest wspaniałym źródłem informacji o prawie | |
34 | z tamtych czasów. | |
35 | ||
36 | %prep | |
37 | %setup -n %{name}-%{version}.revised.orig -q | |
38 | %patch0 -p1 | |
39 | ||
40 | %build | |
41 | python conv.py *.txt | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
51 | %service -q dictd restart | |
52 | ||
53 | %postun | |
54 | if [ "$1" = 0 ]; then | |
55 | %service -q dictd restart | |
56 | fi | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/bouvier* | |
61 | %{_datadir}/dictd/bouvier* |