diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 06:59:27 -0800 |
---|---|---|
committer | Nicolas Guyomard <nicolas.guyomard@open.eurogiciel.org> | 2014-11-07 16:51:34 +0100 |
commit | 1e931778c0a4d6d9478eab9502ed79cb9c7e58dc (patch) | |
tree | be131b15acaeccc45a916b2e8a03cbf56ce4dd8f | |
parent | aa7925c4a798b9ed2cd43bd3c99c2df2a1824311 (diff) | |
download | libpciaccess-1e931778c0a4d6d9478eab9502ed79cb9c7e58dc.tar.gz libpciaccess-1e931778c0a4d6d9478eab9502ed79cb9c7e58dc.tar.bz2 libpciaccess-1e931778c0a4d6d9478eab9502ed79cb9c7e58dc.zip |
add packaging
-rw-r--r-- | packaging/libpciaccess.spec | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/packaging/libpciaccess.spec b/packaging/libpciaccess.spec new file mode 100644 index 0000000..9fbd4a4 --- /dev/null +++ b/packaging/libpciaccess.spec @@ -0,0 +1,62 @@ +# +# Please submit bugfixes or comments via http://bugs.tizen.org/ +# + +Name: libpciaccess +Version: 0.13.1 +Release: 1 +License: MIT +Summary: PCI access library +Url: http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git +Group: System Environment/Libraries +Source: %{name}-%{version}.tar.bz2 + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: pkgconfig(xorg-macros) +BuildRequires: pkgconfig(zlib) + +%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} +Requires: pkgconfig + +%description devel +Development package for libpciaccess. + +%prep +%setup -q + +%build +%reconfigure --disable-static \ + --with-pciids-path=%{_datadir}/misc --with-zlib \ + LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" +make %{?_smp_mflags} + +%install +%make_install + +%remove_docs + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING AUTHORS +%{_libdir}/libpciaccess.so.0 +%{_libdir}/libpciaccess.so.0.11.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/pciaccess.h +%{_libdir}/libpciaccess.so +%{_libdir}/pkgconfig/pciaccess.pc |