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