forked from pool/freeradius-server
specfile cleanup
OBS-URL: https://build.opensuse.org/package/show/network/freeradius-server?expand=0&rev=19
This commit is contained in:
parent
b2bbbc554b
commit
6016e85067
@ -137,7 +137,7 @@ Authors:
|
|||||||
|
|
||||||
%package utils
|
%package utils
|
||||||
License: GPLv2 ; LGPLv2.1
|
License: GPLv2 ; LGPLv2.1
|
||||||
Group: Productivity/Networking/Radius/Servers
|
Group: Productivity/Networking/Radius/Clients
|
||||||
Summary: FreeRADIUS Clients
|
Summary: FreeRADIUS Clients
|
||||||
Requires: %{name}-libs = %{version}
|
Requires: %{name}-libs = %{version}
|
||||||
|
|
||||||
@ -246,7 +246,8 @@ export CFLAGS="$CFLAGS -fPIC -DPIC"
|
|||||||
%endif
|
%endif
|
||||||
export LDFLAGS="-pie"
|
export LDFLAGS="-pie"
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static --with-pic\
|
--disable-static \
|
||||||
|
--with-pic \
|
||||||
--libdir=%{_libdir}/freeradius \
|
--libdir=%{_libdir}/freeradius \
|
||||||
--disable-ltdl-install \
|
--disable-ltdl-install \
|
||||||
--enable-strict-dependencies \
|
--enable-strict-dependencies \
|
||||||
@ -331,7 +332,7 @@ chgrp radiusd /etc/raddb/certs/*
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update freeradius
|
%restart_on_update freeradius
|
||||||
%insserv_cleanup
|
%{insserv_cleanup}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -383,7 +384,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_sysconfdir}/raddb/sql/ndb/README
|
%{_sysconfdir}/raddb/sql/ndb/README
|
||||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.conf
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.conf
|
||||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.sql
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.sql
|
||||||
%{_sysconfdir}/raddb/sql/*/*.txt
|
%{_sysconfdir}/raddb/sql/oracle/msqlippool.txt
|
||||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/users
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/users
|
||||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/experimental.conf
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/experimental.conf
|
||||||
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/certs
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/certs
|
||||||
@ -404,7 +405,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%attr(700,radiusd,radiusd) %dir %{_localstatedir}/run/radiusd/
|
%attr(700,radiusd,radiusd) %dir %{_localstatedir}/run/radiusd/
|
||||||
# binaries
|
# binaries
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
# %{_sbindir}/check-radiusd-config
|
|
||||||
%{_sbindir}/checkrad
|
%{_sbindir}/checkrad
|
||||||
%{_sbindir}/radiusd
|
%{_sbindir}/radiusd
|
||||||
%{_sbindir}/radmin
|
%{_sbindir}/radmin
|
||||||
@ -432,13 +432,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
|
%defattr(-,root,root)
|
||||||
# RADIUS shared libs
|
# RADIUS shared libs
|
||||||
%attr(755,root,root) %dir %{_libdir}/freeradius
|
%attr(755,root,root) %dir %{_libdir}/freeradius
|
||||||
%attr(755,root,root) %{_libdir}/freeradius/lib*.so*
|
%attr(755,root,root) %{_libdir}/freeradius/lib*.so*
|
||||||
%if %{_oracle_support} == 1
|
%if %{_oracle_support} == 1
|
||||||
|
|
||||||
%files oracle
|
%files oracle
|
||||||
%defattr(-,root,root)
|
%defattr(-,radiusd,radiusd)
|
||||||
%attr(755,root,root) %dir %{_libdir}/freeradius
|
%attr(755,root,root) %dir %{_libdir}/freeradius
|
||||||
%attr(755,root,root) %{_libdir}/freeradius/rlm_sql_oracle*.so*
|
%attr(755,root,root) %{_libdir}/freeradius/rlm_sql_oracle*.so*
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user