Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > d50cea667018f3b59b4abb98eed4facf > files > 3

gnugk-2.3.1-1mdv2010.1.src.rpm

Summary:	OpenH323 Gatekeeper - The GNU Gatekeeper
Name:		gnugk
Version:	2.3.1
Release:	%mkrel 1
License:	GPL+
Group:		System/Servers
URL:		http://www.gnugk.org/
Source:		http://downloads.sourceforge.net/openh323gk/%{name}-%{version}.tar.gz
Source1:	gnugk.init
Source2:	gnugk.sysconfig
BuildRequires:	linuxdoc-tools
BuildRequires:	openh323-devel
BuildRequires:	pwlib-devel
BuildRequires:	pkgconfig
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The GNU Gatekeeper (GnuGk) is a full featured H.323 gatekeeper. It is
based on the Open H.323 (H323plus) stack. Both components together
form the basis for a free IP telephony system (VOIP).

%prep
%setup -q

%build
autoconf

export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
export CXXFLAGS="%{optflags} -DLDAP_DEPRECATED"

%configure2_5x

%make \
    OPTCCFLAGS="%{optflags}" \
    OH323_LIBDIR=%{_libdir} \
    PWLIBDIR=%{_datadir}/pwlib \
    OPENH323DIR=%{_prefix} \
    PREFIX=%{_prefix} \
    PWLIB_BUILD=1 \
    LDFLAGS="%{?ldflags}" \
    optshared addpasswd

make doc

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_var}/log/%{name}
install -d %{buildroot}%{_var}/run/%{name}

install -m0755 obj_*/%{name} %{buildroot}%{_sbindir}/
install -m0755 obj_*/addpasswd %{buildroot}%{_sbindir}/%{name}-addpasswd

install -m0644 etc/complete.ini %{buildroot}%{_sysconfdir}/%{name}.ini
install -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} << EOF
/var/log/%{name}/%{name}.log {
    rotate 30
    size=100M
    notifempty
    missingok
    postrotate
        %{_initrddir}/%{name} condrestart
    endscript
}
EOF

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false

%postun
%_postun_userdel %{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}


%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc changes.txt docs/manual/*.html docs/*.txt etc contrib
%attr(0755,root,root) %{_initrddir}/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.ini
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_sbindir}/%{name}-addpasswd
%dir %attr(0755,%{name},%{name}) %{_var}/run/%{name}
%dir %attr(0755,%{name},%{name}) %{_var}/log/%{name}



%changelog
* Sat Jan 30 2010 Funda Wang <fwang@mandriva.org> 2.3.1-1mdv2010.1
+ Revision: 498406
- New version 2.3.1

* Wed Sep 09 2009 Thierry Vignaud <tvignaud@mandriva.com> 2.2.7-0.20071225.4mdv2010.0
+ Revision: 435987
- rebuild
- rebuild

  + Oden Eriksson <oeriksson@mandriva.com>
    - rebuilt against mysql-5.1.30 libs

  + Pixel <pixel@mandriva.com>
    - adapt to %%_localstatedir now being /var instead of /var/lib (#22312)

* Sun Dec 30 2007 Adam Williamson <awilliamson@mandriva.org> 2.2.7-0.20071225.2mdv2008.1
+ Revision: 139504
- rebuild for older openh323 / pwlib

* Wed Dec 26 2007 Adam Williamson <awilliamson@mandriva.org> 2.2.7-0.20071225.1mdv2008.1
+ Revision: 137889
- update description
- remove explicit dependency on libopenh323 (gets an automatic one anyway)
- add toolkit.patch to revert Toolkit.h one revision due to a bogus change (has been reported upstream)
- add include.patch to add a missing include (has been reported upstream)
- remove unnecessary requires
- new license policy
- update to latest CVS to build against h323plus

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Sep 09 2007 Pascal Terjan <pterjan@mandriva.org> 2.2.6-2mdv2008.0
+ Revision: 82937
- rebuild

* Wed May 09 2007 Adam Williamson <awilliamson@mandriva.org> 2.2.6-1mdv2008.0
+ Revision: 25373
- clean spec, bunzip patches, new release 2.2.6


* Sun Oct 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-5mdk
- rebuilt against MySQL-5.0.15

* Tue Sep 06 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-4mdk
- rebuild

* Tue Aug 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-3mdk
- rebuilt against new openldap-2.3.6 libs
- pass "-DLDAP_DEPRECATED" to the CFLAGS

* Thu Aug 25 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-2mdk
- 2.2.3-2 (Minor bugfixes)

* Wed Aug 17 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-1mdk
- 2.2.3 (Major feature enhancements)

* Thu Apr 28 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-1mdk
- 2.2.2

* Sun Apr 17 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.1-1mdk
- initial Mandriva package