]>
Commit | Line | Data |
---|---|---|
985ca0c9 | 1 | Summary: John Bouvier's Law Dictionary dated 1856 for the USA in the DICTD format |
76dc1836 | 2 | Summary(pl.UTF-8): Słownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD |
1ccfdf7a | 3 | Name: dict-bouvier |
816ed1e9 | 4 | Version: 6 |
d7a5f0fa | 5 | Release: 3 |
1ccfdf7a | 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 | |
816ed1e9 | 12 | Source0: %{name}_%{version}.tar.gz |
142b9ee0 | 13 | # Source0-md5: 1c03c5338e6fb5223b0ce341d0ca38ac |
816ed1e9 | 14 | Patch0: %{name}_%{version}.revised-1.diff |
1ccfdf7a | 15 | # from debian |
16 | URL: http://www.constitution.org/bouv/bouvier.htm | |
1ccfdf7a | 17 | BuildRequires: dictzip |
18 | BuildRequires: python | |
228868fe | 19 | BuildRequires: python-dictlib |
1ccfdf7a | 20 | Requires: %{_sysconfdir}/dictd |
ace4f33c | 21 | Requires: dictd |
1ccfdf7a | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
ace4f33c ER |
25 | This is the 1856 Revised Sixth Edition of John Bouvier's law |
26 | dictionary, formatted for use with the dictd server. It is an | |
27 | excellent, if dated, way to look up information about legal words and | |
28 | principles. | |
1ccfdf7a | 29 | |
76dc1836 JR |
30 | %description -l pl.UTF-8 |
31 | Jest to szóste wydanie słownika prawa amerykańskiego z 1856 roku, | |
32 | autorstwa Johna Bouviera. Jest wspaniałym źródłem informacji o prawie | |
33 | z tamtych czasów. | |
1ccfdf7a | 34 | |
35 | %prep | |
228868fe | 36 | %setup -n %{name}-%{version}.revised.orig -q |
1ccfdf7a | 37 | %patch0 -p1 |
38 | ||
39 | %build | |
40 | ||
228868fe | 41 | python conv.py *.txt |
1ccfdf7a | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} | |
46 | ||
1ccfdf7a | 47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
2f8cfc0c | 50 | %post |
1ccfdf7a | 51 | if [ -f /var/lock/subsys/dictd ]; then |
52 | /etc/rc.d/init.d/dictd restart 1>&2 | |
53 | fi | |
54 | ||
55 | %postun | |
56 | if [ -f /var/lock/subsys/dictd ]; then | |
57 | /etc/rc.d/init.d/dictd restart 1>&2 || true | |
58 | fi | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
ace4f33c | 62 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/bouvier* |
228868fe | 63 | %{_datadir}/dictd/bouvier* |