Initial revision
This commit is contained in:
parent
62ef4e4fde
commit
a60f1590b9
@ -0,0 +1 @@
|
|||||||
|
libpciaccess-20070530.tar.bz2
|
67
libpciaccess.spec
Normal file
67
libpciaccess.spec
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
%define gitdate 20070530
|
||||||
|
%define gitrev db56c640028d2f8072274f3eb603caa481103f4f
|
||||||
|
|
||||||
|
Name: libpciaccess
|
||||||
|
Version: 0.8
|
||||||
|
Release: 0.1.%{gitdate}git%{?dist}
|
||||||
|
Summary: PCI access library
|
||||||
|
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: MIT
|
||||||
|
URL: http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git
|
||||||
|
# git snapshot. To recreate, run
|
||||||
|
# % ./make-libpciaccess-snapshot.sh %{gitrev}
|
||||||
|
Source0: libpciaccess-%{gitdate}.tar.bz2
|
||||||
|
Source1: make-libpciaccess-snapshot.sh
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: autoconf automake libtool pkgconfig
|
||||||
|
Requires: hwdata
|
||||||
|
|
||||||
|
%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
|
||||||
|
Development package for libpciaccess.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{gitdate}
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -v --install
|
||||||
|
%configure --disable-static
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%{_libdir}/libpciaccess.so.0
|
||||||
|
%{_libdir}/libpciaccess.so.0.8.0
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/pciaccess.h
|
||||||
|
%{_libdir}/libpciaccess.so
|
||||||
|
%{_libdir}/pkgconfig/pciaccess.pc
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu May 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.1.20070524git
|
||||||
|
- Initial revision.
|
12
make-libpciaccess-snapshot.sh
Executable file
12
make-libpciaccess-snapshot.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DIRNAME=libpciaccess-$( date +%Y%m%d )
|
||||||
|
|
||||||
|
rm -rf $DIRNAME
|
||||||
|
git clone git://git.freedesktop.org/git/xorg/lib/libpciaccess $DIRNAME
|
||||||
|
cd $DIRNAME
|
||||||
|
git checkout $1
|
||||||
|
rm -rf .git
|
||||||
|
cd ..
|
||||||
|
tar jcf $DIRNAME.tar.bz2 $DIRNAME
|
||||||
|
rm -rf $DIRNAME
|
Loading…
Reference in New Issue
Block a user