]> git.pld-linux.org Git - packages/fam.git/blob - fam.spec
- removed PORT option from inetd file, allow rlinetd (>= 0.6)
[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:        5
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 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)
26
27 %description
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
30 are changed.
31
32 %description -l pl
33 FAM dostarcza serwer i API pozwalaj±ce aplikacjom na uzyskiwanie
34 informacji o zmianach w okre¶lonych plikach lub katalogach.
35
36 %description -l pt_BR
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.
40
41 %package common
42 Summary:        FAM, the File Alteration Monitor - common files
43 Summary(pl):    Monitor zmian w plikach - wspólne pliki
44 Group:          Daemons
45 Requires:       %{name}-libs = %{version}-%{release}
46 Requires:       portmap
47 Obsoletes:      fam < 2.7.0
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
54 %description common -l pl
55 FAM dostarcza serwer i API pozwalaj±ce aplikacjom na uzyskiwanie
56 informacji o zmianach w okre¶lonych plikach lub katalogach.
57
58 %description common -l pt_BR
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.
62
63 %package inetd
64 Summary:        inetd configs for FAM
65 Summary(pl):    Pliki konfiguracyjne do u¿ycia FAM poprzez inetd
66 Group:          Daemons
67 Requires:       %{name}-common = %{version}-%{release}
68 Requires:       inetdaemon
69 Requires:       portmap
70 Requires:       rc-inetd
71 Provides:       fam = %{version}-%{release}
72 Obsoletes:      fam-standalone
73 Conflicts:      gamin
74 # no RPC support in rc-inet script before
75 Conflicts:      inetd < 0.17-12
76 # no working RPC and tcp/wait support before
77 Conflicts:      rlinetd < 0.6-1
78 # PORT option was required before
79 Conflicts:      xinetd < 2.3.14-2
80
81 %description inetd
82 FAM configs for running from inetd.
83
84 %description inetd -l pl
85 Pliki konfiguracyjna FAM do startowania demona poprzez inetd.
86
87 %package standalone
88 Summary:        Standalone daemon configs for FAM
89 Summary(pl):    Pliki konfiguracyjne do startowania FAM w trybie standalone
90 Group:          Daemons
91 Requires(post,preun):   /sbin/chkconfig
92 Requires:       %{name}-common = %{version}-%{release}
93 Requires:       /sbin/chkconfig
94 Requires:       rc-scripts
95 Provides:       fam = %{version}-%{release}
96 Obsoletes:      fam-inetd
97 Conflicts:      gamin
98
99 %description standalone
100 FAM configs for running as a standalone daemon.
101
102 %description standalone -l pl
103 Pliki konfiguracyjne FAM do startowania demona w trybie standalone.
104
105 %package libs
106 Summary:        Libraries for FAM
107 Summary(pl):    Biblioteki FAMa
108 Summary(pt_BR): FAM, um monitor de alteraçoes em arquivos
109 License:        LGPL
110 Group:          Libraries
111 Obsoletes:      libfam0
112 Conflicts:      gamin-libs
113
114 %description libs
115 Libraries for FAM.
116
117 %description libs -l pl
118 Biblioteki FAMa.
119
120 %description libs -l pt_BR
121 FAM, um monitor de alteraçoes em arquivos.
122
123 %package devel
124 Summary:        Includes to develop using FAM
125 Summary(pl):    Pliki nag³ówkowe FAM
126 Summary(pt_BR): Arquivos para desenvolvimento com a libfam
127 License:        LGPL
128 Group:          Development/Libraries
129 Requires:       %{name}-libs = %{version}-%{release}
130 Requires:       libstdc++-devel
131 Obsoletes:      libfam0-devel
132 Conflicts:      gamin-devel
133
134 %description devel
135 Includes to develop using FAM.
136
137 %description devel -l pl
138 Pliki nag³ówkowe FAM.
139
140 %description devel -l pt_BR
141 Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam.
142
143 %package static
144 Summary:        FAM static libraries
145 Summary(pl):    Biblioteki statyczne FAM
146 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a libfam
147 License:        LGPL
148 Group:          Development/Libraries
149 Requires:       %{name}-devel = %{version}-%{release}
150 Conflicts:      gamin-static
151
152 %description static
153 FAM static libraries.
154
155 %description static -l pl
156 Biblioteki statyczne FAM.
157
158 %description static -l pt_BR
159 Bibliotecas estáticas para desenvolvimento com a libfam.
160
161 %prep
162 %setup -q
163 %patch0 -p1
164 %patch1 -p1
165 %patch2 -p1
166 %patch3 -p1
167 %patch4 -p1
168
169 %build
170 %{__libtoolize}
171 %{__aclocal}
172 %{__autoconf}
173 %{__autoheader}
174 %{__automake}
175 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
176 %configure
177 %{__make}
178
179 %install
180 rm -rf $RPM_BUILD_ROOT
181 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
182
183 %{__make} install \
184         DESTDIR=$RPM_BUILD_ROOT
185
186 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/sgi_fam
187 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/famd
188 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/famd
189
190 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
191 install test/test.c++ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
192
193 %clean
194 rm -rf $RPM_BUILD_ROOT
195
196 %post inetd
197 %service -q rc-inetd reload
198
199 %postun inetd
200 if [ "$1" = 0 ]; then
201         %service -q rc-inetd reload
202 fi
203
204 %post standalone
205 /sbin/chkconfig --add famd
206 %service famd restart "FAM daemon"
207
208 %preun standalone
209 if [ "$1" = "0" ]; then
210         %service famd stop
211         /sbin/chkconfig --del famd
212 fi
213
214 %post   libs -p /sbin/ldconfig
215 %postun libs -p /sbin/ldconfig
216
217 %files common
218 %defattr(644,root,root,755)
219 %doc AUTHORS ChangeLog NEWS README TODO
220 %attr(755,root,root) %{_sbindir}/*
221 %config %{_sysconfdir}/%{name}.conf
222 %{_mandir}/man5/*
223 %{_mandir}/man8/*
224
225 %files inetd
226 %defattr(644,root,root,755)
227 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/sgi_fam
228
229 %files standalone
230 %defattr(644,root,root,755)
231 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/famd
232 %attr(754,root,root) /etc/rc.d/init.d/famd
233
234 %files libs
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_libdir}/lib*.so.*.*
237
238 %files devel
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/lib*.so
241 %{_libdir}/lib*.la
242 %{_includedir}/*.h
243 %{_mandir}/man3/*
244 %{_examplesdir}/%{name}-%{version}
245
246 %files static
247 %defattr(644,root,root,755)
248 %{_libdir}/*.a
This page took 0.092756 seconds and 3 git commands to generate.