Small cleanups in spec

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

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

Loading…
Cancel
Save