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