@@ -31,15 +31,13 @@ Release: %%RELEASE%%%{?dist}.ngx
31
31
License: ASL 2.0
32
32
Vendor: %%PACKAGE_VENDOR%%
33
33
URL: https://unit.nginx.org/
34
- Group: System Environment/Daemons
35
34
36
35
Source0: unit-%{version}.tar.gz
37
36
Source1: unit.service
38
37
Source2: unit-debug.service
39
38
Source3: unit.example.config
40
39
Source4: unit.logrotate
41
40
42
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
43
41
BuildRequires: systemd
44
42
Requires(post): systemd
45
43
Requires(preun): systemd
@@ -68,7 +66,6 @@ dynamically via an API.
68
66
Summary: NGINX Unit (development files)
69
67
Version: %%VERSION%%
70
68
Release: %%RELEASE%%%{?dist}.ngx
71
- Group: Development/Libraries
72
69
Requires: unit == %%VERSION%%-%%RELEASE%%%{?dist}.ngx
73
70
%description devel
74
71
Library and include files required for NGINX Unit modules development.
@@ -106,7 +103,6 @@ PKG_CONFIG_PATH=%{bdir}/pkg/contrib/njs/build \
106
103
%endif
107
104
108
105
%install
109
- %{__rm} -rf %{buildroot}
110
106
%{__ln_s} build-nodebug build
111
107
DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install
112
108
%{__mkdir} -p %{buildroot}%{_bindir}
@@ -160,9 +156,6 @@ cd %{bdir}
160
156
grep -v 'usr/src' debugfiles.list > debugfiles.list.new && mv debugfiles.list.new debugfiles.list
161
157
cat /dev/null > debugsources.list
162
158
163
- %clean
164
- %{__rm} -rf %{buildroot}
165
-
166
159
%post
167
160
getent group unit >/dev/null || groupadd -r unit
168
161
getent passwd unit >/dev/null || \
@@ -213,7 +206,6 @@ More info: https://unit.nginx.org/installation/#official-packages
213
206
BANNER
214
207
215
208
%files
216
- %defattr(-,root,root,-)
217
209
%attr(0755,root,root) %{_bindir}/unitc
218
210
%attr(0755,root,root) %{_bindir}/setup-unit
219
211
%attr(0755,root,root) %{_sbindir}/unitd
0 commit comments