# !! DON'T MODIFY HERE, MODIFY IN THE CVS !! %define name ldetect %define version 0.4.2 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} Summary: Light hardware detection library Source: %{name}.tar.bz2 Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: usbutils pciutils-devel Requires: ldetect-lst License: GPL Prefix: %{_prefix} %package devel Summary: Development package for ldetect Group: Development/C %description The hardware device lists provided by this package are used as lookup table to get hardware autodetection %description devel see %{name} %prep %setup -q -n %{name} %build # Add PIC code in static library because it could be linked into a DSO %ifarch ia64 x86_64 PICFLAGS="-DPIC -fPIC" %endif %make CFLAGS="-Wall -Wstrict-prototypes $PICFLAGS" %install rm -rf $RPM_BUILD_ROOT %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/* %changelog * Tue Jul 16 2002 Thierry Vignaud 0.4.2-1mdk - usb.c: add the ability to read usb devices list from a file instead of /proc/usb/devices - make a few tests clearer - pci.c: o move exception stuff from the fast path into the probe all patch o reduce memory usage, especially stack usage o add the ability to read pci devices list from a file instead of /proc/bus/pci/devices - lspcidrake.c: o compacificazion o fix compilation with gcc-2.95.3 (reported by Ian White) o describe all options o add -p option so that lspcidrake can read pci devices from a file in order to understand what happened to remote testers o add -u option so that lspcidrake can read usb devices from a file in order to understand what happened to remote testers * Thu Jul 4 2002 Thierry Vignaud 0.4.1-1mdk - let prevent useless copy - stricter checking compilation and fix warnings - make some code paths simpler mainly in pciusb.c - remove useless {pci,usb}_find_modules() wrappers - when multiples cards're identical, just return the cached description and text - skip comments in {usb,pci}table - remove uneeded test/free - move some stuff outside fast paths into exception paths - this result in: - a bug fix (regarding null description with -f) as a side effect - saving 9% of the binary & library size * Wed Jun 26 2002 Gwenole Beauchesne 0.4.0-2mdk - sanitize specfile * Mon Jun 10 2002 Pixel 0.4.0-1mdk - ensure the header file are C++ compliant (do not use "class" for struct field name) * Fri Dec 28 2001 Pixel 0.2.5-1mdk - in probe_type=1, recognize usb controllers (is either usb-uhci or usb-ohci) * Thu Sep 13 2001 Pixel 0.2.4-2mdk - use the sub-category for usb probing * Tue Sep 11 2001 Guillaume Cottenceau 0.2.4-1mdk - add "-v" and "-f" options to lspcidrake for (v)erbose mode and (f)ull probe * Wed Aug 29 2001 Pixel 0.2.3-14mdk - fix when 2 similar devices are there * Thu Apr 12 2001 Pixel 0.2.3-13mdk - close fdno's of the pipe which are unused or dup2'ed * Wed Apr 11 2001 François Pons 0.2.3-12mdk - fixed to use LD_LOADER if defined. * Thu Mar 29 2001 Pixel 0.2.3-11mdk - fix some memory leak and a few segfaults * Sat Mar 24 2001 Pixel 0.2.3-10mdk - nasty C, fclose on popen'ed gets a segfault, in /some/ cases :-( * Fri Mar 23 2001 Pixel 0.2.3-9mdk - handle gzip'ed pcitable/usbtable * Wed Mar 21 2001 Pixel 0.2.3-8mdk - use subids if they are needed * Thu Mar 15 2001 François Pons 0.2.3-7mdk - added pci_bus, pci_device and pci_function for DrakX - added back Francis into cvs, please Francis do it yourself! * Tue Mar 15 2001 Francis Galiegue 0.2.3-6mdk - -fPIC in CFLAGS for ia64 * Tue Mar 6 2001 François Pons 0.2.3-5mdk - added support for SHARE_PATH - add BuildRequires: usbutils * Tue Feb 13 2001 Pixel 0.2.3-4mdk - fix ifree * Tue Feb 6 2001 Pixel 0.2.3-3mdk - fix missing fclose's * Fri Dec 22 2000 Guillaume Cottenceau 0.2.3-2mdk - prettier printing for lspcidrake * Sat Dec 16 2000 Pixel 0.2.3-1mdk - now detect usb * Fri Dec 15 2000 Pixel 0.2.2-1mdk - fix pciprobe for subids * Fri Dec 15 2000 Pixel 0.2.1-1mdk - try with linux/pci_ids.h to generate pciclass.c (kernel 2.4) * Fri Dec 15 2000 Pixel 0.2.0-2mdk - add requires ldetect-lst * Fri Dec 15 2000 Pixel 0.2.0-1mdk - first release