Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:antocm:rivendell
hpklinux-4.04.01
hpklinux.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hpklinux.spec of Package hpklinux-4.04.01
## ## AudioScience HPI driver ## Copyright (C) 1997-2003 AudioScience Inc. <support@audioscience.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of version 2 of the GNU General Public License as ## published by the Free Software Foundation; ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, ## Boston, MA 02111-1307 USA ## Summary: A Linux HPI Driver for AudioScience Audio Adapters Name: hpklinux Version: 4.04.01 Release: 1 License: GPL Group: System/Kernel # Source: http://www.audioscience.com/internet/download/hpklinux-4.04.01.tar.gz Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build # # required according to Mark Acosta for suse 9.2? Conflicts: alsa-firmware # Prereq: /sbin/chkconfig, /sbin/depmod, /bin/rm, /bin/mv, /bin/mkdir # Prereq: sh-utils BuildRequires: module-init-tools udev %if 0%{?suse_version} BuildRequires: kernel-syms BuildRequires: %kernel_module_package_buildreq %kernel_module_package %if 0%{?suse_version} == 1120 BuildRequires: kernel-source kernel-default %endif %endif %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: rpmdevtools BuildRequires: kernel BuildRequires: %kernel_module_package_buildreqs %endif %package devel Summary: Development files for AudioScience Audio Adapters Group: Development/Libraries Requires: hpklinux %description HPI driver for the AudioScience line of professional audio adapters. This package supports the AudioScience HPI API. It includes kernel driver and commandline tools. The driver and tools are supplied as source under the GPL license. %description devel Development files for the AudioScience HPI driver. This package contains libraries to support the AudioScience HPI. Userspace libraries are under a BSD style license. Both 32 and 64 bit kernels are supported. %prep %setup set -- * mkdir source mv "$@" source/ mkdir obj %build cd source ./autogen.sh ./configure --prefix=/usr # ./configure --prefix=/usr --with-firmware=/lib/firmware --with-kernel=%%{kernel_source $flavor} # Remove RPATH references # http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make cd .. for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -ar source obj/$flavor make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor/drv done %install export INSTALL_MOD_PATH=%{buildroot} %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} export INSTALL_MOD_DIR=extra/%{name} %else export INSTALL_MOD_DIR=updates %endif for flavor in %flavors_to_build; do make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor/drv done cd source mkdir -p %{buildroot}/%{_bindir} cp test/.libs/asihpitest %{buildroot}/%{_bindir}/ strip -s %{buildroot}/%{_bindir}/asihpitest cp test/.libs/asihpirec %{buildroot}/%{_bindir}/ strip -s %{buildroot}/%{_bindir}/asihpirec cp test/.libs/asihpiplay %{buildroot}/%{_bindir}/ strip -s %{buildroot}/%{_bindir}/asihpiplay cp test/.libs/asihpiassert %{buildroot}/%{_bindir}/ strip -s %{buildroot}/%{_bindir}/asihpiassert cp test/.libs/asihpitune %{buildroot}/%{_bindir}/ strip -s %{buildroot}/%{_bindir}/asihpitune ##mkdir -p %{buildroot}/tmp ##cp helpers/firmware.agent %{buildroot}/tmp/firmware.agent # Firmwares always goes to /lib and never to /lib64 mkdir -p %{buildroot}/lib/firmware/asihpi cp firmware/dsp5000.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp6200.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp6205.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp6400.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp6600.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp8700.bin %{buildroot}/lib/firmware/asihpi/ cp firmware/dsp8900.bin %{buildroot}/lib/firmware/asihpi/ mkdir -p %{buildroot}/etc/udev/rules.d cp drv/asihpi.rules %{buildroot}/etc/udev/rules.d/45-asihpi.rules mkdir -p %{buildroot}/%{_includedir}/asihpi cp lib/hpi.h %{buildroot}/%{_includedir}/asihpi/ cp lib/hpios.h %{buildroot}/%{_includedir}/asihpi/ mkdir -p %{buildroot}/%{_libdir} cp lib/.libs/libhpi.a %{buildroot}/%{_libdir}/ cp lib/.libs/libhpi.so.9.0.0 %{buildroot}/%{_libdir}/ strip -s %{buildroot}/%{_libdir}/libhpi.so.9.0.0 ln -s /%{_libdir}/libhpi.so.9.0.0 %{buildroot}/%{_libdir}/libhpi.so ln -s /%{_libdir}/libhpi.so.9.0.0 %{buildroot}/%{_libdir}/libhpi.so.9 %post /sbin/ldconfig # depmod line has moved into KMP packages %preun # These lines should perhaps go into the KMP packages if test -n "`grep -w asihpi /proc/modules`" ; then /sbin/rmmod -w asihpi fi %postun # depmod line has moved into KMP packages /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root) /%{_bindir}/* ## /tmp/firmware.agent # includes all files inside /lib/firmware/asihpi /lib/firmware/asihpi %config /etc/udev/rules.d/45-asihpi.rules # Kernel module is automatically included in separate package # /%%{_lib}/modules/%%{kversion}/extra/asihpi.ko /%{_libdir}/libhpi.so.9.0.0 /%{_libdir}/libhpi.so.9 /%{_libdir}/libhpi.so %doc source/drvnotes.txt source/README.hpi source/INSTALL.hpi %files devel %defattr(-,root,root) /%{_includedir}/asihpi /%{_libdir}/libhpi.a %changelog * Fri Aug 07 2010 Antonio Cardoso Martins <digiplan.pt@gmail.com> - 4.04.01 -- Added support for openSUSE Build Service (OBS) * Wed May 05 2010 Fred Gleason <fredg@paravelsystems.com> -- Removed 'asihpi' init script. -- Added a modprobe(8) call to initialize driver after installation. -- Added a 'Conflicts:' rule for 'alsa-firmware'. * Thu Apr 29 2010 Fred Gleason <fredg@paravelsystems.com> -- Removed drvnotes_rc.txt. * Fri May 23 2008 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- Change firmware names. Remove ASI4xxx firmware * Wed Sep 26 2007 Eliot Blennerhassett <eblennerhassett@audioscience.com> 4.04.01 -- Add udev rule, remove asihpi script from bin * Thu Jun 06 2007 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- Restructure directories. Remove firmware.agent install * Fri Aug 11 2006 Fred Gleason <fredg@salemradiolabs.com> -- Added conditional library path to support x86_64 architecture. * Tue May 16 2006 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- Remove DSP support for 4[456]00, 8800, add 6600 * Fri Mar 17 2006 Fred Gleason <fredg@salemradiolabs.com> -- Fixed the library versioning to automatically track changes. * Fri Feb 10 2006 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- Alter dsp bin install to use DSPBINPATH from Autoconf * Wed Feb 08 2006 Fred Gleason <fredg@salemradiolabs.com> -- Altered install paths to use $prefix value from Autoconf. * Thu May 19 2005 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- add dsp6205, remove dsp8705 * Thu Jan 27 2005 Eliot Blennerhassett <eblennnerhassett@audioscience.com> -- fixed install paths for test software * Mon Jan 17 2005 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- added asihpitune * Tue Aug 18 2004 Fred Gleason <fredg@salemradiolabs.com> -- Corrected for proper module path/name on both 2.4.x and 2.6.x kernels. * Thu Aug 05 2004 Fred Gleason <fredg@salemradiolabs.com> -- Added 'depmod -a' to %%post. -- Added a rule to install '/etc/hotplug/firmware.agent' if needed. * Tue Aug 03 2004 Fred Gleason <fredg@salemradiolabs.com> -- Modified for new firmware layout. -- Modified to support dynamic library binaries. -- Added a 'devel' subpackage. * Thu Mar 04 2004 EB -- Fixed date typo below. Fix path to INSTALL.hpi * Wed Feb 04 2004 Eliot Blennerhassett <eblennerhassett@audioscience.com> -- Removed asihpiload and asihpiunload, added thpilinux,hpiassert * Tue Feb 03 2004 Fred Gleason <fredg@salemradiolabs.com> -- Changed autosubstitution of kernel version to use AC_SUBST macro rather than sed(1). * Mon Dec 01 2003 Fred Gleason <fredg@salemradiolabs.com> -- Added spec file to the base HPK source tree as part of the project to autoconfiscate the driver. * Mon Dec 02 2002 Fred Gleason <fredg@wava.com> - Updated for SuSE 8.0/SMP and HPK v2.74. * Wed Oct 30 2002 Fred Gleason <fredg@wava.com> - Updated for SuSE 8.1 and HPK v2.73. * Fri Sep 27 2002 Fred Gleason <fredg@wava.com> - Initial package creation.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor