diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 06:59:27 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 06:59:27 -0800 |
commit | c6cd8dc4fe613b3d1f4e9fda2a589cfe45612eb8 (patch) | |
tree | af9bba4a6a0499b9674ee3b9ad1fc7990b5d9a62 | |
parent | b1016de6a14fb7ba64ca78cd8841fe404a8cff61 (diff) | |
download | libpciaccess-c6cd8dc4fe613b3d1f4e9fda2a589cfe45612eb8.tar.gz libpciaccess-c6cd8dc4fe613b3d1f4e9fda2a589cfe45612eb8.tar.bz2 libpciaccess-c6cd8dc4fe613b3d1f4e9fda2a589cfe45612eb8.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 |