Kristian Høgsberg cc670ff
%define gitdate 20071031
Kristian Høgsberg cc670ff
%define gitrev e392082abb5696c8837224da86cc0af4f21d7010
a60f159
a60f159
Name:           libpciaccess
c7ba031
Version:        0.10.9
c7ba031
Release:        1%{?dist}
a60f159
Summary:        PCI access library
a60f159
a60f159
Group:          System Environment/Libraries
a60f159
License:        MIT
a60f159
URL:            http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git
Kristian Høgsberg 5398dc3
a60f159
# git snapshot.  To recreate, run
a60f159
# % ./make-libpciaccess-snapshot.sh %{gitrev}
18bafdc
#Source0:        libpciaccess-20071031.tar.bz2
18bafdc
Source0:	http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
a60f159
Source1:        make-libpciaccess-snapshot.sh
a60f159
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a60f159
38ab561
Patch0:		libpciaccess-fd-cache.patch
Kristian Høgsberg 647f70c
Patch2:		libpciaccess-rom-size.patch
38ab561
9d13796
BuildRequires:  autoconf automake libtool pkgconfig xorg-x11-util-macros
a60f159
Requires:       hwdata
a60f159
a60f159
%description
a60f159
libpciaccess is a library for portable PCI access routines across multiple
a60f159
operating systems.
a60f159
a60f159
%package devel
a60f159
Summary:        PCI access library development package
a60f159
Group:          Development/Libraries
a60f159
Requires:       %{name} = %{version}-%{release}
a60f159
Requires:       pkgconfig
a60f159
a60f159
%description devel
a60f159
Development package for libpciaccess.
a60f159
a60f159
%prep
18bafdc
%setup -q -n %{name}-%{version}
38ab561
%patch0 -p1 -b .cache
Kristian Høgsberg 647f70c
%patch2 -p1 -b .rom-size
a60f159
a60f159
%build
9843e11
autoreconf -v --install
a60f159
%configure --disable-static
a60f159
make %{?_smp_mflags}
a60f159
a60f159
%install
a60f159
rm -rf $RPM_BUILD_ROOT
a60f159
make install DESTDIR=$RPM_BUILD_ROOT
a60f159
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
a60f159
a60f159
%clean
a60f159
rm -rf $RPM_BUILD_ROOT
a60f159
a60f159
%post -p /sbin/ldconfig
a60f159
%postun -p /sbin/ldconfig
a60f159
a60f159
%files
a60f159
%defattr(-,root,root,-)
a60f159
%doc COPYING AUTHORS ChangeLog
a60f159
%{_libdir}/libpciaccess.so.0
e7739c1
%{_libdir}/libpciaccess.so.0.10.*
a60f159
a60f159
%files devel
a60f159
%defattr(-,root,root,-)
a60f159
%{_includedir}/pciaccess.h
a60f159
%{_libdir}/libpciaccess.so
a60f159
%{_libdir}/pkgconfig/pciaccess.pc
a60f159
a60f159
%changelog
c7ba031
* Fri Sep 25 2009 Dave Airlie <airlied@redhat.com> 0.10.9-1
c7ba031
- rebase to latest upstream release - drop patches
c7ba031
3c14e49
* Thu Aug 06 2009 Dave Airlie <airlied@redhat.com> 0.10.6-7
3c14e49
- disable rom reading fallbacks
3c14e49
d1d2442
* Wed Aug 05 2009 Adam Jackson <ajax@redhat.com> 0.10.6-6
d1d2442
- D'oh.  Fix obvious sense inversion in the previous patch.
d1d2442
7f68000
* Wed Aug 05 2009 Adam Jackson <ajax@redhat.com> 0.10.6-5
7f68000
- libpciaccess-0.10.6-rom-sanity.patch: If we hit the /dev/mem path for
7f68000
  reading a device's ROM, verify that it looks like it at least might belong
7f68000
  to the device in question by checking vendor and device ID match.  Fixes
7f68000
  vbetool post hanging forever (and thus blocking boot) on some dual-gpu
7f68000
  laptops.
7f68000
dc71c21
* Mon Aug 03 2009 Dave Airlie <airlied@redhat.com> 0.10.6-4
dc71c21
- Add support for default vga arb device selection
dc71c21
- Update libpciaccess VGA arb code for newer kernel API
dc71c21
9843e11
* Fri Jul 31 2009 Dave Airlie <airlied@redhat.com> 0.10.6-3
9843e11
- enable autoreconf to rebuild configure properly
9843e11
e312101
* Fri Jul 31 2009 Dave Airlie <airlied@redhat.com> 0.10.6-2
e312101
- libpciaccess-vga-arbiter.patch: add vga arbiter support to libpciaccess
e312101
5abc519
* Mon Jul 27 2009 Dave Airlie <airlied@redhat.com> 0.10.6-1
5abc519
- rebase to latest release (will do release with VGA bits later)
5abc519
- libpciaccess-boot-vga.patch: add boot vga patch from upstream
5abc519
5abc519
516e5ec
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-2
516e5ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
516e5ec
4a9d6be
* Tue Apr 21 2009 Adam Jackson <ajax@redhat.com> 0.10.5-1
4a9d6be
- libpciaccess 0.10.5
4a9d6be
f3c7ca6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-6
f3c7ca6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f3c7ca6
Kristian Høgsberg 62cd196
* Sun Feb 15 2009 Kristian Høgsberg <krh@redhat.com> - 0.10.3-5
Kristian Høgsberg 62cd196
- Unbreak the rom-size patch.
Kristian Høgsberg 62cd196
Kristian Høgsberg 647f70c
* Sun Feb 15 2009 Kristian Høgsberg <krh@redhat.com> - 0.10.3-4
Kristian Høgsberg 647f70c
- Don't read more than the advertised rom_size.
Kristian Høgsberg 647f70c
e7739c1
* Thu Aug 28 2008 Adam Jackson <ajax@redhat.com> 0.10.3-3
e7739c1
- Rediff for --fuzz=0
e7739c1
e7739c1
* Wed Jul 02 2008 Adam Jackson <ajax@redhat.com> 0.10.3-2
e7739c1
- Fix file access mode in config fd cache. (#452910)
e7739c1
e7739c1
* Tue Jul 01 2008 Adam Jackson <ajax@redhat.com> 0.10.3-1
e7739c1
- libpciaccess 0.10.3
e7739c1
e7739c1
* Tue May 20 2008 Adam Jackson <ajax@redhat.com> 0.10-3
e7739c1
- libpciaccess-no-pci-fix.patch: Fix init when /sys/bus/pci is empty or
e7739c1
  nonexistent.
e7739c1
e7739c1
* Mon Apr 21 2008 Dave Airlie <airlied@redhat.com> 0.10-2
e7739c1
- fix major problem with libpciaccess and write combining.
e7739c1
18bafdc
* Thu Mar 06 2008 Adam Jackson <ajax@redhat.com> 0.10-1
18bafdc
- libpciaccess 0.10
18bafdc
1f3b6bb
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4.20071031
1f3b6bb
- Autorebuild for GCC 4.3
1f3b6bb
38ab561
* Wed Jan 23 2008 Adam Jackson <ajax@redhat.com> 0.9.1-3.20071031
38ab561
- libpciaccess-fd-cache.patch: Cache sysfs PCI config space file
38ab561
  descriptors for great boot speed justice.
38ab561
Kristian Høgsberg cc670ff
* Wed Oct 31 2007 Kristian Høgsberg <krh@redhat.com> 0.9.1-2.20071031
Kristian Høgsberg cc670ff
- New snapshot, git revision e392082abb5696c8837224da86cc0af4f21d7010.
Kristian Høgsberg f4ec13b
- Pick up new .so file.
Kristian Høgsberg cc670ff
8759fd2
* Mon Sep 24 2007 Adam Jackson <ajax@redhat.com> 0.9.1-1
8759fd2
- libpciaccess 0.9.1
8759fd2
567ade4
* Mon Aug 27 2007 Adam Jackson <ajax@redhat.com> 0.8-0.4.20070827git
567ade4
- New snapshot.
567ade4
2c21760
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.3.20070712git
2c21760
- Rebuild for PPC toolchain bug
2c21760
fed8a00
* Thu Jul 12 2007 Adam Jackson <ajax@redhat.com> 0.8-0.2.20070712git
fed8a00
- New snapshot.  Adds VGA ROM support.
fed8a00
a60f159
* Thu May 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.1.20070524git
a60f159
- Initial revision.