1 %define dictname gazetteer
2 Summary: U.S. Gazetteer for dictd
3 Summary(pl): S³ownik nazw geograficznych w USA dla dictd
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
16 Requires: %{_sysconfdir}/dictd
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
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
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
52 rm -rf $RPM_BUILD_ROOT
55 if [ -f /var/lock/subsys/dictd ]; then
56 /etc/rc.d/init.d/dictd restart 1>&2
60 if [ -f /var/lock/subsys/dictd ]; then
61 /etc/rc.d/init.d/dictd restart 1>&2 || true
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}.*