]> git.pld-linux.org Git - packages/dictd.git/blobdiff - dictd.spec
- update to 1.9.14
[packages/dictd.git] / dictd.spec
index edef00e51dc3492c9756573ba7a8305095b193dd..b426ec85f21cec84ccfb4a6b5fc651192517451e 100644 (file)
@@ -1,22 +1,22 @@
 Summary:       Dictionary database server
 Summary(pl):   Serwer bazy s³owników
 Name:          dictd
-Version:       1.9.11
+Version:       1.9.14
 Release:       1
 License:       GPL
 Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/sourceforge/dict/%{name}-%{version}.tar.gz
-# Source0-md5: 4d06aabf573c862fd29e409984f71a67
+Source0:       http://dl.sourceforge.net/dict/%{name}-%{version}.tar.gz
+# Source0-md5: 5db913e545ee483b1385696ff8a6bd24
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
-Patch0:                %{name}-no_libnsl.patch
-Patch1:                %{name}-opt.patch
+Patch0:                %{name}-opt.patch
 URL:           http://www.dict.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
 BuildRequires: flex
-BuildRequires: libltdl-devel
+BuildRequires: judy-devel
+BuildRequires: libdbi-devel
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,6 +34,42 @@ Serwer dla Dictionary Server Protocol (DICT), bazuj
 protoko³u zapytañ i odpowiedzi umo¿liwiaj±cego klientom na dostêp do
 definicji s³ownikowych z zestawu baz danych.
 
+%package devel
+Summary:       Package for dictd plugins development
+Summary(pl):   Pakiet programistyczny do tworzenia wtyczek dictd
+Group:         Development/Libraries
+# doesn't require base
+
+%description devel
+Package for dictd plugins development.
+
+%description devel -l pl
+Pakiet programistyczny do tworzenia wtyczek dictd.
+
+%package plugin-dbi
+Summary:       DBI plygin for dictd server
+Summary(pl):   Wtyczka DBI dla serwera dictd
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description plugin-dbi
+DBI plygin for dictd server.
+
+%description plugin-dbi -l pl
+Wtyczka DBI dla serwera dictd.
+
+%package plugin-judy
+Summary:       Judy plygin for dictd server
+Summary(pl):   Wtyczka Judy dla serwera dictd
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description plugin-judy
+Judy plygin for dictd server.
+
+%description plugin-judy -l pl
+Wtyczka Judy dla serwera dictd.
+
 %package -n dict
 Summary:       DICT Protocol Client
 Summary(pl):   Klient protoko³u DICT
@@ -54,7 +90,6 @@ Summary:      dictfmt utility to convert databases in various formats into dict forma
 Summary(pl):   Narzêdzie dictfmt do konwersji baz w ró¿nych formatach na format dict
 Group:         Applications/Text
 Obsoletes:     dict-fmt
-Obsoletes:     dictfmt
 
 %description -n dictfmt
 dictfmt utility is designed to convert databases in various formats
@@ -92,8 +127,10 @@ dane do pseudo-swobodnego dost
 
 %prep
 %setup -q
-#%patch0 -p1
-%patch1 -p1
+%patch0 -p1
+
+# broken test if >1 plugins
+%{__perl} -pi -e 's/test \$\(PLUGINS\)/test "\$\(PLUGINS\)"/' Makefile.in
 
 %build
 cp -f %{_datadir}/automake/config.* .
@@ -111,15 +148,10 @@ CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_bindir},%{_sbindir}} \
-               $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/man{1,8}}
-
-install dict dictzip dictfmt{,_{index2suffix,index2word,plugin,virtual}} \
-       dictunformat $RPM_BUILD_ROOT%{_bindir}
-install dict*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_datadir}/%{name}}
 
-install %{name} $RPM_BUILD_ROOT%{_sbindir}
-install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 echo "server localhost" > dict.conf
 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
@@ -163,11 +195,28 @@ fi
 %dir %{_datadir}/%{name}
 %{_mandir}/man8/%{name}*
 
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/dictdplugin-config
+%{_includedir}/dictdplugin.h
+
+%files plugin-dbi
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/dictdplugin_dbi.so
+
+%files plugin-judy
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/dictdplugin_judy.so
+
 %files -n dict
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/dict.conf
+%attr(755,root,root) %{_bindir}/colorit
 %attr(755,root,root) %{_bindir}/dict
+%attr(755,root,root) %{_bindir}/dictl
+%{_mandir}/man1/colorit.1*
 %{_mandir}/man1/dict.1*
+%{_mandir}/man1/dictl.1*
 
 %files -n dictfmt
 %defattr(644,root,root,755)
This page took 0.107756 seconds and 4 git commands to generate.