# # spec file for package capifax # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: capifax Summary: Fax over capi via soft DSP Version: 0.7.3 Release: 2.31 License: GPL v2 or later Group: Hardware/Fax BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.tabos.org/ffgtk/index.php #Source: %{name}-%{version}-jmb4.tar.bz2 Source: capifax.tar.xz Patch: %{name}-%{version}-len.patch Patch1: %{name}-%{version}-queue-overflow.patch BuildRequires: spandsp-devel BuildRequires: libcapi20-devel %description capifax is an application to fax over capi via soft DSP (spandsp). It uses the libcapifax.so library, which is included in this package. Author ------ Marco Zissen Jan-Michael Brummer %package -n libcapifax0 License: GPL v2 or later Summary: Library for capifax Group: System/Libraries %description -n libcapifax0 capifax is an application to fax over capi via soft DSP (spandsp). It uses the libcapifax.so library, which is included in this package. Author ------ Marco Zissen Jan-Michael Brummer %package -n libcapifax-devel License: GPL v2 or later Summary: Header files for libcapifax0 Group: Development/Languages/C and C++ Requires: libcapifax0 = %{version} %description -n libcapifax-devel Header files for libcapifax0 needed to compile programs against the library. %prep # get source from subversion repo %ifarch %ix86 pushd %__repodir for i in capifax do rm -rf $i rm -f %_sourcedir/$i.tar.xz svn up $i tar cfJ %_sourcedir/$i.tar.xz $i done popd %endif %setup -q -n %{name} %patch -p1 %patch1 -p1 %build %configure make %install %make_install rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la # rename because of conflict from CAPI package #mv $RPM_BUILD_ROOT/%{_bindir}/capifax $RPM_BUILD_ROOT/%{_bindir}/capifax20 for filename in $(find $RPM_BUILD_ROOT/usr/{lib/*.so.*,bin/*} -type f) do strip -R .note -R .comment "$filename" done %clean rm -rf $RPM_BUILD_ROOT %post -n libcapifax0 -p /sbin/ldconfig %postun -n libcapifax0 -p /sbin/ldconfig %files %defattr(-, root, root) %{_bindir}/capifax %files -n libcapifax0 %defattr(-, root, root) %{_libdir}/libcapifax.so.0* %files -n libcapifax-devel %defattr(-, root, root) %{_includedir}/libcapifax.h %{_libdir}/pkgconfig/capifax.pc %{_libdir}/libcapifax.so %changelog * Mon Jan 11 2021 holgerbruenjes@gmx.net - build with GlibC-2.31 * Sun Jul 01 2018 holgerbruenjes@gmx.net - build with GlibC-2.22 * Thu Oct 27 2011 kkeil@linux-pingi.de - implement simple flow control * Thu Oct 27 2011 kkeil@linux-pingi.de - use the packet len given by the DATA-B3 indications, not the the fixed 160 bytes len; now it works with different CAPI controllers * Sat Jun 13 2009 bernhard.walle@gmx.de - Require pkg-config. * Fri Jun 12 2009 bernhard.walle@gmx.de - Initial SUSE package.