1 %define dictname gazetteer
2 Summary: U.S. Gazetteer for dictd
3 Summary(pl.UTF-8): 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: automake
15 BuildRequires: dictzip
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires: %{_sysconfdir}/dictd
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This package contains place names, population and location information
23 provided by the U.S. Census Bureau, formatted for use by dictionary
24 server in the dictd package. Zip Code information has been merged with
27 %description -l pl.UTF-8
28 Pakiet zawiera nazwy miejsc, populacji i położenia dostarczane przez
29 U.S. Census Bureau, sformatowane do wykorzystania przez dictd.
30 Informacje o kodach pocztowych zostały połączone z nazwami miejsc.
38 cp -f /usr/share/automake/config.* .
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
47 dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
49 dictprefix=%{_datadir}/dictd/%{dictname}
50 echo "# U.S. Gazetteer
51 database %{dictname} {
52 data \"$dictprefix.dict.dz\"
53 index \"$dictprefix.index\"
54 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
57 rm -rf $RPM_BUILD_ROOT
60 %service -q dictd restart
64 %service -q dictd restart
68 %defattr(644,root,root,755)
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
70 %{_datadir}/dictd/%{dictname}.*