Port "use_tunneled_reply" fix for MS-CHAP from branch_1_1
[freeradius.git] / redhat / freeradius.spec
index 55de003..d102f25 100644 (file)
@@ -1,8 +1,8 @@
 Summary: High-performance and highly configurable RADIUS server
 URL: http://www.freeradius.org/
 Name: freeradius
-Version: 1.1.0
-Release: 1
+Version: 2.0.0
+Release: 0
 License: GPL
 Group: Networking/Daemons
 Packager: FreeRADIUS.org
@@ -29,11 +29,11 @@ CFLAGS="$RPM_OPT_FLAGS" \
        --localstatedir=%{_localstatedir} \
        --sysconfdir=%{_sysconfdir} \
        --mandir=%{_mandir} \
+       --with-docdir=%{_datadir}/doc/%{name}-%{version} \
        --with-system-libtool \
        --disable-ltdl-install \
        --with-ltdl-lib=/usr/lib \
        --with-ltdl-include=/usr/include \
-       --with-gnu-ld \
        --with-large-files --with-udpfromto --with-edir \
        --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
        --with-rlm-krb5-include-dir=/usr/kerberos/include \
@@ -58,6 +58,11 @@ perl -i -pe 's/#     shadow =/shadow =/' $RADDB/radiusd.conf
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/builddbm.8
 rm -f $RPM_BUILD_ROOT%{_prefix}/sbin/rc.radiusd
 
+# more files go to /usr/share/doc/freeradius-%{version}
+install -m 0644 CREDITS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+install -m 0644 COPYRIGHT $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+install -m 0644 LICENSE $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+
 cd redhat
 install -m 755 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
 install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
@@ -99,22 +104,23 @@ fi
 
 %files
 %defattr(-,root,root)
-%doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
 %config /etc/pam.d/radius
 %config /etc/logrotate.d/radiusd
 %config /etc/rc.d/init.d/radiusd
 %config (noreplace) /etc/raddb/*
+%doc %{_datadir}/doc/%{name}-%{version}
 %{_bindir}/*
 %{_datadir}/%{name}
 %{_libdir}/*
 %{_mandir}/*/*
 %{_sbindir}/*
+%{_incdir}/freeradius/*
 %attr(0700,radiusd,radiusd) %dir /var/log/radius
 %attr(0700,radiusd,radiusd) %dir /var/log/radius/radacct
 %attr(0700,radiusd,radiusd) %dir /var/run/radiusd
 
 %changelog
-* Thurs Dec 15 2004 Alan DeKok
+* Thu Dec 15 2004 Alan DeKok
 - update for 1.1.0
 
 * Mon May 31 2004 Paul Hampson