Port "use_tunneled_reply" fix for MS-CHAP from branch_1_1
[freeradius.git] / redhat / freeradius.spec
index b116244..d102f25 100644 (file)
@@ -1,7 +1,7 @@
 Summary: High-performance and highly configurable RADIUS server
 URL: http://www.freeradius.org/
 Name: freeradius
-Version: 1.1.3
+Version: 2.0.0
 Release: 0
 License: GPL
 Group: Networking/Daemons
@@ -29,8 +29,9 @@ CFLAGS="$RPM_OPT_FLAGS" \
        --localstatedir=%{_localstatedir} \
        --sysconfdir=%{_sysconfdir} \
        --mandir=%{_mandir} \
+       --with-docdir=%{_datadir}/doc/%{name}-%{version} \
+       --with-system-libtool \
        --disable-ltdl-install \
-       --with-docdir=/usr/share/doc/freeradius-%{version} \
        --with-ltdl-lib=/usr/lib \
        --with-ltdl-include=/usr/include \
        --with-large-files --with-udpfromto --with-edir \
@@ -57,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
@@ -98,16 +104,17 @@ 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