]> git.pld-linux.org Git - packages/fam.git/blob - fam.spec
4e43a59182b60c698b3c1c50130cc314ddfd7266
[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 Conflicts:      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 < 2.7.0
73 Obsoletes:      fam-standalone
74 Conflicts:      gamin
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
81
82 %description inetd
83 FAM configs for running from inetd.
84
85 %description inetd -l pl
86 Pliki konfiguracyjna FAM do startowania demona poprzez inetd.
87
88 %package standalone
89 Summary:        Standalone daemon configs for FAM
90 Summary(pl):    Pliki konfiguracyjne do startowania FAM w trybie standalone
91 Group:          Daemons
92 Requires(post,preun):   /sbin/chkconfig
93 Requires:       %{name}-common = %{version}-%{release}
94 Requires:       /sbin/chkconfig
95 Requires:       rc-scripts
96 Provides:       fam = %{version}-%{release}
97 Obsoletes:      fam < 2.7.0
98 Obsoletes:      fam-inetd
99 Conflicts:      gamin
100
101 %description standalone
102 FAM configs for running as a standalone daemon.
103
104 %description standalone -l pl
105 Pliki konfiguracyjne FAM do startowania demona w trybie standalone.
106
107 %package libs
108 Summary:        Libraries for FAM
109 Summary(pl):    Biblioteki FAMa
110 Summary(pt_BR): FAM, um monitor de alteraçoes em arquivos
111 License:        LGPL
112 Group:          Libraries
113 Obsoletes:      libfam0
114 Conflicts:      gamin-libs
115
116 %description libs
117 Libraries for FAM.
118
119 %description libs -l pl
120 Biblioteki FAMa.
121
122 %description libs -l pt_BR
123 FAM, um monitor de alteraçoes em arquivos.
124
125 %package devel
126 Summary:        Includes to develop using FAM
127 Summary(pl):    Pliki nag³ówkowe FAM
128 Summary(pt_BR): Arquivos para desenvolvimento com a libfam
129 License:        LGPL
130 Group:          Development/Libraries
131 Requires:       %{name}-libs = %{version}-%{release}
132 Requires:       libstdc++-devel
133 Obsoletes:      libfam0-devel
134 Conflicts:      gamin-devel
135
136 %description devel
137 Includes to develop using FAM.
138
139 %description devel -l pl
140 Pliki nag³ówkowe FAM.
141
142 %description devel -l pt_BR
143 Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam.
144
145 %package static
146 Summary:        FAM static libraries
147 Summary(pl):    Biblioteki statyczne FAM
148 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a libfam
149 License:        LGPL
150 Group:          Development/Libraries
151 Requires:       %{name}-devel = %{version}-%{release}
152 Conflicts:      gamin-static
153
154 %description static
155 FAM static libraries.
156
157 %description static -l pl
158 Biblioteki statyczne FAM.
159
160 %description static -l pt_BR
161 Bibliotecas estáticas para desenvolvimento com a libfam.
162
163 %prep
164 %setup -q
165 %patch0 -p1
166 %patch1 -p1
167 %patch2 -p1
168 %patch3 -p1
169 %patch4 -p1
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
183 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
184
185 %{__make} install \
186         DESTDIR=$RPM_BUILD_ROOT
187
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
191
192 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
193 install test/test.c++ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
194
195 %clean
196 rm -rf $RPM_BUILD_ROOT
197
198 %post inetd
199 %service -q rc-inetd reload
200
201 %postun inetd
202 if [ "$1" = 0 ]; then
203         %service -q rc-inetd reload
204 fi
205
206 %post standalone
207 /sbin/chkconfig --add famd
208 %service famd restart "FAM daemon"
209
210 %preun standalone
211 if [ "$1" = "0" ]; then
212         %service famd stop
213         /sbin/chkconfig --del famd
214 fi
215
216 %post   libs -p /sbin/ldconfig
217 %postun libs -p /sbin/ldconfig
218
219 %files common
220 %defattr(644,root,root,755)
221 %doc AUTHORS ChangeLog NEWS README TODO
222 %attr(755,root,root) %{_sbindir}/*
223 %config %{_sysconfdir}/%{name}.conf
224 %{_mandir}/man5/*
225 %{_mandir}/man8/*
226
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)
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
235
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/*
246 %{_examplesdir}/%{name}-%{version}
247
248 %files static
249 %defattr(644,root,root,755)
250 %{_libdir}/*.a
This page took 0.048068 seconds and 2 git commands to generate.