]> git.pld-linux.org Git - SPECS.git/blob - xorg-lib-libpciaccess.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / xorg-lib-libpciaccess.spec
1 Summary:        libpciaccess library to access PCI bus and devices
2 Summary(pl.UTF-8):      Biblioteka libpciaccess do dostępu do szyny i urządzeń PCI
3 Name:           xorg-lib-libpciaccess
4 Version:        0.16
5 Release:        1
6 License:        MIT
7 Group:          X11/Libraries
8 Source0:        https://xorg.freedesktop.org/archive/individual/lib/libpciaccess-%{version}.tar.bz2
9 # Source0-md5:  b34e2cbdd6aa8f9cc3fa613fd401a6d6
10 URL:            https://xorg.freedesktop.org/
11 BuildRequires:  autoconf >= 2.60
12 BuildRequires:  automake
13 BuildRequires:  libtool
14 BuildRequires:  pkgconfig >= 1:0.19
15 BuildRequires:  xorg-util-util-macros >= 1.8
16 BuildRequires:  zlib-devel
17 # pci.ids
18 Requires:       hwdata >= 0.243-2
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 libpciaccess library provides generic access to the PCI bus and
23 devices.
24
25 %description -l pl.UTF-8
26 Biblioteka pciaccess daje ogólny dostep do szyny i urządzeń PCI.
27
28 %package devel
29 Summary:        Header files for pciaccess library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki pciaccess
31 Group:          X11/Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 This package contains the header files needed to develop programs that
36 use pciaccess library.
37
38 %description devel -l pl.UTF-8
39 Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
40 używających biblioteki pciaccess.
41
42 %package static
43 Summary:        Static pciaccess library
44 Summary(pl.UTF-8):      Biblioteka statyczna pciaccess
45 Group:          X11/Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 This package contains the static pciaccess library.
50
51 %description static -l pl.UTF-8
52 Pakiet zawiera statyczną bibliotekę pciaccess.
53
54 %prep
55 %setup -q -n libpciaccess-%{version}
56
57 %build
58 %{__libtoolize}
59 %{__aclocal} -I m4
60 %{__autoconf}
61 %{__autoheader}
62 %{__automake}
63 %configure \
64         --with-pciids-path=/lib/hwdata \
65         --with-zlib
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT \
73         pkgconfigdir=%{_pkgconfigdir}
74
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpciaccess.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(644,root,root,755)
85 %doc AUTHORS COPYING ChangeLog README.md
86 %attr(755,root,root) %{_libdir}/libpciaccess.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libpciaccess.so.0
88
89 %files devel
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libpciaccess.so
92 %{_pkgconfigdir}/pciaccess.pc
93 %{_includedir}/pciaccess.h
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libpciaccess.a
This page took 0.044147 seconds and 3 git commands to generate.