summaryrefslogtreecommitdiff
path: root/packaging/libpciaccess.spec
blob: dee110eb448cf768d2763c094f74b72ab4f37b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%bcond_with x

Name:           libpciaccess
Version:        0.13.2
Release:        0
License:        MIT
Summary:        PCI access library
Url:            http://cgit.freedesktop.org/xorg/lib/libpciaccess/
Group:          Base/Device Management
Source:         %{name}-%{version}.tar.bz2
Source1001: 	libpciaccess.manifest

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(xorg-macros) >= 1.8

%description
libpciaccess is a library for portable PCI access routines across multiple
operating systems.

%package devel
Summary:        PCI access library development package
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       pkgconfig

%description devel
libpciaccess is a library for portable PCI access routines across multiple
operating systems.

This package contains development files needed to develop with the
libpciaccess library.

%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}

%prep
%setup -q
cp %{SOURCE1001} .
%build
NOCONFIGURE=1
%autogen
%configure --disable-static \
           --with-pciids-path=%{_datadir}/misc --with-zlib
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
%make_install

%remove_docs

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_SHARE}/license/%{name}
%{_libdir}/libpciaccess.so.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/pciaccess.h
%{_libdir}/libpciaccess.so
%{_libdir}/pkgconfig/pciaccess.pc
%{TZ_SYS_RO_SHARE}/license/%{name}