1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libpciaccess |
---|
4 | Summary: PCI access library |
---|
5 | Summary(ja): PCI アクセスライブラリ |
---|
6 | Version: 0.13 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: MIT |
---|
11 | URL: http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git |
---|
12 | |
---|
13 | Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 |
---|
14 | Source1: make-libpciaccess-snapshot.sh |
---|
15 | |
---|
16 | Patch1: libpciaccess-kludge-wc-mmap.patch |
---|
17 | Patch2: libpciaccess-rom-size.patch |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
20 | BuildRequires: autoconf automake libtool pkgconfig |
---|
21 | BuildRequires: xorg-x11-util-macros |
---|
22 | Requires: hwdata |
---|
23 | |
---|
24 | %description |
---|
25 | libpciaccess is a library for portable PCI access routines across multiple |
---|
26 | operating systems. |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: PCI access library development package |
---|
30 | Summary(ja): PCI access library 開発パッケージ |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name} = %{version}-%{release} |
---|
33 | Requires: pkgconfig |
---|
34 | |
---|
35 | %description devel |
---|
36 | Development package for libpciaccess. |
---|
37 | |
---|
38 | |
---|
39 | # compat32 |
---|
40 | %package -n compat32-%{name} |
---|
41 | Summary: PCI access library |
---|
42 | Summary(ja): PCI アクセスライブラリ |
---|
43 | Group: System Environment/Libraries |
---|
44 | Requires: %{name} = %{version}-%{release} |
---|
45 | |
---|
46 | %description -n compat32-%{name} |
---|
47 | libpciaccess is a library for portable PCI access routines across multiple |
---|
48 | operating systems. |
---|
49 | |
---|
50 | %package -n compat32-%{name}-devel |
---|
51 | Summary: PCI access library development package |
---|
52 | Summary(ja): PCI access library 開発パッケージ |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: %{name}-devel = %{version}-%{release} |
---|
55 | Requires: pkgconfig |
---|
56 | |
---|
57 | %description -n compat32-%{name}-devel |
---|
58 | Development package for libpciaccess. |
---|
59 | |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q -n %{name}-%{version} |
---|
63 | %patch1 -p1 -b .wc |
---|
64 | %patch2 -p1 -b .rom-size |
---|
65 | |
---|
66 | %build |
---|
67 | ##autoreconf -v --install |
---|
68 | autoreconf -fi |
---|
69 | %configure --disable-static |
---|
70 | make %{?_smp_mflags} |
---|
71 | |
---|
72 | %install |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
75 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
76 | |
---|
77 | %clean |
---|
78 | rm -rf $RPM_BUILD_ROOT |
---|
79 | |
---|
80 | %post -p /sbin/ldconfig |
---|
81 | %postun -p /sbin/ldconfig |
---|
82 | |
---|
83 | %files |
---|
84 | %defattr(-,root,root,-) |
---|
85 | %doc COPYING AUTHORS ChangeLog |
---|
86 | %{_libdir}/libpciaccess.so.* |
---|
87 | |
---|
88 | %files devel |
---|
89 | %defattr(-,root,root,-) |
---|
90 | %{_includedir}/pciaccess.h |
---|
91 | %{_libdir}/libpciaccess.so |
---|
92 | %{_libdir}/pkgconfig/pciaccess.pc |
---|
93 | |
---|
94 | # compat32 |
---|
95 | %if %{build_compat32} |
---|
96 | %files -n compat32-%{name} |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %{_libdir}/libpciaccess.so.* |
---|
99 | |
---|
100 | %files -n compat32-%{name}-devel |
---|
101 | %defattr(-,root,root,-) |
---|
102 | %{_libdir}/libpciaccess.so |
---|
103 | %{_libdir}/pkgconfig/pciaccess.pc |
---|
104 | %endif |
---|
105 | |
---|
106 | %changelog |
---|
107 | * Sat Mar 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13-1 |
---|
108 | - new upstream release |
---|
109 | |
---|
110 | * Sat Jul 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-2 |
---|
111 | - create compat32 sub packages |
---|
112 | |
---|
113 | * Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-1 |
---|
114 | - new upstream release |
---|
115 | |
---|
116 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.0-2 |
---|
117 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
118 | |
---|
119 | * Sat Jul 31 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.0-1 |
---|
120 | - new upstream release |
---|
121 | - Drop the fd cache patch |
---|
122 | - added Patch2 from Fedora |
---|
123 | |
---|
124 | * Wed Nov 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.9-1 |
---|
125 | - new upstream release |
---|
126 | |
---|
127 | * Mon Oct 20 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.4-1 |
---|
128 | - new upstream release |
---|
129 | |
---|
130 | * Fri Jul 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.3-1 |
---|
131 | - new upstream release |
---|
132 | |
---|
133 | * Mon May 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1 |
---|
134 | - initial build for Vine Linux |
---|
135 | |
---|
136 | * Mon Apr 21 2008 Dave Airlie <airlied@redhat.com> 0.10-2 |
---|
137 | - fix major problem with libpciaccess and write combining. |
---|
138 | |
---|
139 | * Thu Mar 06 2008 Adam Jackson <ajax@redhat.com> 0.10-1 |
---|
140 | - libpciaccess 0.10 |
---|
141 | |
---|
142 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4.20071031 |
---|
143 | - Autorebuild for GCC 4.3 |
---|
144 | |
---|
145 | * Wed Jan 23 2008 Adam Jackson <ajax@redhat.com> 0.9.1-3.20071031 |
---|
146 | - libpciaccess-fd-cache.patch: Cache sysfs PCI config space file |
---|
147 | descriptors for great boot speed justice. |
---|
148 | |
---|
149 | * Wed Oct 31 2007 Kristian H淡gsberg <krh@redhat.com> 0.9.1-2.20071031 |
---|
150 | - New snapshot, git revision e392082abb5696c8837224da86cc0af4f21d7010. |
---|
151 | - Pick up new .so file. |
---|
152 | |
---|
153 | * Mon Sep 24 2007 Adam Jackson <ajax@redhat.com> 0.9.1-1 |
---|
154 | - libpciaccess 0.9.1 |
---|
155 | |
---|
156 | * Mon Aug 27 2007 Adam Jackson <ajax@redhat.com> 0.8-0.4.20070827git |
---|
157 | - New snapshot. |
---|
158 | |
---|
159 | * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.3.20070712git |
---|
160 | - Rebuild for PPC toolchain bug |
---|
161 | |
---|
162 | * Thu Jul 12 2007 Adam Jackson <ajax@redhat.com> 0.8-0.2.20070712git |
---|
163 | - New snapshot. Adds VGA ROM support. |
---|
164 | |
---|
165 | * Thu May 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.1.20070524git |
---|
166 | - Initial revision. |
---|