- Upgrade to current upstream 2.0.3 release

- Many thanks to Enrico Scholz for his spec file suggestions incorporated
    here
- Resolve: bug #438665: Contains files owned by buildsystem
- Add dialupadmin-mysql, dialupadmin-postgresql, dialupadmin-ldap
    subpackages to further partition external dependencies.
- Clean up some unnecessary requires dependencies
- Add versioned requires between subpackages
- Replace BuildRequires of perl-devel with /usr/bin/perlcc to accomodate
    building on both Fedora and RHEL.
This commit is contained in:
John Dennis 2008-04-17 16:29:01 +00:00
parent c16ca10196
commit 67d3d2c459
3 changed files with 137 additions and 86 deletions

View File

@ -1 +1 @@
freeradius-server-2.0.2.tar.bz2 freeradius-server-2.0.3.tar.bz2

View File

@ -2,11 +2,10 @@
# FIXME: need to run rpmlint # FIXME: need to run rpmlint
# FIXME: edit radrelay init.d script, was copied from radiusd init # FIXME: edit radrelay init.d script, was copied from radiusd init
# FIXME: check each former patch, do we still need any? # FIXME: check each former patch, do we still need any?
# FIXME: mysql, pgsql, etc. should be factored out from dialupadmin and put in subpackage, subpackage should diaable auto fied requires
Summary: High-performance and highly configurable free RADIUS server Summary: High-performance and highly configurable free RADIUS server
Name: freeradius Name: freeradius
Version: 2.0.2 Version: 2.0.3
Release: 2%{?dist} Release: 1%{?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/
@ -24,14 +23,12 @@ BuildRequires: autoconf
BuildRequires: gdbm-devel BuildRequires: gdbm-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: libtool-ltdl-devel BuildRequires: libtool-ltdl-devel
BuildRequires: net-snmp-devel
BuildRequires: net-snmp-utils
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: net-snmp-devel
BuildRequires: net-snmp-utils
Requires: net-snmp
Requires: net-snmp-utils
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): /sbin/ldconfig /sbin/chkconfig Requires(post): /sbin/ldconfig /sbin/chkconfig
Requires(postun): /sbin/ldconfig Requires(postun): /sbin/ldconfig
@ -62,7 +59,7 @@ 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} Requires: %{name}-libs = %{version}-%{release}
%description utils %description utils
The FreeRADIUS server has a number of features found in other servers, The FreeRADIUS server has a number of features found in other servers,
@ -78,20 +75,48 @@ Group: System Environment/Daemons
Summary: Web management for FreeRADIUS Summary: Web management for FreeRADIUS
Requires: httpd Requires: httpd
Requires: php Requires: php
Requires: php-ldap
Requires: php-mysql
Requires: php-pgsql
%description dialupadmin %description dialupadmin
Dialup Admin supports users either in SQL (MySQL or PostgreSQL are Dialup Admin provides administration tools for FreeRadius, primarily
supported) or in LDAP. Apart from the web pages, it also includes a via a web interface but other administration scripts are provided as
number of scripts to make the administrator's life a lot easier. well. SQL and LDAP support is available when the appropriate
dialupadmin subpackage is also installed.
%package dialupadmin-mysql
Group: System Environment/Daemons
Summary: MySQL component of the dialupadmin FreeRADIUS Web management tool
Requires: %{name}-dialupadmin = %{version}-%{release}
Requires: %{name}-mysql = %{version}-%{release}
Requires: php-mysql
%description dialupadmin-mysql
MySQL component of the dialupadmin FreeRADIUS Web management tool
%package dialupadmin-postgresql
Group: System Environment/Daemons
Summary: Postgresql component of the dialupadmin FreeRADIUS Web management tool
Requires: %{name}-dialupadmin = %{version}-%{release}
Requires: %{name}-postgresql = %{version}-%{release}
Requires: php-pgsql
%description dialupadmin-postgresql
Postgresql component of the dialupadmin FreeRADIUS Web management tool
%package dialupadmin-ldap
Group: System Environment/Daemons
Summary: LDAP component of the dialupadmin FreeRADIUS Web management tool
Requires: %{name}-dialupadmin = %{version}-%{release}
Requires: %{name}-ldap = %{version}-%{release}
Requires: php-ldap
%description dialupadmin-ldap
LDAP component of the dialupadmin FreeRADIUS Web management tool
%package devel %package devel
Group: Development/Libraries Group: Development/Libraries
Summary: FreeRADIUS Development Files Summary: FreeRADIUS Development Files
Requires: %{name}-libs = %{version} Requires: %{name}-libs = %{version}-%{release}
%description devel %description devel
These are the static libraries for the FreeRADIUS package. These are the static libraries for the FreeRADIUS package.
@ -100,8 +125,7 @@ These are the static libraries 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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: openldap
BuildRequires: openldap-devel BuildRequires: openldap-devel
%description ldap %description ldap
@ -110,8 +134,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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: krb5-libs
BuildRequires: krb5-devel BuildRequires: krb5-devel
%description krb5 %description krb5
@ -120,10 +143,10 @@ 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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: perl-libs
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl-devel, perl(ExtUtils::Embed) BuildRequires: /usr/bin/perlcc
BuildRequires: perl(ExtUtils::Embed)
%description perl %description perl
This plugin provides the Perl support for the FreeRADIUS server project. This plugin provides the Perl support for the FreeRADIUS server project.
@ -131,8 +154,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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: python-libs
BuildRequires: python-devel BuildRequires: python-devel
%description python %description python
@ -141,8 +163,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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: mysql
BuildRequires: mysql-devel BuildRequires: mysql-devel
%description mysql %description mysql
@ -151,8 +172,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} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: postgresql
BuildRequires: postgresql-devel BuildRequires: postgresql-devel
%description postgresql %description postgresql
@ -161,8 +181,7 @@ This plugin provides the postgresql support for the FreeRADIUS server project.
%package unixODBC %package unixODBC
Summary: unixODBC support for freeradius Summary: unixODBC support for freeradius
Group: System Environment/Daemons Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: unixODBC
BuildRequires: unixODBC-devel BuildRequires: unixODBC-devel
%description unixODBC %description unixODBC
@ -252,6 +271,8 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/*.a
rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/*.la rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/*.la
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/sql/oracle rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/sql/oracle
rm -rf $RPM_BUILD_ROOT/%{_datadir}/dialup_admin/sql/oracle rm -rf $RPM_BUILD_ROOT/%{_datadir}/dialup_admin/sql/oracle
rm -rf $RPM_BUILD_ROOT/%{_datadir}/dialup_admin/lib/sql/oracle
rm -rf $RPM_BUILD_ROOT/%{_datadir}/dialup_admin/lib/sql/drivers/oracle
# remove unsupported config files # remove unsupported config files
@ -288,7 +309,7 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc %{_docdir}/freeradius-%{version}/ %doc %{_docdir}/freeradius-%{version}/
%config(noreplace) %{_sysconfdir}/pam.d/radiusd %config(noreplace) %{_sysconfdir}/pam.d/radiusd
%config(noreplace) %{_sysconfdir}/logrotate.d/radiusd %config(noreplace) %{_sysconfdir}/logrotate.d/radiusd
@ -296,7 +317,7 @@ fi
%config(noreplace) %{_initrddir}/radrelay %config(noreplace) %{_initrddir}/radrelay
%dir %attr(755,radiusd,radiusd) /var/lib/radiusd %dir %attr(755,radiusd,radiusd) /var/lib/radiusd
# configs # configs
%dir %attr(750,-,radiusd) /etc/raddb %dir %attr(750,root,radiusd) /etc/raddb
%defattr(-,root,radiusd) %defattr(-,root,radiusd)
%config(noreplace) /etc/raddb/dictionary %config(noreplace) /etc/raddb/dictionary
%config(noreplace) /etc/raddb/acct_users %config(noreplace) /etc/raddb/acct_users
@ -304,35 +325,35 @@ fi
%config(noreplace) /etc/raddb/attrs.access_reject %config(noreplace) /etc/raddb/attrs.access_reject
%config(noreplace) /etc/raddb/attrs.accounting_response %config(noreplace) /etc/raddb/attrs.accounting_response
%config(noreplace) /etc/raddb/attrs.pre-proxy %config(noreplace) /etc/raddb/attrs.pre-proxy
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/clients.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/clients.conf
%config(noreplace) /etc/raddb/hints %config(noreplace) /etc/raddb/hints
%config(noreplace) /etc/raddb/huntgroups %config(noreplace) /etc/raddb/huntgroups
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sqlippool.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sqlippool.conf
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/preproxy_users %attr(640,root,radiusd) %config(noreplace) /etc/raddb/preproxy_users
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/proxy.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/proxy.conf
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/radiusd.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/radiusd.conf
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/snmp.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/snmp.conf
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sql.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sql.conf
#%attr(640,-,radiusd) %config(noreplace) /etc/raddb/radrelay.conf #%attr(640,root,radiusd) %config(noreplace) /etc/raddb/radrelay.conf
#%attr(640,-,radiusd) %config(noreplace) /etc/raddb/vmpsd.conf #%attr(640,root,radiusd) %config(noreplace) /etc/raddb/vmpsd.conf
%dir %attr(640,-,radiusd) /etc/raddb/sql %dir %attr(640,root,radiusd) /etc/raddb/sql
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sql/mssql/* %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sql/mssql/*
#%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sql/oracle/* #%attr(640,root,radiusd) %config(noreplace) /etc/raddb/sql/oracle/*
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/users %attr(640,root,radiusd) %config(noreplace) /etc/raddb/users
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/otp.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/otp.conf
%dir %attr(750,-,radiusd) /etc/raddb/certs %dir %attr(750,root,radiusd) /etc/raddb/certs
/etc/raddb/certs/Makefile /etc/raddb/certs/Makefile
/etc/raddb/certs/README /etc/raddb/certs/README
/etc/raddb/certs/xpextensions /etc/raddb/certs/xpextensions
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/certs/*.cnf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/certs/*.cnf
%attr(750,-,radiusd) /etc/raddb/certs/bootstrap %attr(750,root,radiusd) /etc/raddb/certs/bootstrap
%attr(640,-,radiusd) /etc/raddb/sites-available/* %attr(640,root,radiusd) /etc/raddb/sites-available/*
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sites-enabled/* %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sites-enabled/*
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/eap.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/eap.conf
%attr(640,-,radiusd) /etc/raddb/example.pl %attr(640,root,radiusd) /etc/raddb/example.pl
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/policy.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/policy.conf
/etc/raddb/policy.txt /etc/raddb/policy.txt
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/templates.conf %attr(640,root,radiusd) %config(noreplace) /etc/raddb/templates.conf
%attr(700,radiusd,radiusd) %dir /var/run/radiusd/ %attr(700,radiusd,radiusd) %dir /var/run/radiusd/
# binaries # binaries
%defattr(-,root,root) %defattr(-,root,root)
@ -445,10 +466,12 @@ fi
%{_libdir}/freeradius/rlm_unix-%{version}.so %{_libdir}/freeradius/rlm_unix-%{version}.so
%files utils %files utils
%defattr(-,root,root)
/usr/bin/* /usr/bin/*
%files libs %files libs
# RADIU shared libs # RADIU shared libs
%defattr(-,root,root)
%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*
@ -456,65 +479,93 @@ fi
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_datadir}/dialup_admin/ %dir %{_datadir}/dialup_admin/
%{_datadir}/dialup_admin/Makefile %{_datadir}/dialup_admin/Makefile
%{_datadir}/dialup_admin/bin/ %{_datadir}/dialup_admin/bin
%{_datadir}/dialup_admin/doc/ %{_datadir}/dialup_admin/doc
%{_datadir}/dialup_admin/htdocs/ %{_datadir}/dialup_admin/htdocs
%{_datadir}/dialup_admin/html/ %{_datadir}/dialup_admin/html
%{_datadir}/dialup_admin/lib/ %{_datadir}/dialup_admin/lib/*.php3
%dir %{_datadir}/dialup_admin/sql/ %{_datadir}/dialup_admin/lib/crypt
%dir %{_datadir}/dialup_admin/conf/ %{_datadir}/dialup_admin/lib/lang
%{_datadir}/dialup_admin/lib/sql/*.php3
%dir %{_datadir}/dialup_admin/lib/sql/drivers
%{_datadir}/dialup_admin/lib/sql/drivers/dbx
%{_datadir}/dialup_admin/lib/sql/drivers/sqlrelay
%dir %{_datadir}/dialup_admin/sql
%config(noreplace) %{_datadir}/dialup_admin/conf/* %config(noreplace) %{_datadir}/dialup_admin/conf/*
%config(noreplace) %{_sysconfdir}/httpd/conf.d/radius.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/radius.conf
%{_datadir}/dialup_admin/Changelog %{_datadir}/dialup_admin/Changelog
%{_datadir}/dialup_admin/README %{_datadir}/dialup_admin/README
%files dialupadmin-mysql
%defattr(-,root,root)
%{_datadir}/dialup_admin/sql/mysql
%{_datadir}/dialup_admin/lib/sql/drivers/mysql
%files dialupadmin-postgresql
%defattr(-,root,root)
%{_datadir}/dialup_admin/sql/postgresql
%{_datadir}/dialup_admin/lib/sql/drivers/pg
%files dialupadmin-ldap
%defattr(-,root,root)
%{_datadir}/dialup_admin/lib/ldap
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
#%attr(644,root,root) %{_libdir}/freeradius/*.a #%attr(644,root,root) %{_libdir}/freeradius/*.a
#%attr(644,root,root) %{_libdir}/freeradius/*.la #%attr(644,root,root) %{_libdir}/freeradius/*.la
%attr(644,root,root) /usr/include/freeradius/*.h %attr(644,root,root) /usr/include/freeradius/*.h
%files ldap
%defattr(-,root,root,-)
%config(noreplace) /etc/raddb/ldap.attrmap
%{_libdir}/freeradius/rlm_ldap.so
%{_libdir}/freeradius/rlm_ldap-%{version}.so
%files krb5 %files krb5
%defattr(-,root,root,-) %defattr(-,root,root)
%{_libdir}/freeradius/rlm_krb5.so %{_libdir}/freeradius/rlm_krb5.so
%{_libdir}/freeradius/rlm_krb5-%{version}.so %{_libdir}/freeradius/rlm_krb5-%{version}.so
%files perl %files perl
%defattr(-,root,root,-) %defattr(-,root,root)
%{_libdir}/freeradius/rlm_perl.so %{_libdir}/freeradius/rlm_perl.so
%{_libdir}/freeradius/rlm_perl-%{version}.so %{_libdir}/freeradius/rlm_perl-%{version}.so
%files python %files python
%defattr(-,root,root,-) %defattr(-,root,root)
%{_libdir}/freeradius/rlm_python.so %{_libdir}/freeradius/rlm_python.so
%{_libdir}/freeradius/rlm_python-%{version}.so %{_libdir}/freeradius/rlm_python-%{version}.so
%files mysql %files mysql
%defattr(-,root,root,-) %defattr(-,root,root)
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sql/mysql/* %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sql/mysql/*
%{_libdir}/freeradius/rlm_sql_mysql.so %{_libdir}/freeradius/rlm_sql_mysql.so
%{_libdir}/freeradius/rlm_sql_mysql-%{version}.so %{_libdir}/freeradius/rlm_sql_mysql-%{version}.so
%{_datadir}/dialup_admin/sql/mysql
%files postgresql %files postgresql
%defattr(-,root,root,-) %defattr(-,root,root)
%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sql/postgresql/* %attr(640,root,radiusd) %config(noreplace) /etc/raddb/sql/postgresql/*
%{_libdir}/freeradius/rlm_sql_postgresql.so %{_libdir}/freeradius/rlm_sql_postgresql.so
%{_libdir}/freeradius/rlm_sql_postgresql-%{version}.so %{_libdir}/freeradius/rlm_sql_postgresql-%{version}.so
%{_datadir}/dialup_admin/sql/postgresql
%files ldap
%defattr(-,root,root)
%config(noreplace) /etc/raddb/ldap.attrmap
%{_libdir}/freeradius/rlm_ldap.so
%{_libdir}/freeradius/rlm_ldap-%{version}.so
%files unixODBC %files unixODBC
%defattr(-,root,root,-) %defattr(-,root,root)
%{_libdir}/freeradius/rlm_sql_unixodbc.so %{_libdir}/freeradius/rlm_sql_unixodbc.so
%{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so %{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so
%changelog %changelog
* Thu Apr 17 2008 John Dennis <jdennis@redhat.com> - 2.0.3-1
- Upgrade to current upstream 2.0.3 release
- Many thanks to Enrico Scholz for his spec file suggestions incorporated here
- Resolve: bug #438665: Contains files owned by buildsystem
- Add dialupadmin-mysql, dialupadmin-postgresql, dialupadmin-ldap subpackages
to further partition external dependencies.
- Clean up some unnecessary requires dependencies
- Add versioned requires between subpackages
- Replace BuildRequires of perl-devel with /usr/bin/perlcc to accomodate building
on both Fedora and RHEL.
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.2-2 * Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.2-2
- add Requires for versioned perl (libperl.so) - add Requires for versioned perl (libperl.so)

View File

@ -1 +1 @@
bf2a9ef4d14b4f824a62a8e0afd9cfe5 freeradius-server-2.0.2.tar.bz2 3cd647f40880dee8693f2e74ab5416e9 freeradius-server-2.0.3.tar.bz2