]>
Commit | Line | Data |
---|---|---|
4f1e4a56 AM |
1 | Summary: Library providing the gamin File Alteration Monitor API |
2 | Name: gamin | |
3 | Version: 0.0.2 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Networking/Daemons | |
7 | Source0: http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 17fda5a2e288b93944fd814254bad4c3 | |
9 | Source1: %{name}.inetd | |
10 | BuildRequires: autoconf | |
11 | BuildRequires: automake | |
12 | BuildRequires: libtool | |
13 | PreReq: rc-inetd | |
14 | Requires: %{name}-libs = %{version}-%{release} | |
15 | Requires: inetdaemon | |
16 | Requires: portmap | |
17 | Provides: fam | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This C library provides an API and ABI compatible file alteration | |
22 | monitor mechanism compatible with gamin but not dependant on a system wide | |
23 | daemon. | |
24 | ||
25 | %package libs | |
26 | Summary: Libraries for gamin | |
27 | License: LGPL | |
28 | Group: Libraries | |
29 | Obsoletes: libfam0 | |
30 | Provides: fam-libs | |
31 | ||
32 | %description libs | |
33 | Libraries for gamin. | |
34 | ||
35 | %package devel | |
36 | Summary: Includes to develop using gamin | |
37 | License: LGPL | |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-libs = %{version}-%{release} | |
40 | Requires: libstdc++-devel | |
41 | Obsoletes: libfam0-devel | |
42 | Provides: fam-devel | |
43 | ||
44 | %description devel | |
45 | Includes to develop using gamin. | |
46 | ||
47 | %package static | |
48 | Summary: gamin static libraries | |
49 | License: LGPL | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | Provides: fam-static | |
53 | ||
54 | %description static | |
55 | gamin static libraries. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %build | |
61 | %{__libtoolize} | |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__automake} | |
65 | %configure | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/gamin | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post | |
81 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
82 | /etc/rc.d/init.d/rc-inetd reload 1>&2 | |
83 | else | |
84 | echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2 | |
85 | fi | |
86 | ||
87 | %postun | |
88 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
89 | /etc/rc.d/init.d/rc-inetd reload | |
90 | fi | |
91 | ||
92 | %post libs -p /sbin/ldconfig | |
93 | %postun libs -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog README TODO | |
98 | %attr(755,root,root) %{_bindir}/* | |
99 | %config %{_sysconfdir}/%{name}.conf | |
100 | %attr(640,root,root) /etc/sysconfig/rc-inetd/gamin | |
101 | ||
102 | %files libs | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/lib*.so | |
109 | %{_libdir}/lib*.la | |
110 | %{_includedir}/*.h | |
111 | %{_pkgconfigdir}/*.pc | |
112 | ||
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/*.a |