Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > a52b887c4712d76a3f0e0c664331dbe3 > files > 6

capisuite-0.4.5-5mdv2010.0.src.rpm

# Original version of spec:
# Copyright (c) 2003 Gernot Hillier <gernot@hillier.de>
# Parts Copyright (c) SuSE Linux AG, Nuernberg, Germany.
# License GPLv2+
# Subsequent modifications by various Mandriva maintainers, same
# license

Summary:	ISDN telecommunication suite providing fax and voice services
Name:		capisuite
License:	GPLv2+
Version:	0.4.5
Release:	%mkrel 5
Group:		Communications
URL:		http://www.capisuite.de
Source0:	http://www.capisuite.de/%{name}-%{version}.tar.bz2
Source1:	capisuite-init.bz2
# Fix build with GCC 4.3 (explicit includes) - AdamW 2008/07
Patch0:		capisuite-0.4.5-gcc43.patch
# From Debian: fix build with Python 2.5 on x86-64 - AdamW 2008/07
Patch1:		capisuite-0.4.5-python25.patch
Patch2:		capisuite-0.4.5-fix-build.patch
BuildRequires:	autoconf
BuildRequires:	isdn4k-utils-devel
BuildRequires:	libpython-devel
BuildRequires:	sfftobmp
Requires:	sendmail-command
Requires:	ghostscript
Requires:	libtiff-progs
Requires:	sfftobmp
Requires:	sox
Requires(post,preun):		rpm-helper
BuildRoot:    	%{_tmppath}/%{name}-%{version}

%description
CapiSuite is an ISDN telecommunication suite providing easy to use
telecommunication functions which can be controlled from Python scripts.

It uses a CAPI-compatible driver for accessing the ISDN-hardware, so you'll
need an AVM card with the according driver.

CapiSuite is distributed with two example scripts for call incoming handling
and fax sending. See /usr/share/doc/capisuite for further information.

%prep
%setup -q
bzcat %{SOURCE1} > capisuite-init
%patch0 -p1 -b .gcc43
%patch1 -p0 -b .py25
%patch2 -p0 -b .fix

%build
%configure2_5x --localstatedir=%{_var}
%make 

%install
rm -rf %{buildroot}
%makeinstall_std

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/cron.daily

install -m 644 cronjob.conf %{buildroot}/%{_sysconfdir}/%{name}/cronjob.conf
install -m 755 capisuite-init %{buildroot}/%{_initrddir}/capisuite
install -m 755 capisuite.cron %{buildroot}/%{_sysconfdir}/cron.daily/capisuite
mv %{buildroot}%{_docdir}/%{name} installed-docs

%clean
rm -rf %{buildroot}

%post
%_post_service capisuite

%preun
%_preun_service capisuite

%files
%defattr(-,root,root)
%doc installed-docs/* AUTHORS ChangeLog TODO
%config(noreplace) %{_initrddir}/capisuite
%config(noreplace) %{_sysconfdir}/capisuite/cronjob.conf
%config(noreplace) %{_sysconfdir}/capisuite/capisuite.conf
%config(noreplace) %{_sysconfdir}/capisuite/fax.conf
%config(noreplace) %{_sysconfdir}/capisuite/answering_machine.conf
%config(noreplace) %{_sysconfdir}/cron.daily/capisuite
%{_sbindir}/capisuite
%{_bindir}/capisuitefax
%{_libdir}/capisuite
%{_datadir}/capisuite
%{_localstatedir}/spool/capisuite
%{py_platsitedir}/cs_helpers.py
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
	       


%changelog
* Thu Sep 10 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.4.5-5mdv2010.0
+ Revision: 436944
- rebuild

* Fri Jan 23 2009 Funda Wang <fundawang@mandriva.org> 0.4.5-4mdv2009.1
+ Revision: 333050
- fix build

* Fri Aug 01 2008 Adam Williamson <awilliamson@mandriva.org> 0.4.5-4mdv2009.0
+ Revision: 259248
- p0 for the new patch..
- add python25.patch (from Debian): fix build on x86-64 / Python 2.5
- add gcc43.patch to fix build with GCC 4.3 (explicit #includes needed)
- adjust file list a bit
- adjust the SUSE acknowledgement
- rebuild for new era
- new license policy
- spec clean

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - fix prereq
    - kill re-definition of %%buildroot on Pixel's request
    - use %%mkrel
    - import capisuite

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


* Thu Aug 11 2005 Olivier Blin <oblin@mandriva.com> 0.4.5-3mdk
- really use %%{_var} for localstatedir

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.4.5-2mdk
- Rebuild for new python

* Wed Dec 01 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.4.5-1mdk
- 0.4.5
- drop P0,P1,P2, these are implemented upstream
- fix deps and spec file

* Mon Sep 13 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.4.4-9mdk
- add prereq on rpm-helper
- fix description

* Mon Sep 13 2004 Olivier Blin <blino@mandrake.org> 0.4.4-8mdk
- use %%{_var} for localstatedir (from Steffen Barszus)

* Thu Aug  5 2004 Olivier Blin <blino@mandrake.org> 0.4.4-7mdk
- from Steffen Barszus:
    Patch2: prevents wrong cropping in the pdf creation

* Mon Aug  2 2004 Olivier Blin <blino@mandrake.org> 0.4.4-6mdk
- initial Mandrake release from Steffen Barszus
- fix BuildRequires/Requires
- use %%configure, %%make and %%makeinstall macros
- use more macros, misc fixes
- requires libtiff-progs instead of libtiff3 
- quiet setup
- remove buildroot at beginning of install

* Thu Jul 02 2004 Steffen Barszus <st_barszus@gmx.de> 0.4.4-5mdk
- patched capisuite to use SMTPlib as suggested by Gernot (the author) 
  and Hartmut Goebel (one of the developers)
- fixed require to use MTA instead of a special MTA == postfix

* Thu Jul 01 2004 Steffen Barszus <st_barszus@gmx.de> 0.4.4-4mdk
- Fixed requires for MailAndSave

* Thu Jul 01 2004 Steffen Barszus <st_barszus@gmx.de> 0.4.4-3mdk
- Fixed Build on Mandrake 10 / Kernel 2.6

* Sun Nov 09 2003 Steffen Barszus <st_barszus@gmx.de> 0.4.4-2mdk
- initial spec for mdk, taken mostly the SuSE spec of gernot 

* Sun Jul 20 2003 - gernot@hillier.de
- updated to 0.4.3

* Sun Apr 27 2003 - gernot@hillier.de
- updated to 0.4.2

* Sat Apr 05 2003 - gernot@hillier.de
- updated to 0.4.1a (SECURITY FIX for cronjob, ...)

* Thu Mar 20 2003 - ghillie@suse.de
- updated to 0.4.1, thrown away all patches which are already
  included in this release

* Thu Mar 13 2003 - ghillie@suse.de
- SECURITY FIX: permissions of saved documents and waves are 0600
  now instead of 0644 and dirs have 0700 instead of 0755. This
  fixes critical bug #25242. Bug severity was approved by kkeil.

* Mon Mar 10 2003 - ghillie@suse.de
- added current documentation as .tar.bz2 to avoid change of
  Makefile so late (old Makefiles won't install new docs correctly)

* Mon Mar 03 2003 - ghillie@suse.de
- added capisuite-faxid.diff: fixes sending of fax station ID, fax
  headline works now

* Sun Feb 23 2003 - ghillie@suse.de
- added capisuite-cron.diff: cron-script errors to /dev/null

* Fri Feb 21 2003 - ghillie@suse.de
- capisuite-removesetuid.diff: fixes Bugzilla 23732 (freeze because
  of usage of setuid() which isn't allowed in threads)
- capisuite-cosmetical.diff: cosmetical fixes (examples in conf files
  were wrong, removed debug output)
- added tiff & ghostscript-library to Requires: fixes Bug 23962

* Tue Feb 18 2003 - ghillie@suse.de
- fixed Bugzilla 23731 (lock files weren't deleted in idle.py)

* Mon Feb 17 2003 - ghillie@suse.de
- updated to 0.4 (new/old messages in remote inquiry, capisuitefax
  can show sendqueue and abort jobs)

* Tue Feb 11 2003 - ghillie@suse.de
- included cron job for cleaning up
- rc.capisuite was moved into tar ball

* Mon Feb 10 2003 - ghillie@suse.de
- updated to 0.3.2 (got rid of CommonC++, using native pthreads now,
  fixed some major bugs)

* Mon Feb 03 2003 - ghillie@suse.de
- updated to 0.3.1: (bugfixes, use different sendqueue for each user,
  script improvements, e.g. sayNumber supports 0-99 well now)

* Wed Jan 29 2003 - ghillie@suse.de
- added sox to Require:

* Wed Jan 29 2003 - ghillie@suse.de
- don't start if no user configured for default scripts
- added insserv to %%post (spec file)

* Mon Jan 27 2003 - ghillie@suse.de
- included startup script

* Mon Jan 27 2003 - ghillie@suse.de
- updated to 0.3 (split configuration files into fax and
  answering machine config)

* Thu Jan 23 2003 - ghillie@suse.de
- updated to 0.2.1 (mainly documentation improvements, has an own
  manual now)

* Mon Jan 20 2003 - ghillie@suse.de
- updated to 0.2 (see included NEWS for changes)
- added correct docdir to configure call in specfile

* Mon Dec 16 2002 - gernot@hillier.de
- first package

* Mon Dec 16 2002 - gernot@hillier.de
- fixed 2 small bugs (physical disconnect was missing in some cases,
  file delete in remote inquiry didn't work)