-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinotify-tools.spec
More file actions
148 lines (121 loc) · 4.02 KB
/
inotify-tools.spec
File metadata and controls
148 lines (121 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# Conditional build:
%bcond_without static_libs # don't build static library
#
Summary: inotify-tools provides a simple interface to inotify
Summary(pl.UTF-8): inotify-tools dostarcza interfejs do inotify
Name: inotify-tools
Version: 4.25.9.0
Release: 1
License: GPL v2
Group: Applications/System
#Source0Download: https://github.com/inotify-tools/inotify-tools/releases
Source0: https://github.com/inotify-tools/inotify-tools/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 73d4fb2efd8842a2c21cc3d90b295635
URL: https://github.com/inotify-tools/inotify-tools/wiki
BuildRequires: autoconf >= 2.59
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:2
BuildRequires: rpm-build >= 4.6
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
inotify-tools is a C library and a set of command-line programs for
Linux providing a simple interface to inotify. These programs can be
used to monitor and act upon filesystem events. The programs are
written in C and have no dependencies other than a Linux kernel
supporting inotify.
%description -l pl.UTF-8
inotify-tools jest zestawem składającym się z biblioteki C oraz
działających z linii poleceń programów, zapewniających prosty
interfejs do systemu inotify w Linuksie. Programy te mogą służyć do
monitorowania systemu plików jak również do wykonywania operacji na
podstawie zachodzących w systemie plików zdarzeń. Poza obsługą inotify
w jądrze Linuksa nie są wymagane żadne dodatkowe zależności.
%package libs
Summary: Shared inotify-tools library
Summary(pl.UTF-8): Biblioteka współdzielona inotify-tools
Group: Libraries
%description libs
Shared inotify-tools library.
%description libs -l pl.UTF-8
Biblioteka współdzielona inotify-tools.
%package devel
Summary: Header files for inotify-tools library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki inotify-tools
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%description devel
Header files for inotify-tools library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki inotify-tools.
%package static
Summary: Static inotify-tools library
Summary(pl.UTF-8): Statyczna biblioteka dla inotify-tools
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static inotify-tools library.
%description static -l pl.UTF-8
Statyczna biblioteka inotify-tools.
%package apidocs
Summary: API documentation for inotify-tools library
Summary(pl.UTF-8): Dokumentacja API biblioteki inotify-tools
Group: Documentation
BuildArch: noarch
%description apidocs
API documentation for inotify-tools library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki inotify-tools.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
--enable-doxygen \
--enable-static%{!?with_static_libs:=no}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# packaged as %doc in -devel
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README.md
%attr(755,root,root) %{_bindir}/fsnotifywait
%attr(755,root,root) %{_bindir}/fsnotifywatch
%attr(755,root,root) %{_bindir}/inotifywait
%attr(755,root,root) %{_bindir}/inotifywatch
%{_mandir}/man1/fsnotifywait.1*
%{_mandir}/man1/fsnotifywatch.1*
%{_mandir}/man1/inotifywait.1*
%{_mandir}/man1/inotifywatch.1*
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libinotifytools.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libinotifytools.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libinotifytools.so
%{_libdir}/libinotifytools.la
%{_includedir}/inotifytools
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libinotifytools.a
%endif
%files apidocs
%defattr(644,root,root,755)
%doc libinotifytools/src/doc/html/*