File libpciaccess0.spec of Package libpciaccess0

#
# spec file for package libpciaccess0
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libpciaccess0
%define dirsuffix 0.12.0
BuildRequires:  pkgconfig
Url:            http://xorg.freedesktop.org/
Version:        7.4_%{dirsuffix}
Release:        1
License:        X11/MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/Libraries
Provides:       xorg-x11-libs:/usr/%{_lib}/libpciaccess.so.0
Summary:        pciaccess library
Source:         libpciaccess-%{dirsuffix}.tar.bz2
Source2:        baselibs.conf

%description
pciaccess library.



Authors:
--------
    Apple Computer Corporation
    Dave Lemke
    David Dawes
    Derek Wang
    Frank Giessler
    Jim Gettys
    Juliusz Chroboczek
    Jungshik Shin
    Keith Packard
    Kensuke Matsuzaki
    Marc La France
    Mark Leisher
    Noah Levitt
    Phil Karlton
    Ralf Habacker
    Shunsuke Akiyama
    Suhaib Siddiqi
    Susan Angebrandt

%package devel
License:        X11/MIT
Summary:        Include Files and Libraries mandatory for X11 Development
Group:          Development/Libraries/X11
Provides:       xorg-x11-libs:/usr/%{_lib}/libpciaccess.so
Requires:       %{name} = %{version}
AutoReqProv:    on

%description devel
This package contains all necessary include files and libraries needed
to develop X11 applications that require these.



Authors:
--------
    
    Apple Computer Corporation
    Dave Lemke
    David Dawes
    Derek Wang
    Frank Giessler
    Jim Gettys
    Juliusz Chroboczek
    Jungshik Shin
    Keith Packard
    Kensuke Matsuzaki
    Marc La France
    Mark Leisher
    Noah Levitt
    Phil Karlton
    Ralf Habacker
    Shunsuke Akiyama
    Suhaib Siddiqi
    Susan Angebrandt

%prep
%setup -q -n libpciaccess-%{dirsuffix}

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --with-pic --with-pciids-path=/usr/share/
%{__make} %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf "$RPM_BUILD_ROOT"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
/usr/include/pciaccess.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la

%changelog
openSUSE Build Service is sponsored by