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