]> git.pld-linux.org Git - packages/fam.git/blob - fam.spec
- cleaned up deps
[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:        0.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 = %{version}-%{release}
44 Obsoletes:      fam < 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 = %{version}-%{release}
65 PreReq:         rc-inetd
66 Provides:       fam = %{version}-%{release}
67 Requires:       inetdaemon
68 Requires:       portmap
69 Obsoletes:      fam-standalone
70 Conflicts:      rlinetd
71 Conflicts:      inetd
72 #Requires:      xinetd
73
74 %description inetd
75 FAM configs for running from inetd.
76
77 %description inetd -l pl
78 Pliki konfiguracyjna FAM do startowania demona poprzez inetd.
79
80 %package standalone
81 Summary:        Standalone daemon configs for FAM
82 Summary(pl):    Pliki konfiguracyjne do startowania FAM w trybie standalone
83 Group:          Daemons
84 PreReq:         %{name}-common = %{version}-%{release}
85 PreReq:         rc-scripts
86 Requires(post,preun):   /sbin/chkconfig
87 Provides:       fam = %{version}-%{release}
88 Obsoletes:      fam-inetd
89
90 %description standalone
91 FAM configs for running as a standalone daemon.
92
93 %description standalone -l pl
94 Pliki konfiguracyjne FAM do startowania demona w trybie
95 standalone.
96
97 %package libs
98 Summary:        Libraries for FAM
99 Summary(pl):    Biblioteki FAMa
100 Summary(pt_BR): FAM, um monitor de alteraçoes em arquivos
101 License:        LGPL
102 Group:          Libraries
103 Obsoletes:      libfam0
104
105 %description libs
106 Libraries for FAM.
107
108 %description libs -l pl
109 Biblioteki FAMa.
110
111 %description libs -l pt_BR
112 FAM, um monitor de alteraçoes em arquivos.
113
114 %package devel
115 Summary:        Includes to develop using FAM
116 Summary(pl):    Pliki nag³ówkowe FAM
117 Summary(pt_BR): Arquivos para desenvolvimento com a libfam
118 License:        LGPL
119 Group:          Development/Libraries
120 Requires:       %{name}-libs = %{version}-%{release}
121 Requires:       libstdc++-devel
122 Obsoletes:      libfam0-devel
123
124 %description devel
125 Includes to develop using FAM.
126
127 %description devel -l pl
128 Pliki nag³ówkowe FAM.
129
130 %description devel -l pt_BR
131 Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam.
132
133 %package static
134 Summary:        FAM static libraries
135 Summary(pl):    Biblioteki statyczne FAM
136 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a libfam
137 License:        LGPL
138 Group:          Development/Libraries
139 Requires:       %{name}-devel = %{version}-%{release}
140
141 %description static
142 FAM static libraries.
143
144 %description static -l pl
145 Biblioteki statyczne FAM.
146
147 %description static -l pt_BR
148 Bibliotecas estáticas para desenvolvimento com a libfam.
149
150 %prep
151 %setup -q
152 %patch0 -p1
153 %patch1 -p1
154 %patch2 -p1
155
156 %build
157 %{__libtoolize}
158 %{__aclocal}
159 %{__autoconf}
160 %{__autoheader}
161 %{__automake}
162 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
163 %configure
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
169
170 %{__make} install \
171         DESTDIR=$RPM_BUILD_ROOT
172
173 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/sgi_fam
174 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/famd
175 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/famd
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %post inetd
181 if [ -f /var/lock/subsys/rc-inetd ]; then
182         /etc/rc.d/init.d/rc-inetd reload 1>&2
183 else
184         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
185 fi
186
187 %postun inetd
188 if [ -f /var/lock/subsys/rc-inetd ]; then
189         /etc/rc.d/init.d/rc-inetd reload
190 fi
191
192 %post standalone
193 /sbin/chkconfig --add famd
194 if [ -f /var/lock/subsys/famd ]; then
195         /etc/rc.d/init.d/famd restart 1>&2
196 else
197         echo "Run \"/etc/rc.d/init.d/famd start\" to start FAM daemon."
198 fi
199
200 %preun standalone
201 if [ "$1" = "0" ]; then
202         if [ -f /var/lock/subsys/famd ]; then
203                 /etc/rc.d/init.d/famd stop 1>&2
204         fi
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 size mtime md5) /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.067397 seconds and 3 git commands to generate.