- more spec file clean up from review comments
- remove freeradius-libs subpackage, move libfreeradius-eap and libfreeradius-radius into the main package - fix subpackage requires, change from freeradius-libs to main package - fix description of the devel subpackage, remove referene to non-shipped libs - remove execute permissions on src files included in debuginfo
This commit is contained in:
parent
e6360f6da4
commit
1edb135030
@ -1,11 +1,13 @@
|
|||||||
Summary: High-performance and highly configurable free RADIUS server
|
Summary: High-performance and highly configurable free RADIUS server
|
||||||
Name: freeradius
|
Name: freeradius
|
||||||
Version: 2.1.7
|
Version: 2.1.7
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.freeradius.org/
|
URL: http://www.freeradius.org/
|
||||||
|
|
||||||
|
Obsoletes: freeradius-libs
|
||||||
|
|
||||||
Source0: ftp://ftp.freeradius.org/pub/radius/freeradius-server-%{version}.tar.bz2
|
Source0: ftp://ftp.freeradius.org/pub/radius/freeradius-server-%{version}.tar.bz2
|
||||||
Source100: freeradius-radiusd-init
|
Source100: freeradius-radiusd-init
|
||||||
Source102: freeradius-logrotate
|
Source102: freeradius-logrotate
|
||||||
@ -48,17 +50,10 @@ more. Using RADIUS allows authentication and authorization for a network to
|
|||||||
be centralized, and minimizes the amount of re-configuration which has to be
|
be centralized, and minimizes the amount of re-configuration which has to be
|
||||||
done when adding or deleting new users.
|
done when adding or deleting new users.
|
||||||
|
|
||||||
%package libs
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
Summary: FreeRADIUS shared libraries
|
|
||||||
|
|
||||||
%description libs
|
|
||||||
The FreeRADIUS shared library
|
|
||||||
|
|
||||||
%package utils
|
%package utils
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: FreeRADIUS utilities
|
Summary: FreeRADIUS utilities
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libpcap >= 0.9.4
|
Requires: libpcap >= 0.9.4
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
@ -73,16 +68,15 @@ attributes Selecting a particular configuration Authentication methods
|
|||||||
%package devel
|
%package devel
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: FreeRADIUS Development Files
|
Summary: FreeRADIUS Development Files
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
These are the static libraries for the FreeRADIUS package.
|
Header files for the FreeRADIUS package.
|
||||||
|
|
||||||
|
|
||||||
%package ldap
|
%package ldap
|
||||||
Summary: LDAP support for freeradius
|
Summary: LDAP support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
|
|
||||||
%description ldap
|
%description ldap
|
||||||
@ -91,7 +85,7 @@ This plugin provides the LDAP support for the FreeRADIUS server project.
|
|||||||
%package krb5
|
%package krb5
|
||||||
Summary: Kerberos 5 support for freeradius
|
Summary: Kerberos 5 support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
|
|
||||||
%description krb5
|
%description krb5
|
||||||
@ -100,7 +94,7 @@ This plugin provides the Kerberos 5 support for the FreeRADIUS server project.
|
|||||||
%package perl
|
%package perl
|
||||||
Summary: Perl support for freeradius
|
Summary: Perl support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
@ -115,7 +109,7 @@ This plugin provides the Perl support for the FreeRADIUS server project.
|
|||||||
%package python
|
%package python
|
||||||
Summary: Python support for freeradius
|
Summary: Python support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
@ -124,7 +118,7 @@ This plugin provides the Python support for the FreeRADIUS server project.
|
|||||||
%package mysql
|
%package mysql
|
||||||
Summary: MySQL support for freeradius
|
Summary: MySQL support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
|
|
||||||
%description mysql
|
%description mysql
|
||||||
@ -133,7 +127,7 @@ This plugin provides the MySQL support for the FreeRADIUS server project.
|
|||||||
%package postgresql
|
%package postgresql
|
||||||
Summary: Postgresql support for freeradius
|
Summary: Postgresql support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
|
|
||||||
%description postgresql
|
%description postgresql
|
||||||
@ -142,7 +136,7 @@ This plugin provides the postgresql support for the FreeRADIUS server project.
|
|||||||
%package unixODBC
|
%package unixODBC
|
||||||
Summary: Unix ODBC support for freeradius
|
Summary: Unix ODBC support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: unixODBC-devel
|
BuildRequires: unixODBC-devel
|
||||||
|
|
||||||
%description unixODBC
|
%description unixODBC
|
||||||
@ -151,6 +145,8 @@ This plugin provides the unixODBC support for the FreeRADIUS server project.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n freeradius-server-%{version}
|
%setup -q -n freeradius-server-%{version}
|
||||||
|
# Some source files mistakenly have execute permissions set
|
||||||
|
find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \) -a -perm /0111 -exec chmod a-x {} +
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
@ -266,11 +262,6 @@ getent group radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
|
|||||||
getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
|
getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%pre libs
|
|
||||||
getent group radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
|
|
||||||
getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%pre mysql
|
%pre mysql
|
||||||
getent group radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
|
getent group radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
|
||||||
getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
|
getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
|
||||||
@ -455,6 +446,8 @@ fi
|
|||||||
%dir %attr(700,radiusd,radiusd) /var/log/radius/radacct/
|
%dir %attr(700,radiusd,radiusd) /var/log/radius/radacct/
|
||||||
%ghost %attr(644,radiusd,radiusd) /var/log/radius/radutmp
|
%ghost %attr(644,radiusd,radiusd) /var/log/radius/radutmp
|
||||||
%ghost %attr(600,radiusd,radiusd) /var/log/radius/radius.log
|
%ghost %attr(600,radiusd,radiusd) /var/log/radius/radius.log
|
||||||
|
# RADIUS shared libs
|
||||||
|
%attr(755,root,root) %{_libdir}/freeradius/lib*.so*
|
||||||
# RADIUS Loadable Modules
|
# RADIUS Loadable Modules
|
||||||
%dir %attr(755,root,root) %{_libdir}/freeradius
|
%dir %attr(755,root,root) %{_libdir}/freeradius
|
||||||
#%attr(755,root,root) %{_libdir}/freeradius/rlm_*.so*
|
#%attr(755,root,root) %{_libdir}/freeradius/rlm_*.so*
|
||||||
@ -563,11 +556,6 @@ fi
|
|||||||
%doc %{_mandir}/man8/radsqlrelay.8.gz
|
%doc %{_mandir}/man8/radsqlrelay.8.gz
|
||||||
%doc %{_mandir}/man8/rlm_ippool_tool.8.gz
|
%doc %{_mandir}/man8/rlm_ippool_tool.8.gz
|
||||||
|
|
||||||
%files libs
|
|
||||||
# RADIU shared libs
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%attr(755,root,root) %{_libdir}/freeradius/lib*.so*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%attr(644,root,root) %{_libdir}/freeradius/*.a
|
#%attr(644,root,root) %{_libdir}/freeradius/*.a
|
||||||
@ -620,6 +608,17 @@ fi
|
|||||||
%{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so
|
%{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 21 2009 John Dennis <jdennis@redhat.com> - 2.1.7-6
|
||||||
|
- more spec file clean up from review comments
|
||||||
|
- remove freeradius-libs subpackage, move libfreeradius-eap and
|
||||||
|
libfreeradius-radius into the main package
|
||||||
|
- fix subpackage requires, change from freeradius-libs to main package
|
||||||
|
- fix description of the devel subpackage, remove referene to non-shipped libs
|
||||||
|
- remove execute permissions on src files included in debuginfo
|
||||||
|
|
||||||
|
* Mon Dec 21 2009 John Dennis <jdennis@redhat.com> - 2.1.7-5
|
||||||
|
- fix various rpmlint issues.
|
||||||
|
|
||||||
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.1.7-4
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.1.7-4
|
||||||
- rebuild against perl 5.10.1
|
- rebuild against perl 5.10.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user