]> git.pld-linux.org Git - SPECS.git/blob - tokyotyrant.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / tokyotyrant.spec
1 Summary:        Network interface for the Tokyo Cabinet database
2 Summary(pl.UTF-8):      Interfejs sieciowy dla bazy danych Tokyo Cabinet
3 Name:           tokyotyrant
4 Version:        1.1.40
5 Release:        0.4
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://1978th.net/tokyotyrant/%{name}-%{version}.tar.gz
9 # Source0-md5:  cc9b7f0c6764d37700ab43d29a5c6048
10 Source1:        %{name}.init
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)
24
25 %description
26 Tokyo Tyrant is a network interface daemon and client library for the
27 Tokyo Cabinet database, intended for concurrent and/or remote access
28 to a database file.
29
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.
34
35 %package devel
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}
40
41 %description devel
42 Header files for tokyotyrant client library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki klienckiej tokyotyrant.
46
47 %package libs
48 Summary:        Tokyotyrant client library
49 Summary(pl.UTF-8):      Biblioteka kliencka tokyotyrant
50 Group:          Development/Libraries
51
52 %description libs
53 Tokyotyrant client library.
54
55 %description libs -l pl.UTF-8
56 Biblioteka kliencka tokyotyrant.
57
58 %package static
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}
63
64 %description static
65 Static tokyotyrant client library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka kliencka tokyotyrant.
69
70 %prep
71 %setup -q
72
73 %build
74 %{__libtoolize}
75 %{__aclocal}
76 %{__autoconf}
77 %configure
78
79 %{__make}
80
81 %install
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
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 # Remove the provided init script, it is useless. SOURCE1 replaces it.
90 rm -f $RPM_BUILD_ROOT%{_sbindir}/ttservctl
91
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
93 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/tokyotyrant.d/example
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %pre
99 %groupadd -g 252 %{name}
100
101 %post
102 /sbin/chkconfig --add %{name}
103 %service %{name} restart
104
105 %preun
106 if [ "$1" = "0" ]; then
107         %service -q %{name} stop
108         /sbin/chkconfig --del %{name}
109 fi
110
111 %postun
112 if [ "$1" = "0" ]; then
113         %groupremove %{name}
114 fi
115
116 %post libs      -p /sbin/ldconfig
117 %postun libs    -p /sbin/ldconfig
118
119 %files
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}
127 %{_datadir}/%{name}
128 %{_mandir}/man1/*.1*
129 %{_mandir}/man8/*.8*
130 %dir %attr(770,root,tokyotyrant) /var/run/tokyotyrant
131
132 %files devel
133 %defattr(644,root,root,755)
134 %{_libdir}/libtokyotyrant.so
135 %{_includedir}/t*.h
136 %{_pkgconfigdir}/*.pc
137 %{_mandir}/man3/*.3*
138
139 %files libs
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %ghost %{_libdir}/libtokyotyrant.so.3
142 %attr(755,root,root) %{_libdir}/libtokyotyrant.so.*.*.*
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/libtokyotyrant.a
This page took 0.559803 seconds and 3 git commands to generate.