]>
Commit | Line | Data |
---|---|---|
1 | Summary: Library providing the gamin File Alteration Monitor API | |
2 | Summary(pl.UTF-8): Biblioteka dostarczająca File Alteration Monitor API gamina | |
3 | Name: gamin | |
4 | Version: 0.1.10 | |
5 | Release: 7 | |
6 | License: LGPL v2.1 | |
7 | Group: Libraries | |
8 | Source0: http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: b4ec549e57da470c04edd5ec2876a028 | |
10 | Patch0: %{name}-glib.patch | |
11 | Patch1: double-lock.patch | |
12 | URL: http://www.gnome.org/~veillard/gamin/ | |
13 | BuildRequires: autoconf >= 2.52 | |
14 | BuildRequires: automake | |
15 | BuildRequires: glib2-devel | |
16 | BuildRequires: libtool | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: python-devel | |
19 | BuildRequires: python-modules | |
20 | BuildRequires: rpm-pythonprov | |
21 | Provides: fam | |
22 | Provides: fam-libs | |
23 | Obsoletes: fam | |
24 | Obsoletes: fam-common | |
25 | Obsoletes: fam-inetd | |
26 | Obsoletes: fam-libs | |
27 | Obsoletes: fam-standalone | |
28 | Obsoletes: gamin-inetd | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | This C library provides an API and ABI compatible file alteration | |
33 | monitor mechanism compatible with gamin but not dependant on a system | |
34 | wide daemon. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Ta biblioteka C dostarcza mechanizm monitorowania zmian plików | |
38 | kompatybilny na poziomie API i ABI z gaminem, ale niezależny od | |
39 | ogólnosystemowego demona. | |
40 | ||
41 | %package docs | |
42 | Summary: Documentation for gamin | |
43 | Summary(pl.UTF-8): Dokumentacja dla gamina | |
44 | Group: Documentation | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description docs | |
48 | Documentation for gamin. | |
49 | ||
50 | %description docs -l pl.UTF-8 | |
51 | Dokumentacja dla gamina. | |
52 | ||
53 | %package devel | |
54 | Summary: Includes to develop using gamin | |
55 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z użyciem gamina | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires: glib2-devel | |
59 | Provides: fam-devel | |
60 | Obsoletes: fam-devel | |
61 | ||
62 | %description devel | |
63 | Includes to develop using gamin. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe do tworzenia programów z użyciem gamina. | |
67 | ||
68 | %package static | |
69 | Summary: gamin static libraries | |
70 | Summary(pl.UTF-8): Statyczne biblioteki gamina | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | Provides: fam-static | |
74 | Obsoletes: fam-static | |
75 | ||
76 | %description static | |
77 | gamin static libraries. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczne biblioteki gamina. | |
81 | ||
82 | %package -n python-gamin | |
83 | Summary: Python modules for gamin | |
84 | Summary(pl.UTF-8): Moduły języka Python dla gamina | |
85 | Group: Libraries/Python | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | %pyrequires_eq python-libs | |
88 | ||
89 | %description -n python-gamin | |
90 | Python modules for gamin. | |
91 | ||
92 | %description -n python-gamin -l pl.UTF-8 | |
93 | Moduły języka Python dla gamina. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
97 | %patch0 -p1 | |
98 | %patch1 -p1 | |
99 | ||
100 | %build | |
101 | %{__libtoolize} | |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | %configure \ | |
107 | --%{?debug:en}%{!?debug:dis}able-debug | |
108 | ||
109 | %{__make} \ | |
110 | CFLAGS="%{rpmcflags} -D_GNU_SOURCE" | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | rm -rf html | |
115 | install -d html | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | cp -a doc/*.{html,gif} html | |
121 | ||
122 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
123 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
124 | ||
125 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/gam_server | |
136 | %attr(755,root,root) %{_libdir}/libfam.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libfam.so.0 | |
138 | %attr(755,root,root) %{_libdir}/libgamin-1.so.*.*.* | |
139 | %attr(755,root,root) %ghost %{_libdir}/libgamin-1.so.0 | |
140 | ||
141 | %files docs | |
142 | %defattr(644,root,root,755) | |
143 | %doc AUTHORS ChangeLog README TODO html doc/*.txt | |
144 | ||
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_libdir}/libfam.so | |
148 | %attr(755,root,root) %{_libdir}/libgamin-1.so | |
149 | %{_libdir}/libfam.la | |
150 | %{_libdir}/libgamin-1.la | |
151 | %{_includedir}/fam.h | |
152 | %{_pkgconfigdir}/gamin.pc | |
153 | ||
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libfam.a | |
157 | %{_libdir}/libgamin-1.a | |
158 | %{_libdir}/libgamin_shared.a | |
159 | ||
160 | %files -n python-gamin | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{py_sitedir}/_gamin.so | |
163 | %{py_sitedir}/*.py[co] |