Small cleanups in spec

tags/c-icap-0.5.3-0.beta2
Daniel Berteaud 6 years ago
parent 1d2aee1975
commit 5f78087f25
  1. 18
      c-icap.spec

@ -76,24 +76,18 @@ Requires: %{name}-libs = %{version}-%{release}
%description progs
The %{name}-progs package contains several commandline tools for %{name}.
%prep
%setup -q -n %{modn}-%{version}
%build
%configure \
CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" \
--sysconfdir=%{_sysconfdir}/%{name} \
--enable-shared \
--enable-static \
--enable-lib-compat \
--with-perl \
--with-zlib \
--with-bdb \
--with-ldap \
--enable-large-files
# --enable-ipv6 # net.ipv6.bindv6only not supported
%{__make} %{?_smp_mflags}
@ -105,19 +99,13 @@ The %{name}-progs package contains several commandline tools for %{name}.
%{__mkdir_p} %{buildroot}%{_datadir}/%{modn}/{contrib,templates}
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{name}
%{__make} \
DESTDIR=%{buildroot} \
install
%{__make} DESTDIR=%{buildroot} install
%{__mv} -f %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%{__install} -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service
%{__install} -m 0755 contrib/*.pl %{buildroot}%{_datadir}/%{modn}/contrib
%{__rm} -f %{buildroot}%{_libdir}/lib*.so.{?,??}
@ -139,18 +127,14 @@ exit 0 # Always pass
%post libs -p /sbin/ldconfig
%preun
%systemd_preun c-icap.service
%postun
%systemd_postun_with_restart c-icap.service
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README TODO

Loading…
Cancel
Save