137f6c5
#define gitdate 20111109
137f6c5
#define gitrev  a0a53a67c91c698007dcac3e7aba27c999c4f6ed
a60f159
a60f159
Name:           libpciaccess
3ee76ea
Version:        0.13
630a2ed
Release:        2%{?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}
137f6c5
#Source0:        libpciaccess-%{gitdate}.tar.bz2
137f6c5
Source0:	http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
a60f159
Source1:        make-libpciaccess-snapshot.sh
a60f159
630a2ed
Patch0:		libpciaccess-macros.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
Peter Hutterer d609f93
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
630a2ed
%patch0 -p1 -b .macros
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,-)
d95f75e
%doc COPYING AUTHORS
a60f159
%{_libdir}/libpciaccess.so.0
Peter Hutterer d609f93
%{_libdir}/libpciaccess.so.0.11.*
a60f159
a60f159
%files devel
a60f159
%defattr(-,root,root,-)
a60f159
%{_includedir}/pciaccess.h
a60f159
%{_libdir}/libpciaccess.so
a60f159
%{_libdir}/pkgconfig/pciaccess.pc
a60f159
a60f159
%changelog
630a2ed
* Wed Mar 28 2012 Adam Jackson <ajax@redhat.com> 0.13-2
630a2ed
- libpciaccess-macros.patch: Fix out* macros again
630a2ed
3ee76ea
* Wed Mar 28 2012 Adam Jackson <ajax@redhat.com> 0.13-1
3ee76ea
- libpciaccess 0.13
3ee76ea
4b6dae9
* Wed Feb 29 2012 Dan Horák <dan[at]danny.cz> - 0.12.902-6
4b6dae9
- fix the out[bwl] compatibility macros
4b6dae9
0b270d0
* Thu Feb 16 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.12.902-5
0b270d0
- Add ARM arch to libpciaccess-lol-dev-port patch
0b270d0
c2d89ec
* Wed Feb 08 2012 Adam Jackson <ajax@redhat.com> 0.12.902-4
c2d89ec
- libpciaccess-lol-dev-port.patch: Don't use /dev/port since the kernel insists
c2d89ec
  that it remain unusably broken.
c2d89ec
840a831
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.902-3
840a831
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
840a831
Daniel Drake dd52719
* Mon Nov 28 2011 Daniel Drake <dsd@laptop.org> 0.12.902-2
Daniel Drake dd52719
- Add upstream patch to fix ios deletion; fixes X crash on OLPC XO-1.5
Daniel Drake dd52719
137f6c5
* Wed Nov 09 2011 Adam Jackson <ajax@redhat.com> 0.12.902-1
137f6c5
- libpciaccess 0.12.902
137f6c5
Peter Hutterer d609f93
* Wed Nov 09 2011 Peter Hutterer <peter.hutterer@redhat.com> 0.12.901-1
Peter Hutterer d609f93
- Today's git snapshot
Peter Hutterer d609f93
4611b2e
* Wed Feb 09 2011 Adam Jackson <ajax@redhat.com> 0.12.1-1
4611b2e
- libpciaccess 0.12.1
4611b2e
8d5b2c8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-2
8d5b2c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8d5b2c8
c35683c
* Wed Jul 21 2010 Dave Airlie <airlied@redhat.com> 0.12.0-1
c35683c
- libpciaccess 0.12
c35683c
754a498
* Tue Mar 16 2010 Adam Jackson <ajax@redhat.com> 0.11.0-1
754a498
- libpciaccess 0.11
754a498
d95f75e
* Wed Dec 09 2009 Adam Jackson <ajax@redhat.com> 0.10.9-2.20091209
d95f75e
- New git snapshot
d95f75e
- Drop the fd cache patch
d95f75e
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
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.