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