%define dictname gazetteer Summary: U.S. Gazetteer for dictd Summary(pl.UTF-8): Słownik nazw geograficznych w USA dla dictd Name: dict-%{dictname} Version: 1.3 Release: 7 License: GPL Group: Applications/Dictionaries Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz # Source0-md5: e87c468992693aebea7cbbd6261e45e2 Patch0: %{name}-linux-sparc.patch URL: http://www.dict.org/ BuildRequires: autoconf BuildRequires: automake BuildRequires: dictzip BuildRequires: rpmbuild(macros) >= 1.268 Requires: %{_sysconfdir}/dictd Requires: dictd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This package contains place names, population and location information provided by the U.S. Census Bureau, formatted for use by dictionary server in the dictd package. Zip Code information has been merged with the place name data. %description -l pl.UTF-8 Pakiet zawiera nazwy miejsc, populacji i położenia dostarczane przez U.S. Census Bureau, sformatowane do wykorzystania przez dictd. Informacje o kodach pocztowych zostały połączone z nazwami miejsc. %prep %setup -q %patch0 -p1 %build %{__autoconf} cp -f /usr/share/automake/config.* . %configure %{__make} db %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd} %{__make} install \ dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd dictprefix=%{_datadir}/dictd/%{dictname} echo "# U.S. Gazetteer database %{dictname} { data \"$dictprefix.dict.dz\" index \"$dictprefix.index\" }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf %clean rm -rf $RPM_BUILD_ROOT %post %service -q dictd restart %postun if [ "$1" = 0 ]; then %service -q dictd restart fi %files %defattr(644,root,root,755) %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf %{_datadir}/dictd/%{dictname}.*