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