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