1 Summary: FAM, the File Alteration Monitor
2 Summary(pl.UTF-8): Monitor zmian w plikach
3 Summary(pt_BR.UTF-8): FAM, um monitor de alterações em arquivos
9 Source0: ftp://oss.sgi.com/projects/fam/download/stable/%{name}-%{version}.tar.gz
10 # Source0-md5: 1bf3ae6c0c58d3201afc97c6a4834e39
11 Source1: %{name}.inetd
13 Source3: %{name}.sysconfig
14 Patch0: %{name}-dnotify.patch
15 Patch1: %{name}-cleanup.patch
16 Patch2: %{name}-gcc34.patch
17 Patch3: %{name}-paths.patch
18 Patch4: %{name}-gcc4.patch
19 URL: http://oss.sgi.com/projects/fam/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool
24 BuildRequires: rpmbuild(macros) >= 1.268
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 FAM, the File Alteration Monitor, provides a daemon and an API which
29 applications can use to be notified when specific files or directories
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.
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
42 Summary: FAM, the File Alteration Monitor - common files
43 Summary(pl.UTF-8): Monitor zmian w plikach - wspólne pliki
45 Requires: %{name}-libs = %{version}-%{release}
47 Conflicts: fam < 2.7.0
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
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.
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
64 Summary: inetd configs for FAM
65 Summary(pl.UTF-8): Pliki konfiguracyjne do użycia FAM poprzez inetd
67 Requires: %{name}-common = %{version}-%{release}
71 Provides: fam = %{version}-%{release}
72 Obsoletes: fam < 2.7.0
73 Obsoletes: fam-standalone
75 # no RPC support in rc-inet script before
76 Conflicts: inetd < 0.17-12
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
83 FAM configs for running from inetd.
85 %description inetd -l pl.UTF-8
86 Pliki konfiguracyjna FAM do startowania demona poprzez inetd.
89 Summary: Standalone daemon configs for FAM
90 Summary(pl.UTF-8): Pliki konfiguracyjne do startowania FAM w trybie standalone
92 Requires(post,preun): /sbin/chkconfig
93 Requires: %{name}-common = %{version}-%{release}
94 Requires: /sbin/chkconfig
96 Provides: fam = %{version}-%{release}
97 Obsoletes: fam < 2.7.0
101 %description standalone
102 FAM configs for running as a standalone daemon.
104 %description standalone -l pl.UTF-8
105 Pliki konfiguracyjne FAM do startowania demona w trybie standalone.
108 Summary: Libraries for FAM
109 Summary(pl.UTF-8): Biblioteki FAMa
110 Summary(pt_BR.UTF-8): FAM, um monitor de alteraçoes em arquivos
114 Conflicts: gamin-libs
119 %description libs -l pl.UTF-8
122 %description libs -l pt_BR.UTF-8
123 FAM, um monitor de alteraçoes em arquivos.
126 Summary: Includes to develop using FAM
127 Summary(pl.UTF-8): Pliki nagłówkowe FAM
128 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com a libfam
130 Group: Development/Libraries
131 Requires: %{name}-libs = %{version}-%{release}
132 Requires: libstdc++-devel
133 Obsoletes: libfam0-devel
134 Conflicts: gamin-devel
137 Includes to develop using FAM.
139 %description devel -l pl.UTF-8
140 Pliki nagłówkowe FAM.
142 %description devel -l pt_BR.UTF-8
143 Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam.
146 Summary: FAM static libraries
147 Summary(pl.UTF-8): Biblioteki statyczne FAM
148 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a libfam
150 Group: Development/Libraries
151 Requires: %{name}-devel = %{version}-%{release}
152 Conflicts: gamin-static
155 FAM static libraries.
157 %description static -l pl.UTF-8
158 Biblioteki statyczne FAM.
160 %description static -l pt_BR.UTF-8
161 Bibliotecas estáticas para desenvolvimento com a libfam.
177 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
182 rm -rf $RPM_BUILD_ROOT
183 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
186 DESTDIR=$RPM_BUILD_ROOT
188 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/sgi_fam
189 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/famd
190 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/famd
192 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
193 install test/test.c++ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
196 rm -rf $RPM_BUILD_ROOT
199 %service -q rc-inetd reload
202 if [ "$1" = 0 ]; then
203 %service -q rc-inetd reload
207 /sbin/chkconfig --add famd
208 %service famd restart "FAM daemon"
211 if [ "$1" = "0" ]; then
213 /sbin/chkconfig --del famd
216 %post libs -p /sbin/ldconfig
217 %postun libs -p /sbin/ldconfig
220 %defattr(644,root,root,755)
221 %doc AUTHORS ChangeLog NEWS README TODO
222 %attr(755,root,root) %{_sbindir}/*
223 %config %{_sysconfdir}/%{name}.conf
228 %defattr(644,root,root,755)
229 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/sgi_fam
232 %defattr(644,root,root,755)
233 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/famd
234 %attr(754,root,root) /etc/rc.d/init.d/famd
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/lib*.so.*.*
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/lib*.so
246 %{_examplesdir}/%{name}-%{version}
249 %defattr(644,root,root,755)