]> git.pld-linux.org Git - packages/dict-gazetteer.git/blob - dict-gazetteer.spec
- rel 7 (use %service)
[packages/dict-gazetteer.git] / dict-gazetteer.spec
1 %define         dictname gazetteer
2 Summary:        U.S. Gazetteer for dictd
3 Summary(pl.UTF-8):      Słownik nazw geograficznych w USA dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.3
6 Release:        7
7 License:        GPL
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
18 Requires:       dictd
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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
25 the place name data.
26
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.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35
36 %build
37 %{__autoconf}
38 cp -f /usr/share/automake/config.* .
39 %configure
40 %{__make} db
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
45
46 %{__make} install \
47         dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
48
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
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 %service -q dictd restart
61
62 %postun
63 if [ "$1" = 0 ]; then
64         %service -q dictd restart
65 fi
66
67 %files
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}.*
This page took 0.047826 seconds and 3 git commands to generate.