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