]> git.pld-linux.org Git - packages/gamin.git/blob - gamin.spec
- added BR: pkgconfig
[packages/gamin.git] / gamin.spec
1 Summary:        Library providing the gamin File Alteration Monitor API
2 Summary(pl):    Biblioteka dostarczaj±ca File Alternation Monitor Api gamina
3 Name:           gamin
4 Version:        0.0.20
5 Release:        1
6 License:        LGPL
7 Group:          Networking/Daemons
8 Source0:        http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz
9 # Source0-md5:  6fef61914cca3b6cdd6cce3e391024bb
10 Source1:        %{name}.inetd
11 URL:            http://www.gnome.org/~veillard/gamin/
12 BuildRequires:  autoconf >= 2.52
13 BuildRequires:  automake
14 BuildRequires:  glib2-devel
15 BuildRequires:  libtool
16 BuildRequires:  pkgconfig
17 Requires:       %{name}-libs = %{version}-%{release}
18 Requires:       portmap
19 Provides:       fam
20 Obsoletes:      fam
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This C library provides an API and ABI compatible file alteration
25 monitor mechanism compatible with gamin but not dependant on a system
26 wide daemon.
27
28 %description -l pl
29 Ta biblioteka C dostarcza mechanizm monitorowania zmian plików
30 kompatybilny na poziomie API i ABI z gaminem, ale niezale¿ny od
31 ogólnosystemowego demona.
32
33 %package libs
34 Summary:        Libraries for gamin
35 Summary(pl):    Biblioteki dla gamina
36 Group:          Libraries
37 Provides:       fam-libs
38 Obsoletes:      fam-libs
39
40 %description libs
41 Libraries for gamin.
42
43 %description libs -l pl
44 Biblioteki dla gamina.
45
46 %package devel
47 Summary:        Includes to develop using gamin
48 Summary(pl):    Pliki nag³ówkowe do tworzenia programów z u¿yciem gamina
49 Group:          Development/Libraries
50 Requires:       %{name}-libs = %{version}-%{release}
51 Requires:       glib2-devel
52 Provides:       fam-devel
53 Obsoletes:      fam-devel
54
55 %description devel
56 Includes to develop using gamin.
57
58 %description devel -l pl
59 Pliki nag³ówkowe do tworzenia programów z u¿yciem gamina.
60
61 %package static
62 Summary:        gamin static libraries
63 Summary(pl):    Statyczne biblioteki gamina
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66 Provides:       fam-static
67 Obsoletes:      fam-static
68
69 %description static
70 gamin static libraries.
71
72 %description static -l pl
73 Statyczne biblioteki gamina.
74
75 %package inetd
76 Summary:        inetd config for gamin
77 Summary(pl):    Plik konfiguracyjny do u¿ycia gamin przez inetd
78 Group:          Daemons
79 PreReq:         %{name} = %{version}-%{release}
80 PreReq:         rc-inetd
81 Requires:       inetdaemon
82
83 %description inetd
84 inetd config for gamin.
85
86 %description inetd -l pl
87 Plik konfiguracyjny do u¿ycia gamin przez inetd.
88
89 %prep
90 %setup -q
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__automake}
97 %configure
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 cat %{SOURCE1} | sed -e 's@/usr/lib@%{_libdir}@' > \
108         $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/gamin
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   libs -p /sbin/ldconfig
114 %postun libs -p /sbin/ldconfig
115
116 %post inetd
117 if [ -f /var/lock/subsys/rc-inetd ]; then
118         /etc/rc.d/init.d/rc-inetd reload 1>&2
119 else
120         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
121 fi
122
123 %postun inetd
124 if [ -f /var/lock/subsys/rc-inetd ]; then
125         /etc/rc.d/init.d/rc-inetd reload
126 fi
127
128 %files
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog README TODO
131 %attr(755,root,root) %{_libdir}/gam_server
132
133 %files libs
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/lib*.so
140 %{_libdir}/lib*.la
141 %{_includedir}/*.h
142 %{_pkgconfigdir}/*.pc
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/*.a
147
148 %files inetd
149 %defattr(644,root,root,755)
150 %attr(640,root,root) /etc/sysconfig/rc-inetd/gamin
This page took 0.037831 seconds and 3 git commands to generate.