1 Summary: Network interface for the Tokyo Cabinet database
2 Summary(pl.UTF-8): Interfejs sieciowy dla bazy danych Tokyo Cabinet
8 Source0: http://1978th.net/tokyotyrant/%{name}-%{version}.tar.gz
9 # Source0-md5: cc9b7f0c6764d37700ab43d29a5c6048
11 Source2: %{name}-example-config
12 URL: http://1978th.net/tokyotyrant/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: libtool
16 BuildRequires: tokyocabinet-devel
17 BuildRequires: zlib-devel
18 Requires(post,preun): /sbin/chkconfig
19 Requires(postun): /usr/sbin/groupdel
20 Requires(pre): /usr/sbin/groupadd
21 Requires: rc-scripts >= 0.4.1.23
22 Provides: group(tokyotyrant)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Tokyo Tyrant is a network interface daemon and client library for the
27 Tokyo Cabinet database, intended for concurrent and/or remote access
30 %description -l pl.UTF-8
31 Tokyo Tyrant to interfejs sieciowy - demon oraz biblioteka kliencka -
32 dla bazy danych Tokyo Cabinet, służący do zapewnienia równoległego
33 i/lub zdalnego dostępu do pliku bazy danych.
36 Summary: Header files for tokyotyrant client library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej tokyoryrant
38 Group: Development/Libraries
39 Requires: %{name}-libs = %{version}-%{release}
42 Header files for tokyotyrant client library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki klienckiej tokyotyrant.
48 Summary: Tokyotyrant client library
49 Summary(pl.UTF-8): Biblioteka kliencka tokyotyrant
50 Group: Development/Libraries
53 Tokyotyrant client library.
55 %description libs -l pl.UTF-8
56 Biblioteka kliencka tokyotyrant.
59 Summary: Static tokyotyrant client library
60 Summary(pl.UTF-8): Statyczna biblioteka kliencka tokyotyrant
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static tokyotyrant client library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka kliencka tokyotyrant.
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{tokyotyrant.d,rc.d/init.d}
84 install -d $RPM_BUILD_ROOT/var/run/tokyotyrant
87 DESTDIR=$RPM_BUILD_ROOT
89 # Remove the provided init script, it is useless. SOURCE1 replaces it.
90 rm -f $RPM_BUILD_ROOT%{_sbindir}/ttservctl
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
93 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/tokyotyrant.d/example
96 rm -rf $RPM_BUILD_ROOT
99 %groupadd -g 252 %{name}
102 /sbin/chkconfig --add %{name}
103 %service %{name} restart
106 if [ "$1" = "0" ]; then
107 %service -q %{name} stop
108 /sbin/chkconfig --del %{name}
112 if [ "$1" = "0" ]; then
116 %post libs -p /sbin/ldconfig
117 %postun libs -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc ChangeLog README
122 %attr(755,root,root) %{_bindir}/*
123 %attr(755,root,root) %{_libdir}/tt*.so
124 %dir %attr(751,root,root) %{_sysconfdir}/tokyotyrant.d
125 %{_sysconfdir}/tokyotyrant.d/example
126 %attr(754,root,root) /etc/rc.d/init.d/%{name}
130 %dir %attr(770,root,tokyotyrant) /var/run/tokyotyrant
133 %defattr(644,root,root,755)
134 %{_libdir}/libtokyotyrant.so
136 %{_pkgconfigdir}/*.pc
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %ghost %{_libdir}/libtokyotyrant.so.3
142 %attr(755,root,root) %{_libdir}/libtokyotyrant.so.*.*.*
145 %defattr(644,root,root,755)
146 %{_libdir}/libtokyotyrant.a