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