capisuite/suse/capisuite-mdk-9.2.spec.in

198 lines
6.3 KiB
Plaintext

#
# spec file for package capisuite
#
# Copyright (c) 2003 Gernot Hillier <gernot@hillier.de>
# Copyright (c) 2004 Hartmut Goebel <h.goebel@crazy-compilers.com>
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: capisuite
License: GPL
Group: Communications/ISDN
Version: @VERSION@
Release: @RELEASE@
Requires: python>=2.2 sox>=12.17.3 sfftobmp libtiff3-progs ghostscript
#Requires: libisdn4k-utils2-devel libpython2.3-devel
Requires: jpeg2ps
Summary: ISDN telecommunication suite providing fax and voice services
Source0: %{name}-%{version}.tar.gz
URL: http://www.capisuite.de/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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-%{version} for
further information.
Authors:
--------
Gernot Hillier
Hartmut Goebel
%prep
%setup
#./configure --localstatedir=/var --with-docdir=/usr/share/doc/%{name}-%{version}
#--prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_var} --mandir=%{_mandir}
scons prefix=%{_prefix} \
exec-prefix=%{_exec_prefix} \
bindir=%{_bindir} \
sbindir=%{_sbindir} \
sysconfdir=%{_sysconfdir} \
datadir=%{_datadir} \
includedir=%{_includedir} \
libdir=%{_libdir} \
libexecdir=%{_libexecdir} \
localstatedir=%{_var} \
sharedstatedir=%{_sharedstatedir} \
mandir=%{_mandir} \
infodir=%{_infodir} \
docdir=/usr/share/doc/%{name}-%{version} configure
%build
scons
#make
#strip src/capisuite
%install
scons INSTALL_BASE=$RPM_BUILD_ROOT install
builddir=build/
#make DESTDIR=$RPM_BUILD_ROOT install
install -Dm 644 cronjob.conf $RPM_BUILD_ROOT%{_sysconfdir}/capisuite/cronjob.conf
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mv $RPM_BUILD_ROOT%{_sysconfdir}/init.d/capisuite \
$RPM_BUILD_ROOT%{_initrddir}/capisuite
install -Dm 755 ${builddir}capisuite.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/capisuite
gzip --recursive --best $RPM_BUILD_ROOT%{_mandir}
%clean
#rm -rf $RPM_BUILD_ROOT
%post
%_post_service capisuite
%preun
%_preun_service capisuite
%files
%defattr(-,root,root)
%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
#__RPM_FILES__
%{_sbindir}/capisuite
%{_sbindir}/capisuite-checkconfig
%{_bindir}/capisuitefax
%doc %{_defaultdocdir}/%name-%version
%doc %{_mandir}/*/*
%{_datadir}/capisuite
%{_libdir}/capisuite
%dir %{_var}/spool/capisuite
%{_var}/spool/capisuite/*
%{_libexecdir}/python2.?/site-packages/cs_helpers.py*
%dir %{_libexecdir}/python2.?/site-packages/capisuite
%{_libexecdir}/python2.?/site-packages/capisuite/*
%{_initrddir}/capisuite
%{_sysconfdir}/cron.daily/capisuite
%changelog -n capisuite
* Sun Jun 12 2004 Hartmut Goebel <h.goebel@crazy-compilers.com>
- updated for capisuite-pylib
- changed to use SCons build system
* Sun Nov 09 2003 Steffen Barszus <steffen@mandrakeuser.de>
- 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)