[packages/dahdi-tools] - updated to 2.6.1 - general copy-pastos cleanup - killed -utils package which was just a copy of bi

qboosh qboosh at pld-linux.org
Mon Jan 28 15:33:31 CET 2013

commit d4845b0b7a9fe8f316606a950ce34e829d612805
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jan 28 15:34:20 2013 +0100

    - updated to 2.6.1
    - general copy-pastos cleanup
    - killed -utils package which was just a copy of binaries from base (please don't create *-tools-utils-programs packages either)
    - /usr/include/dahdi dir is owned by dahdi-linux-devel, which is required by -devel anyway

 dahdi-tools.spec | 111 ++++++++++++++++++++-----------------------------------
 1 file changed, 41 insertions(+), 70 deletions(-)
diff --git a/dahdi-tools.spec b/dahdi-tools.spec
index ff8db08..420f1a2 100644
--- a/dahdi-tools.spec
+++ b/dahdi-tools.spec
@@ -1,38 +1,23 @@
 # TODO:
 # warning: Installed (but unpackaged) file(s) found:
 #    /etc/hotplug/usb/xpp_fxloader
 #    /etc/hotplug/usb/xpp_fxloader.usermap
-# Conditional build:
-%bcond_with	oslec		# with Open Source Line Echo Canceller
-%bcond_with	bristuff	# with bristuff support
-%bcond_without	xpp		# without Astribank
-%bcond_with	verbose
 %include	/usr/lib/rpm/macros.perl
-%ifarch sparc
-%undefine	with_smp
-%ifarch alpha
-%undefine	with_xpp
-%define		rel	2
 Summary:	DAHDI telephony device support
 Summary(pl.UTF-8):	Obsługa urządzeń telefonicznych DAHDI
 Name:		dahdi-tools
-Version:	2.4.1
-Release:	%{rel}%{?with_bristuff:.bristuff}
-License:	GPL
+Version:	2.6.1
+Release:	1
+License:	GPL v2
 Group:		Base/Kernel
 Source0:	http://downloads.digium.com/pub/telephony/dahdi-tools/%{name}-%{version}.tar.gz
-# Source0-md5:	a06cf7c68b0b9fbb61f5804abd1a05e9
+# Source0-md5:	c2e4f476a8e7f96a5cad46dd9b648446
 Source1:	dahdi.init
 Source2:	dahdi.sysconfig
 Patch0:		%{name}-as-needed.patch
 Patch1:		%{name}-perl-path.patch
+Patch2:		%{name}-includes.patch
 URL:		http://www.asterisk.org/
 BuildRequires:	dahdi-linux-devel >= 2.3.0
 BuildRequires:	newt-devel
@@ -40,16 +25,10 @@ BuildRequires:	perl-base
 BuildRequires:	perl-tools-pod
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.379
-%{?with_bristuff:Provides:	dahdi(bristuff)}
+Obsoletes:	dahdi-tools-utils
 Obsoletes:	zaptel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# Rules:
-# - modules_X: single modules, just name module with no suffix
-# - modules_X: subdir modules are just directory name with slash like dirname/
-# - keep X and X_in in sync
-# - X is used for actual building (entries separated with space), X_in for pld macros (entries separated with comma)
 DAHDI telephony device driver.
@@ -60,8 +39,8 @@ Sterownik do urządzeń telefonicznych DAHDI.
 Summary:	DAHDI development headers
 Summary(pl.UTF-8):	Pliki nagłówkowe DAHDI
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{rel}
-%{?with_bristuff:Provides:	dahdi-devel(bristuff)}
+Requires:	%{name} = %{version}-%{release}
+Requires:	dahdi-linux-devel
 Obsoletes:	zaptel-devel
 %description devel
@@ -74,8 +53,7 @@ Pliki nagłówkowe DAHDI.
 Summary:	DAHDI static library
 Summary(pl.UTF-8):	Biblioteka statyczna DAHDI
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{rel}
-%{?with_bristuff:Provides:	dahdi-static(bristuff)}
+Requires:	%{name}-devel = %{version}-%{release}
 %description static
 DAHDI static library.
@@ -83,24 +61,12 @@ DAHDI static library.
 %description static -l pl.UTF-8
 Biblioteka statyczna DAHDI.
-%package utils
-Summary:	DAHDI utility programs
-Summary(pl.UTF-8):	Programy narzędziowe DAHDI
-Group:		Applications/Communications
-Obsoletes:	zaptel-utils
-%description utils
-DAHDI card utility programs, mainly for diagnostics.
-%description utils -l pl.UTF-8
-Programy narzędziowe do kart DAHDI, służące głównie do diagnostyki.
 %package init
 Summary:	DAHDI init scripts
 Summary(pl.UTF-8):	Skrypty inicjalizujące DAHDI
 Group:		Applications/Communications
 Requires(post,preun):	/sbin/chkconfig
-Requires:	%{name}-utils = %{version}-%{rel}
+Requires:	%{name} = %{version}-%{release}
 Requires:	rc-scripts
 Obsoletes:	zaptel-init
@@ -112,27 +78,21 @@ Inicjalizacja DAHDI w czasie startu systemu.
 %package -n perl-Dahdi
 Summary:	Perl interface to DAHDI
-Summary(pl.UTF-8):	Perlowy interfejs do DAHDIa
+Summary(pl.UTF-8):	Perlowy interfejs do DAHDI
 Group:		Development/Languages/Perl
-Requires:	%{name} = %{version}-%{rel}
+Requires:	%{name} = %{version}-%{release}
 %description -n perl-Dahdi
 Perl inferface to DAHDI.
 %description -n perl-Dahdi -l pl.UTF-8
-Perlowy interfejs do DAHDIa.
+Perlowy interfejs do DAHDI.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%if %{with kernel}
-mkdir firmware
-for a in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6}; do
-	ln -s $a firmware
-	tar -C firmware -xzf $a
+%patch2 -p1
 cat > download-logger <<'EOF'
@@ -140,7 +100,6 @@ cat > download-logger <<'EOF'
 echo "$@" >> download.log
 chmod a+rx download-logger
@@ -180,32 +139,44 @@ fi
 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dahdi/system.conf
-%attr(755,root,root) %{_sbindir}/*
-%attr(755,root,root) %{_libdir}/*.so.*
-%if %{with xpp}
+%attr(755,root,root) %{_sbindir}/astribank_*
+%attr(755,root,root) %{_sbindir}/dahdi_*
+%attr(755,root,root) %{_sbindir}/fpga_load
+%attr(755,root,root) %{_sbindir}/fxotune
+%attr(755,root,root) %{_sbindir}/lsdahdi
+%attr(755,root,root) %{_sbindir}/sethdlc
+%attr(755,root,root) %{_sbindir}/twinstar
+%attr(755,root,root) %{_sbindir}/xpp_blink
+%attr(755,root,root) %{_sbindir}/xpp_sync
+%attr(755,root,root) %{_libdir}/libtonezone.so.1.*
+%attr(755,root,root) %ghost %{_libdir}/libtonezone.so.1
+%attr(755,root,root) %{_libdir}/libtonezone.so.2.*
+%attr(755,root,root) %ghost %{_libdir}/libtonezone.so.2
-%files init
-%attr(754,root,root) /etc/rc.d/init.d/*
-%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dahdi
 %files devel
-%attr(755,root,root) %{_libdir}/*.so
+%attr(755,root,root) %{_libdir}/libtonezone.so
 %files static
-%files utils
+%files init
-%attr(755,root,root) %{_sbindir}/*
+%attr(754,root,root) /etc/rc.d/init.d/dahdi
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dahdi
 %files -n perl-Dahdi

---- gitweb:


More information about the pld-cvs-commit mailing list