]>
Commit | Line | Data |
---|---|---|
619faa13 | 1 | Summary: sap - English-Polish and vice versa dictionary for dictd |
61d2ec76 | 2 | Summary(pl.UTF-8): sap - słownik angielsko-polski i odwrotnie dla dictd |
619faa13 | 3 | Name: dict-sap |
4 | Version: 0.1b_0.1 | |
b3573635 | 5 | Release: 5 |
619faa13 | 6 | License: GPL |
7 | Group: Applications/Dictionaries | |
6a05c285 | 8 | Source0: %{name}-%{version}.tar.gz |
48a6ac72 | 9 | # Source0-md5: 7d53db1c78a0662d1ebb10b0912caa9a |
017238f1 | 10 | Patch0: %{name}-gcc.patch |
dcb0c567 | 11 | URL: http://www.dict.org/ |
d7a85732 | 12 | BuildRequires: %{_bindir}/perl |
dcb0c567 | 13 | BuildRequires: autoconf |
6da74605 | 14 | BuildRequires: automake |
3e5fd73c | 15 | BuildRequires: dictzip |
b3573635 | 16 | BuildRequires: rpmbuild(macros) >= 1.268 |
619faa13 | 17 | Requires: %{_sysconfdir}/dictd |
86228e92 | 18 | Requires: dict |
d7a85732 | 19 | Requires: dictd |
dcb0c567 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
619faa13 | 21 | |
e66b3acc | 22 | %description |
619faa13 | 23 | This package contains sap - English-Polish and Polish-English |
24 | dictionary version 0.1b, formatted for use by the DICT server. | |
25 | ||
6e20b2da JR |
26 | %description -l pl.UTF-8 |
27 | Ten pakiet zawiera sap - słownik angielsko-polski i polsko-angielski | |
28 | sformatowane do użycia z serwerem słownika dictd. | |
6a05c285 | 29 | |
619faa13 | 30 | %prep |
31 | %setup -q | |
017238f1 | 32 | %patch0 -p1 |
619faa13 | 33 | |
34 | %build | |
373de1da | 35 | %{__autoconf} |
63e34d33 | 36 | cp -f /usr/share/automake/install-sh . |
37 | cp -f /usr/share/automake/config.sub . | |
e66b3acc | 38 | %configure |
39 | %{__make} db | |
619faa13 | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
4373cfb9 | 43 | install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd,%{_bindir}} |
0940fec5 PG |
44 | |
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
619faa13 | 47 | |
48 | for dictname in sap_en-pl sap_pl-en; do | |
61d6e43d TP |
49 | dictprefix=%{_datadir}/dictd/$dictname |
50 | echo "# sap dictionary, part $dictname | |
619faa13 | 51 | database $dictname { |
dcb0c567 TP |
52 | data \"$dictprefix.dict.dz\" |
53 | index \"$dictprefix.index\" | |
619faa13 | 54 | }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$dictname.dictconf |
55 | done | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
dcb0c567 | 60 | %post |
b3573635 | 61 | %service -q dictd restart |
619faa13 | 62 | |
dcb0c567 | 63 | %postun |
b3573635 ER |
64 | if [ "$1" = 0 ]; then |
65 | %service -q dictd restart | |
619faa13 | 66 | fi |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
d7a85732 | 70 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/sap_*.dictconf |
619faa13 | 71 | %attr(755,root,root) %{_bindir}/sapdict |
72 | %{_datadir}/dictd/sap_* |