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