]> git.pld-linux.org Git - packages/dict-bouvier.git/blob - dict-bouvier.spec
- Revision and Date, use macros (but %%install still missing...)
[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:  dictfmt
17 BuildRequires:  dictzip
18 BuildRequires:  python
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 Ediition 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
35 %patch0 -p1
36
37 %build
38
39 # ./conv.py ???
40 # ???
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
45
46 #database $i {
47 #       data  \"$dictprefix.dict.dz\"
48 #       index \"$dictprefix.index\"
49 #}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}-$i.dictconf
50 #       install %{dictname}_$i.* $RPM_BUILD_ROOT%{_datadir}/dictd/
51 #done
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post 
57 if [ -f /var/lock/subsys/dictd ]; then
58         /etc/rc.d/init.d/dictd restart 1>&2
59 fi
60
61 %postun
62 if [ -f /var/lock/subsys/dictd ]; then
63         /etc/rc.d/init.d/dictd restart 1>&2 || true
64 fi
65
66 %files
67 %defattr(644,root,root,755)
68 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict6}.dictconf
69 %{_datadir}/dictd/%{dictname}_%{dict6}.*
This page took 0.085092 seconds and 4 git commands to generate.