]> git.pld-linux.org Git - packages/fam.git/blob - fam.spec
- updated to 2.6.10
[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:        1
7 License:        GPL
8 Group:          Networking/Daemons
9 Source0:        ftp://oss.sgi.com/projects/fam/download/%{name}-%{version}.tar.gz
10 Source1:        %{name}.inetd
11 Patch0:         %{name}-dnotify.patch
12 Patch1:         %{name}-build.patch
13 Patch2:         %{name}-rpcsvc.patch
14 URL:            http://oss.sgi.com/projects/fam/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool
19 Prereq:         rc-inetd
20 Requires:       %{name}-libs = %{version}
21 Requires:       inetdaemon
22 Requires:       portmap
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
26 %if %{_gcc_ver} == 2
27 %define         __cxx           "%{__cc}"
28 %endif
29
30 %description
31 fam, the File Alteration Monitor, provides a daemon and an API which
32 applications can use to be notified when specific files or directories
33 are changed.
34
35 %description -l pl
36 fam dostarcza serwer i API pozwalaj±ce aplikacjom na uzyskiwanie
37 informacji o zmianach w okre¶lonych plikach lub katalogach.
38
39 %description -l pt_BR
40 O fam fornece um servidor e uma API que aplicações podem usar para
41 receber notificações sobre mudanças em arquivos ou diretórios
42 específicos.
43
44 %package libs
45 Summary:        Libraries for FAM
46 Summary(pl):    Biblioteki FAMa
47 Summary(pt_BR): FAM, um monitor de alteraçoes em arquivos
48 License:        LGPL
49 Group:          Libraries
50 Obsoletes:      libfam0
51
52 %description libs
53 Libraries for FAM.
54
55 %description libs -l pl
56 Biblioteki FAMa.
57
58 %description libs -l pt_BR
59 FAM, um monitor de alteraçoes em arquivos.
60
61 %package devel
62 Summary:        Includes to develop using FAM
63 Summary(pl):    Pliki nag³ówkowe FAM
64 Summary(pt_BR): Arquivos para desenvolvimento com a libfam
65 License:        LGPL
66 Group:          Development/Libraries
67 Requires:       %{name}-libs = %{version}
68 Obsoletes:      libfam0-devel
69
70 %description devel
71 Includes to develop using FAM.
72
73 %description devel -l pl
74 Pliki nag³ówkowe FAM.
75
76 %description devel -l pt_BR
77 Bibliotecas e arquivos de inclusão para desenvolvimento com a libfam.
78
79 %package static
80 Summary:        FAM static libraries
81 Summary(pl):    Biblioteki statyczne FAM
82 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a libfam
83 License:        LGPL
84 Group:          Development/Libraries
85 Requires:       %{name}-devel = %{version}
86
87 %description static
88 FAM static libraries.
89
90 %description static -l pl
91 Biblioteki statyczne FAM.
92
93 %description static -l pt_BR
94 Bibliotecas estáticas para desenvolvimento com a libfam.
95
96 %prep
97 %setup -q
98 %patch0 -p1
99 %patch1 -p1
100 %patch2 -p1
101
102 %build
103 rm -f missing
104 %{__libtoolize}
105 %{__aclocal}
106 %{__autoconf}
107 %{__automake}
108 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
109 %configure
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/sgi_fam
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post
125 if [ -f /var/lock/subsys/rc-inetd ]; then
126         /etc/rc.d/init.d/rc-inetd reload 1>&2
127 else
128         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
129 fi
130
131 %postun
132 if [ -f /var/lock/subsys/rc-inetd ]; then
133         /etc/rc.d/init.d/rc-inetd reload
134 fi
135
136 %post   libs -p /sbin/ldconfig
137 %postun libs -p /sbin/ldconfig
138
139 %files
140 %defattr(644,root,root,755)
141 %doc AUTHORS ChangeLog NEWS README TODO
142 %attr(755,root,root) %{_bindir}/*
143 %config %{_sysconfdir}/%{name}.conf
144 %attr(640,root,root) /etc/sysconfig/rc-inetd/sgi_fam
145 %{_mandir}/man1/fam.1m*
146
147 %files libs
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/lib*.so.*.*
150
151 %files devel
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/lib*.so
154 %{_libdir}/lib*.la
155 %{_includedir}/*.h
156 %{_mandir}/man3/*
157
158 %files static
159 %defattr(644,root,root,755)
160 %{_libdir}/*.a
This page took 0.075704 seconds and 3 git commands to generate.