]> git.pld-linux.org Git - packages/dict-vera.git/blobdiff - dict-vera.spec
- upgraded to 1.19, updated URLs
[packages/dict-vera.git] / dict-vera.spec
index 819416c98c7484d820095f5f845f57ec9f25e308..7cdafc8c9dcf4f2d82e924c4e8ebeb57dee60c8a 100644 (file)
@@ -1,34 +1,36 @@
 %define                dictname vera
 Summary:       Virtual Entity of Relevant Acronyms dictionary for dictd
-Summary(pl):   S³ownik Virtual Entity of Relevant Acronyms dla dictd
+Summary(pl.UTF-8):     Słownik Virtual Entity of Relevant Acronyms dla dictd
 Name:          dict-%{dictname}
-Version:       1.9
+Version:       1.19
 Release:       1
 License:       GPL
 Group:         Applications/Dictionaries
-Source0:       ftp://ftp.gnu.org/gnu/vera/%{dictname}-%{version}.tar.gz
-URL:           http://www.dict.org/
+Source0:       http://home.snafu.de/ohei/FTP/%{dictname}-%{version}.tar.gz
+# Source0-md5: 1ca915d0ecd4617c54379f79e1b67914
+URL:           http://home.snafu.de/ohei/vera/vueber-e.html
 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
-This package contains V.E.R.A, version %version, formatted for use by
-the dictionary server in the dictd package.
+This package contains V.E.R.A, version %{version}, formatted for use
+by the dictionary server in the dictd package.
 
-%description -l pl
-Ten pakiet zawiera s³ownik V.E.R.A w wersji %version, sformatowany do
-u¿ytku z serwerem s³ownika dictd.
+%description -l pl.UTF-8
+Ten pakiet zawiera słownik V.E.R.A w wersji %{version}, sformatowany
+do użytku z serwerem słownika dictd.
 
 %prep
 %setup -q -n %{dictname}-%{version}
 
 %build
 perl -ne 's/\@item (.*)\n/:$1:\n/; print unless /^@/' vera.? | \
-       dictfmt -j -u http://home.snafu.de/ohei/FTP -s \
-       "V.E.R.A. -- Virtual Entity of Relevant Acronyms (%version)" %{dictname}
+       dictfmt -j -u http://home.snafu.de/ohei/ -s \
+       "V.E.R.A. -- Virtual Entity of Relevant Acronyms (%{version})" %{dictname}
 dictzip %{dictname}.dict
 
 %install
@@ -47,17 +49,15 @@ mv %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/dictd ]; then
-       /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
 
 %postun
-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
 %defattr(644,root,root,755)
 %doc README vera.texi
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
 %{_datadir}/dictd/%{dictname}.*
This page took 0.061218 seconds and 4 git commands to generate.