# # spec file for package libpciaccess # # Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ # Name: libpciaccess %define lname libpciaccess0 Version: 0.16 Release: 1.8 Summary: Generic PCI access library License: MIT Group: Development/Libraries/C and C++ Url: http://cgit.freedesktop.org/xorg/lib/libpciaccess/ #Git-Clone: git://anongit.freedesktop.org/xorg/lib/libpciaccess #Git-Web: http://cgit.freedesktop.org/xorg/lib/libpciaccess/ Source: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2 Source1: baselibs.conf Patch0: u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build #git#BuildRequires: autoconf >= 2.60, automake, libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(xorg-macros) >= 1.8 %description Provides functionality for X to access the PCI bus and devices in a platform-independent way. %package -n %lname Summary: Generic PCI access library Group: System/Libraries %description -n %lname Provides functionality for X to access the PCI bus and devices in a platform-independent way. %package devel Summary: Development files for the Generic PCI access library Group: Development/Libraries/C and C++ Requires: %lname = %version # O/P added for 12.2 Provides: libpciaccess0-devel = 7.6_%version-%release Obsoletes: libpciaccess0-devel < 7.6_%version-%release %description devel Provides functionality for X to access the PCI bus and devices in a platform-independent way. This package contains the development headers for the library found in %lname. %prep %setup -q %patch0 -p1 %build %configure --with-pciids-path=%_datadir --disable-static make %{?_smp_mflags} %install make install DESTDIR="%buildroot" rm -f "%buildroot/%_libdir"/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %_libdir/libpciaccess.so.0* %files devel %defattr(-,root,root) %_includedir/pciaccess.h %_libdir/libpciaccess.so %_libdir/pkgconfig/pciaccess.pc %changelog * Mon Jul 22 2019 Stefan Dirsch - Update to version 0.16 * This release brings a compilation fix on 32-bit arm with newer glibc, and fixes the raw x86 backend's memory mapping to handle writes correctly. * Fri Jul 12 2019 Stefan Dirsch - Update to version 0.15 * Updates for FreeBSD and Hurd support * Fixed multifunction bridge enumeration * Fixed a crash when no PCI bus exists * Mon Oct 23 2017 tobias.johannes.klausmann@mni.thm.de - Update to version 0.14: This release adds support for 32-bit PCI domain IDs, which are common in virtualized environments. This support has been tested on Linux, and probably also "just works" on FreeBSD and Solaris, to the extent that the underlying OS supports it. * Sat Apr 8 2017 tobias.johannes.klausmann@mni.thm.de - Update to version 0.13.5: This release includes musl build fixes, improvements to the Solaris backend and allows parsing separate sysfs files rather than reading the config file on newer kernels. * Mon May 4 2015 sndirsch@suse.com - Update to version 0.13.4 * Add missing guards around config.h inclusion * Check for __linux__ instead of linux during compilation * Include the POSIX fcntl.h instead of sys/fcntl.h * Include config.h before any other headers. * Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64. * Mon Feb 9 2015 sndirsch@suse.com - Update to version 0.13.3 * This release provides a number of platform-specific improvements for various platforms, including Linux, Solaris, OpenBSD, NetBSD, and Hurd, plus the addition of some support for Cygwin. - added baselibs.conf as source to specfile in order to make factory checkin policy happy * Sat Aug 17 2013 zaitor@opensuse.org - Update to version 0.13.2: + Fix Sun bug #7035791: scanpci should report 64 bit registers. + Resync COPYING file with copyrights/licenses from code. + pci_device_solx_devfs_probe: implicit conversion changes signedness warnings. + pci_device_solx_devfs_read: fix sign conversion/comparison warnings. + Support more pci functions on NetBSD. + Update NetBSD support and fix build on NetBSD-4. + Enable boot_vga support only if WSDISPLAYIO_GET_BUSID is defined. Fixes build on NetBSD-5. + Add legacy IO routines for FreeBSD (fdo#63583). + pci_id_file_open: move variable inside the #ifndef that uses it. + Define PCI_MATCH_ANY as an unsigned int. + Move 'const' to correct place, so it has meaning. + Protect config.h like usual. + autogen.sh: Implement GNOME Build API + configure: Remove AM_MAINTAINER_MODE + PCI: set correct mask value when matching for bridges. + scanpci: print meaningful info on BASEROM + libpciaccess: - sparc rom read fix - implementation of boot_vga in Solaris - fix memory usage errors + Implement legacy io & map for x86 backend + Solaris: - Refactor pci_device_solx_devfs_map_range to reduce code duplication. - Implement map_legacy & legacy_io functions. - Probe improvement. - Add domain support for sparc platform. - Remove #defines for Ultra 45 southbridge device ids. * Fri Aug 2 2013 sndirsch@suse.com - u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch: Reenable default device when shutting down VGA arbitration. (bnc#714677, bnc#832973). * Sun Feb 17 2013 jengelh@inai.de - Use more robust make install call * Thu Apr 12 2012 vuntz@opensuse.org - Update to version 0.13.1: + linux: Fix out[bwl] macros on non-I/O architectures + Fix pci_io_handle allocation routines to provide sound stable memory allocation + Fix in OpenBSD support - Changes from version 0.13: + linux: Don't use /dev/port + Use O_CLOEXEC for internal file descriptors + delete_io_handle: fix deletion of last handle causing crash + Fix leak and compiler warnings + Improvements to OpenBSD and Solaris support * Mon Feb 13 2012 jengelh@medozas.de - Update to new upstream release 0.12.902 * ships new map_legacy APIs required by the current development version of xorg-server as well as miscelaneous bug fixes. - Rename main package from libpciaccess0 to libpciaccess. Do away with the 0 in libpciaccess0-devel, since the devel package is not actually versioned and only one can be installed. - Parallel build with %%_smp_mflags * Tue Jan 10 2012 sndirsch@suse.com - added libtool to Buildrequires to fix build on factory * Thu Dec 1 2011 coolo@suse.com - add automake as buildrequire to avoid implicit dependency * Wed Nov 2 2011 eich@suse.com - Add ./ to the %%_configure define - just to be on the safe side. * Tue Nov 1 2011 johannesobermayr@gmx.de - update to 0.12.901 * use autogen.sh not ./configure * needs pkgconfig(xorg-macros) >= 1.8 * general X11 is 7.6 not 7.4 * Tue Aug 30 2011 sndirsch@suse.com - created package