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