]> git.pld-linux.org Git - packages/gamin.git/blob - gamin.spec
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168744
[packages/gamin.git] / gamin.spec
1 Summary:        Library providing the gamin File Alteration Monitor API
2 Summary(pl):    Biblioteka dostarczaj±ca File Alteration Monitor API gamina
3 Name:           gamin
4 Version:        0.1.6
5 Release:        2
6 License:        LGPL
7 Group:          Networking/Daemons
8 Source0:        http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz
9 # Source0-md5:  9c306b964ca95044a19c273dffd24001
10 Patch0:         %{name}-inotify.patch
11 Patch1:         %{name}-doublefree_fix.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
19 BuildRequires:  python-devel
20 Requires:       %{name}-libs = %{version}-%{release}
21 Obsoletes:      gamin-inetd
22 Provides:       fam = %{name}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This C library provides an API and ABI compatible file alteration
27 monitor mechanism compatible with gamin but not dependant on a system
28 wide daemon.
29
30 %description -l pl
31 Ta biblioteka C dostarcza mechanizm monitorowania zmian plików
32 kompatybilny na poziomie API i ABI z gaminem, ale niezale¿ny od
33 ogólnosystemowego demona.
34
35 %package libs
36 Summary:        Libraries for gamin
37 Summary(pl):    Biblioteki dla gamina
38 Group:          Libraries
39 Provides:       fam-libs = %{name}-libs
40
41 %description libs
42 Libraries for gamin.
43
44 %description libs -l pl
45 Biblioteki dla gamina.
46
47 %package devel
48 Summary:        Includes to develop using gamin
49 Summary(pl):    Pliki nag³ówkowe do tworzenia programów z u¿yciem gamina
50 Group:          Development/Libraries
51 Requires:       %{name}-libs = %{version}-%{release}
52 Requires:       glib2-devel
53 Provides:       fam-devel = %{name}-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 = %{name}-static
67
68 %description static
69 gamin static libraries.
70
71 %description static -l pl
72 Statyczne biblioteki gamina.
73
74 %package -n python-gamin
75 Summary:        Python modules for gamin
76 Summary(pl):    Modu³y jêzyka Python dla gamina
77 Group:          Libraries/Python
78 Requires:       %{name} = %{version}-%{release}
79 %pyrequires_eq  python-libs
80
81 %description -n python-gamin
82 Python modules for gamin.
83
84 %description -n python-gamin -l pl
85 Modu³y jêzyka Python dla gamina.
86
87 %prep
88 %setup -q
89 %patch0 -p1
90 %patch1 -p0
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure \
99         --%{?debug:en}%{!?debug:dis}able-debug
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
109 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
110
111 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post   libs -p /sbin/ldconfig
117 %postun libs -p /sbin/ldconfig
118
119 %files
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog README TODO
122 %attr(755,root,root) %{_libdir}/gam_server
123
124 %files libs
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*.so
131 %{_libdir}/lib*.la
132 %{_includedir}/*.h
133 %{_pkgconfigdir}/*.pc
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/lib*.a
138
139 %files -n python-gamin
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{py_sitedir}/*.so
142 %{py_sitedir}/*.py[co]
This page took 0.125 seconds and 4 git commands to generate.