# # spec file for package capi-utils # %define binfiles capiinfo capiinit avmb1 Name: capi-utils Version: 2011.8.29 Release: 2.22.3.0.7 Summary: ISDN for Linux Basic Utilities License: GPL-2.0+ and LGPL-2.1+ Source1: capiinit.tar.xz Source2: capiinfo.tar.xz Source3: avmb1.tar.xz Provides: /usr/sbin/capiinit Provides: /usr/sbin/avmcapictrl Provides: /usr/bin/capiinfo BuildRequires: libcapi20-dev BuildRoot: %{_tmppath}/%{name}-%{version}-build %description These utilities are needed for configuring and using ISDN devices. This package includes special tools for network connections via ISDN. Other tools for setup of various ISDN cards and for monitoring ISDN connections are also included. %prep # get source from subversion repo %ifarch %ix86 pushd %__eisler_repodir for i in %{binfiles} do rm -rf $i rm -f %_sourcedir/$i.tar.xz svn up $i tar cfJ %_sourcedir/$i.tar.xz $i done popd %endif %setup -cTq -n capi-utils -a 1 -a 2 -a 3 %build for i in capiinfo capiinit do pushd $i rm -f lt* libto* rm -f missing aclocal libtoolize --force --automake --copy automake --add-missing --copy autoconf popd done for i in avmb1 do pushd $i autoconf popd done export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" for i in %{binfiles} do pushd $i %configure \ --sbindir=/usr/sbin make popd done %install for i in %{binfiles} do pushd $i make DESTDIR=$RPM_BUILD_ROOT install INSTALL_PROGRAM='install -m 0755' \ INSTALL_DATA='install -m 0644' INSTALL_MAN='install -m 0644' \ INSTALL_DIR='install -m 0755 -d' INSTALL_SBIN='install -m 0755' \ INSTALL_BIN='install -m 0755' \ SBINDIR=/usr/sbin \ MANDIR=/usr/share/man popd done # strip files/binarys for filename in $(find $RPM_BUILD_ROOT/usr/{sbin,bin}/* -type f) do strip -R .note -R .comment "$filename" done %files %defattr(-,root,root) /usr/bin /usr/sbin /usr/share %changelog * Mon Jun 11 2018 holgerbruenjes@gmx.net - update to GLibC 2.22 and 64bit * Fri Jan 17 2014 holgerbruenjes@gmx.net - first Version