]>
Commit | Line | Data |
---|---|---|
9671118a | 1 | Summary: FAM, the File Alteration Monitor |
8983b106 ER |
2 | Summary(pl.UTF-8): Monitor zmian w plikach |
3 | Summary(pt_BR.UTF-8): FAM, um monitor de alterações em arquivos | |
6e8944d8 | 4 | Name: fam |
ca5f1062 | 5 | Version: 2.7.0 |
3e31f35d | 6 | Release: 8 |
6e8944d8 | 7 | License: GPL |
9671118a | 8 | Group: Daemons |
6e8944d8 | 9 | Source0: ftp://oss.sgi.com/projects/fam/download/stable/%{name}-%{version}.tar.gz |
ca5f1062 | 10 | # Source0-md5: 1bf3ae6c0c58d3201afc97c6a4834e39 |
6e8944d8 | 11 | Source1: %{name}.inetd |
9671118a JR |
12 | Source2: %{name}.init |
13 | Source3: %{name}.sysconfig | |
6e8944d8 | 14 | Patch0: %{name}-dnotify.patch |
ca5f1062 JR |
15 | Patch1: %{name}-cleanup.patch |
16 | Patch2: %{name}-gcc34.patch | |
83e3c89e | 17 | Patch3: %{name}-paths.patch |
af452fd9 | 18 | Patch4: %{name}-gcc4.patch |
6e8944d8 JR |
19 | URL: http://oss.sgi.com/projects/fam/ |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
22 | BuildRequires: libstdc++-devel | |
23 | BuildRequires: libtool | |
d73a31fb | 24 | BuildRequires: rpmbuild(macros) >= 1.268 |
6e8944d8 JR |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
9671118a | 28 | FAM, the File Alteration Monitor, provides a daemon and an API which |
6e8944d8 JR |
29 | applications can use to be notified when specific files or directories |
30 | are changed. | |
31 | ||
34bed4b0 JR |
32 | %description -l pl.UTF-8 |
33 | FAM dostarcza serwer i API pozwalające aplikacjom na uzyskiwanie | |
34 | informacji o zmianach w określonych plikach lub katalogach. | |
6e8944d8 | 35 | |
34bed4b0 JR |
36 | %description -l pt_BR.UTF-8 |
37 | O FAM fornece um servidor e uma API que aplicações podem usar para | |
38 | receber notificações sobre mudanças em arquivos ou diretórios | |
39 | específicos. | |
9671118a JR |
40 | |
41 | %package common | |
42 | Summary: FAM, the File Alteration Monitor - common files | |
8983b106 | 43 | Summary(pl.UTF-8): Monitor zmian w plikach - wspólne pliki |
9671118a | 44 | Group: Daemons |
505bf57d | 45 | Requires: %{name}-libs = %{version}-%{release} |
83e3c89e | 46 | Requires: portmap |
fa04c20d | 47 | Conflicts: fam < 2.7.0 |
9671118a JR |
48 | |
49 | %description common | |
50 | FAM, the File Alteration Monitor, provides a daemon and an API which | |
51 | applications can use to be notified when specific files or directories | |
52 | are changed. | |
53 | ||
34bed4b0 JR |
54 | %description common -l pl.UTF-8 |
55 | FAM dostarcza serwer i API pozwalające aplikacjom na uzyskiwanie | |
56 | informacji o zmianach w określonych plikach lub katalogach. | |
9671118a | 57 | |
34bed4b0 JR |
58 | %description common -l pt_BR.UTF-8 |
59 | O FAM fornece um servidor e uma API que aplicações podem usar para | |
60 | receber notificações sobre mudanças em arquivos ou diretórios | |
61 | específicos. | |
6e8944d8 JR |
62 | |
63 | %package inetd | |
9671118a | 64 | Summary: inetd configs for FAM |
8983b106 | 65 | Summary(pl.UTF-8): Pliki konfiguracyjne do użycia FAM poprzez inetd |
6e8944d8 | 66 | Group: Daemons |
505bf57d | 67 | Requires: %{name}-common = %{version}-%{release} |
6e8944d8 JR |
68 | Requires: inetdaemon |
69 | Requires: portmap | |
83e3c89e | 70 | Requires: rc-inetd |
505bf57d | 71 | Provides: fam = %{version}-%{release} |
fa04c20d | 72 | Obsoletes: fam < 2.7.0 |
9671118a | 73 | Obsoletes: fam-standalone |
8fb7aa41 | 74 | Conflicts: gamin |
5b26bdc1 JB |
75 | # no RPC support in rc-inet script before |
76 | Conflicts: inetd < 0.17-12 | |
044508a1 JB |
77 | # no working RPC and tcp/wait support before |
78 | Conflicts: rlinetd < 0.6-1 | |
79 | # PORT option was required before | |
80 | Conflicts: xinetd < 2.3.14-2 | |
6e8944d8 JR |
81 | |
82 | %description inetd | |
9671118a | 83 | FAM configs for running from inetd. |
6e8944d8 | 84 | |
34bed4b0 | 85 | %description inetd -l pl.UTF-8 |
81fb3b5a | 86 | Pliki konfiguracyjne FAM do startowania demona poprzez inetd. |
6e8944d8 JR |
87 | |
88 | %package standalone | |
9671118a | 89 | Summary: Standalone daemon configs for FAM |
8983b106 | 90 | Summary(pl.UTF-8): Pliki konfiguracyjne do startowania FAM w trybie standalone |
6e8944d8 | 91 | Group: Daemons |
83e3c89e | 92 | Requires(post,preun): /sbin/chkconfig |
505bf57d | 93 | Requires: %{name}-common = %{version}-%{release} |
1f917f33 | 94 | Requires: /sbin/chkconfig |
dd7d5d05 | 95 | Requires: rc-scripts >= 0.4.1.5 |
505bf57d | 96 | Provides: fam = %{version}-%{release} |
fa04c20d | 97 | Obsoletes: fam < 2.7.0 |
9671118a | 98 | Obsoletes: fam-inetd |
e78ad9a1 | 99 | Conflicts: gamin |
6e8944d8 JR |
100 | |
101 | %description standalone | |
9671118a | 102 | FAM configs for running as a standalone daemon. |
6e8944d8 | 103 | |
34bed4b0 | 104 | %description standalone -l pl.UTF-8 |
1f917f33 | 105 | Pliki konfiguracyjne FAM do startowania demona w trybie standalone. |
6e8944d8 JR |
106 | |
107 | %package libs | |
108 | Summary: Libraries for FAM | |
8983b106 ER |
109 | Summary(pl.UTF-8): Biblioteki FAMa |
110 | Summary(pt_BR.UTF-8): FAM, um monitor de alteraçoes em arquivos | |
6e8944d8 JR |
111 | License: LGPL |
112 | Group: Libraries | |
113 | Obsoletes: libfam0 | |
8fb7aa41 | 114 | Conflicts: gamin-libs |
6e8944d8 JR |
115 | |
116 | %description libs | |
117 | Libraries for FAM. | |
118 | ||
34bed4b0 | 119 | %description libs -l pl.UTF-8 |
6e8944d8 JR |
120 | Biblioteki FAMa. |
121 | ||
34bed4b0 JR |
122 | %description libs -l pt_BR.UTF-8 |
123 | FAM, um monitor de alteraçoes em arquivos. | |
6e8944d8 JR |
124 | |
125 | %package devel | |
126 | Summary: Includes to develop using FAM | |
8983b106 ER |
127 | Summary(pl.UTF-8): Pliki nagłówkowe FAM |
128 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com a libfam | |
6e8944d8 JR |
129 | License: LGPL |
130 | Group: Development/Libraries | |
505bf57d | 131 | Requires: %{name}-libs = %{version}-%{release} |
6e8944d8 JR |
132 | Requires: libstdc++-devel |
133 | Obsoletes: libfam0-devel | |
8fb7aa41 | 134 | Conflicts: gamin-devel |
6e8944d8 JR |
135 | |
136 | %description devel | |
137 | Includes to develop using FAM. | |
138 | ||
34bed4b0 JR |
139 | %description devel -l pl.UTF-8 |
140 | Pliki nagłówkowe FAM. | |
6e8944d8 | 141 | |
34bed4b0 JR |
142 | %description devel -l pt_BR.UTF-8 |
143 | Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam. | |
6e8944d8 JR |
144 | |
145 | %package static | |
146 | Summary: FAM static libraries | |
8983b106 ER |
147 | Summary(pl.UTF-8): Biblioteki statyczne FAM |
148 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a libfam | |
6e8944d8 JR |
149 | License: LGPL |
150 | Group: Development/Libraries | |
505bf57d | 151 | Requires: %{name}-devel = %{version}-%{release} |
8fb7aa41 | 152 | Conflicts: gamin-static |
6e8944d8 JR |
153 | |
154 | %description static | |
155 | FAM static libraries. | |
156 | ||
34bed4b0 | 157 | %description static -l pl.UTF-8 |
6e8944d8 JR |
158 | Biblioteki statyczne FAM. |
159 | ||
34bed4b0 JR |
160 | %description static -l pt_BR.UTF-8 |
161 | Bibliotecas estáticas para desenvolvimento com a libfam. | |
6e8944d8 JR |
162 | |
163 | %prep | |
164 | %setup -q | |
165 | %patch0 -p1 | |
166 | %patch1 -p1 | |
167 | %patch2 -p1 | |
83e3c89e | 168 | %patch3 -p1 |
af452fd9 | 169 | %patch4 -p1 |
6e8944d8 JR |
170 | |
171 | %build | |
172 | %{__libtoolize} | |
173 | %{__aclocal} | |
174 | %{__autoconf} | |
175 | %{__autoheader} | |
176 | %{__automake} | |
177 | CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions" | |
178 | %configure | |
179 | %{__make} | |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
9671118a | 183 | install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d} |
6e8944d8 JR |
184 | |
185 | %{__make} install \ | |
186 | DESTDIR=$RPM_BUILD_ROOT | |
187 | ||
188 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/sgi_fam | |
ca5f1062 JR |
189 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/famd |
190 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/famd | |
6e8944d8 | 191 | |
e898c984 JB |
192 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
193 | install test/test.c++ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
194 | ||
6e8944d8 JR |
195 | %clean |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | ||
9671118a | 198 | %post inetd |
d73a31fb | 199 | %service -q rc-inetd reload |
6e8944d8 | 200 | |
9671118a | 201 | %postun inetd |
d73a31fb ER |
202 | if [ "$1" = 0 ]; then |
203 | %service -q rc-inetd reload | |
6e8944d8 JR |
204 | fi |
205 | ||
9671118a | 206 | %post standalone |
ca5f1062 | 207 | /sbin/chkconfig --add famd |
d73a31fb | 208 | %service famd restart "FAM daemon" |
9671118a JR |
209 | |
210 | %preun standalone | |
211 | if [ "$1" = "0" ]; then | |
d73a31fb | 212 | %service famd stop |
ca5f1062 | 213 | /sbin/chkconfig --del famd |
9671118a JR |
214 | fi |
215 | ||
6e8944d8 JR |
216 | %post libs -p /sbin/ldconfig |
217 | %postun libs -p /sbin/ldconfig | |
218 | ||
9671118a | 219 | %files common |
6e8944d8 JR |
220 | %defattr(644,root,root,755) |
221 | %doc AUTHORS ChangeLog NEWS README TODO | |
ca5f1062 | 222 | %attr(755,root,root) %{_sbindir}/* |
6e8944d8 | 223 | %config %{_sysconfdir}/%{name}.conf |
ca5f1062 JR |
224 | %{_mandir}/man5/* |
225 | %{_mandir}/man8/* | |
6e8944d8 | 226 | |
9671118a JR |
227 | %files inetd |
228 | %defattr(644,root,root,755) | |
229 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/sgi_fam | |
230 | ||
231 | %files standalone | |
232 | %defattr(644,root,root,755) | |
1f917f33 | 233 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/famd |
444c4452 | 234 | %attr(754,root,root) /etc/rc.d/init.d/famd |
9671118a | 235 | |
6e8944d8 JR |
236 | %files libs |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
239 | ||
240 | %files devel | |
241 | %defattr(644,root,root,755) | |
242 | %attr(755,root,root) %{_libdir}/lib*.so | |
243 | %{_libdir}/lib*.la | |
244 | %{_includedir}/*.h | |
245 | %{_mandir}/man3/* | |
e898c984 | 246 | %{_examplesdir}/%{name}-%{version} |
6e8944d8 JR |
247 | |
248 | %files static | |
249 | %defattr(644,root,root,755) | |
250 | %{_libdir}/*.a |