]> git.pld-linux.org Git - packages/dict-gazetteer.git/blob - dict-gazetteer.spec
- massive attack: source-md5
[packages/dict-gazetteer.git] / dict-gazetteer.spec
1 %define         dictname gazetteer
2 Summary:        U.S. Gazetteer for dictd
3 Summary(pl):    S³ownik nazw geograficznych w USA dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.3
6 Release:        3
7 License:        GPL
8 Group:          Applications/Dictionaries
9 Source0:        ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 # Source0-md5:  e87c468992693aebea7cbbd6261e45e2
11 Patch0:         %{name}-linux-sparc.patch
12 URL:            http://www.dict.org/
13 BuildRequires:  autoconf
14 BuildRequires:  dictzip
15 Requires:       dictd
16 Requires:       %{_sysconfdir}/dictd
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains place names, population and location information
21 provided by the U.S. Census Bureau, formatted for use by dictionary
22 server in the dictd package. Zip Code information has been merged with
23 the place name data.
24
25 %description -l pl
26 Pakiet zawiera nazwy miejsc, populacji i po³o¿enia dostarczane przez
27 U.S. Census Bureau, sformatowane do wykorzystania przez dictd.
28 Informacje o kodach pocztowych zosta³y po³±czone z nazwami miejsc.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33
34 %build
35 %{__autoconf}
36 %configure
37 %{__make} db
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
42 %{__make} install dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
43
44 dictprefix=%{_datadir}/dictd/%{dictname}
45 echo "# U.S. Gazetteer
46 database %{dictname} {
47         data  \"$dictprefix.dict.dz\"
48         index \"$dictprefix.index\"
49 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 if [ -f /var/lock/subsys/dictd ]; then
56         /etc/rc.d/init.d/dictd restart 1>&2
57 fi
58
59 %postun
60 if [ -f /var/lock/subsys/dictd ]; then
61         /etc/rc.d/init.d/dictd restart 1>&2 || true
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
67 %{_datadir}/dictd/%{dictname}.*
This page took 0.096223 seconds and 3 git commands to generate.