%define dictionaries %{dict1} %{dict2} %{dict3} %{dict4} %{dict5} %{dict6}
Summary: The free dictionaries for dictd made from IDP project
-Summary(pl): Darmowe s³owniki dla dictd z projektu IDP
+Summary(pl.UTF-8): Darmowe słowniki dla dictd z projektu IDP
Name: dict-%{dictname}
Version: 19990219
# Last update on their site
-Release: 2
+Release: 4
License: GPL
# is this '#This file is free to use and modify. Thank you for using the IDP.'
# compatible w/ Gnu GPL ???
Group: Applications/Dictionaries
Source0: http://www.aracnet.com/~tyler/IDP/files/%{dict1}.txt
+# Source0-md5: 893caf92b6b0bde075faa610cdcad162
Source1: http://www.aracnet.com/~tyler/IDP/files/%{dict2}.txt
+# Source1-md5: 2228f34eef12289a0aec6892e503fd1f
Source2: http://www.aracnet.com/~tyler/IDP/files/%{dict3}.txt
+# Source2-md5: 39637589eaed62612a97f721c8b42cab
Source3: http://www.aracnet.com/~tyler/IDP/files/%{dict4}.txt
+# Source3-md5: eca10dc263c32ea0090c49cef70a3a5f
Source4: http://www.aracnet.com/~tyler/IDP/files/%{dict5}.txt
+# Source4-md5: a90cd624de7c6afb5aea70153af05ad6
Source5: http://www.aracnet.com/~tyler/IDP/files/%{dict6}.txt
-#Source91: www.wh9.tu-dresden.de/~heinrich/dict/dict_idp/idp2dict.sh
+# Source5-md5: 4a9b422b98e957627d3d143ab7f26743
+#Source91: http://www.wh9.tu-dresden.de/~heinrich/dict/dict_idp/idp2dict.sh
# copyright info:
Source98: http://www.june29.com/IDP/IDPcopyright.html
+# Source98-md5: 5128ae048e20870c549807eecd8031ac
Source99: http://www.june29.com/IDP/IDPdisclaimer.html
+# Source99-md5: d2062ea10b27d0b4c59446600b3bb3b1
URL: http://www.june29.com/IDP/
BuildRequires: dictfmt
BuildRequires: dictzip
-Requires: dictd
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: %{_sysconfdir}/dictd
+Requires: dictd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
then made available through this site to anyone, with no restrictions
on their use.
-%description -l pl
-Ten pakiet zawiera darmowe s³owniki z Internet Dictionary Project
-sformatowane do u¿ytku z serwerem s³ownika dictd. Celem Internet
-Dictionary Project jest stworzenie wolnych od op³at s³owników
-t³umaczeñ w oparciu o pomoc spo³eczno¶ci internetowej. Serwis IDP
-pozwala ludziom z ca³ego ¶wiata na pomoc przy t³umaczeniu angielskich
-s³ów na inne jêzyki. Powsta³e w ten sposób listy angielskich s³ów i
-ich t³umaczeñ s± udostêpniane wszystkim, do nieograniczonego u¿ytku.
+%description -l pl.UTF-8
+Ten pakiet zawiera darmowe słowniki z Internet Dictionary Project
+sformatowane do użytku z serwerem słownika dictd. Celem Internet
+Dictionary Project jest stworzenie wolnych od opłat słowników
+tłumaczeń w oparciu o pomoc społeczności internetowej. Serwis IDP
+pozwala ludziom z całego świata na pomoc przy tłumaczeniu angielskich
+słów na inne języki. Powstałe w ten sposób listy angielskich słów i
+ich tłumaczeń są udostępniane wszystkim, do nieograniczonego użytku.
%package %{dict1}
Summary: The %{dict1} dictionary for dictd
-Summary(pl): S³ownik %{dict1} dla dictd
+Summary(pl.UTF-8): Słownik %{dict1} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict1}
This package contains %{dict1} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict1} -l pl
-Ten pakiet zawiera s³ownik %{dict1} do u¿ywania z serwerem s³ownika
+%description %{dict1} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict1} do używania z serwerem słownika
dictd.
%package %{dict2}
Summary: The %{dict2} dictionary for dictd
-Summary(pl): S³ownik %{dict2} dla dictd
+Summary(pl.UTF-8): Słownik %{dict2} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict2}
This package contains %{dict2} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict2} -l pl
-Ten pakiet zawiera s³ownik %{dict2} do u¿ywania z serwerem s³ownika
+%description %{dict2} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict2} do używania z serwerem słownika
dictd.
%package %{dict3}
Summary: The %{dict3} dictionary for dictd
-Summary(pl): S³ownik %{dict3} dla dictd
+Summary(pl.UTF-8): Słownik %{dict3} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict3}
This package contains %{dict3} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict3} -l pl
-Ten pakiet zawiera s³ownik %{dict3} do u¿ywania z serwerem s³ownika
+%description %{dict3} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict3} do używania z serwerem słownika
dictd.
%package %{dict4}
Summary: The %{dict4} dictionary for dictd
-Summary(pl): S³ownik %{dict4} dla dictd
+Summary(pl.UTF-8): Słownik %{dict4} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict4}
This package contains %{dict4} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict4} -l pl
-Ten pakiet zawiera s³ownik %{dict4} do u¿ywania z serwerem s³ownika
+%description %{dict4} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict4} do używania z serwerem słownika
dictd.
%package %{dict5}
Summary: The %{dict5} dictionary for dictd
-Summary(pl): S³ownik %{dict5} dla dictd
+Summary(pl.UTF-8): Słownik %{dict5} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict5}
This package contains %{dict5} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict5} -l pl
-Ten pakiet zawiera s³ownik %{dict5} do u¿ywania z serwerem s³ownika
+%description %{dict5} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict5} do używania z serwerem słownika
dictd.
%package %{dict6}
Summary: The %{dict6} dictionary for dictd
-Summary(pl): S³ownik %{dict6} dla dictd
+Summary(pl.UTF-8): Słownik %{dict6} dla dictd
Group: Applications/Dictionaries
-Requires: dictd
Requires: %{_sysconfdir}/dictd
+Requires: dictd
%description %{dict6}
This package contains %{dict6} dictionaries for use by the dictionary
server in the dictd package.
-%description %{dict6} -l pl
-Ten pakiet zawiera s³ownik %{dict6} do u¿ywania z serwerem s³ownika
+%description %{dict6} -l pl.UTF-8
+Ten pakiet zawiera słownik %{dict6} do używania z serwerem słownika
dictd.
%prep
-%setup -c -T
+%setup -q -c -T
cp -f %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
%build
rm -rf $RPM_BUILD_ROOT
%post %{dict1}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict1}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%post %{dict2}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict2}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%post %{dict3}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict3}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%post %{dict4}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict4}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%post %{dict5}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict5}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%post %{dict6}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun %{dict6}
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%files %{dict1}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict1}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict1}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict1}.*
%files %{dict2}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict2}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict2}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict2}.*
%files %{dict3}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict3}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict3}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict3}.*
%files %{dict4}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict4}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict4}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict4}.*
%files %{dict5}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict5}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict5}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict5}.*
%files %{dict6}
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict6}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}-%{dict6}.dictconf
%{_datadir}/dictd/%{dictname}_%{dict6}.*