[8437] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[8064] | 3 | Name: libxshmfence |
---|
| 4 | Version: 1.1 |
---|
[8437] | 5 | Release: 2%{?_dist_release} |
---|
[8064] | 6 | Summary: X11 shared memory fences |
---|
| 7 | |
---|
| 8 | License: MIT |
---|
| 9 | URL: http://www.x.org/ |
---|
[8437] | 10 | Group: System Environment/Libraries |
---|
[8064] | 11 | Source0: http://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 |
---|
| 12 | |
---|
| 13 | # upstream tarball has broken libtool because libtool is never not broken |
---|
| 14 | BuildRequires: autoconf |
---|
| 15 | BuildRequires: automake |
---|
| 16 | BuildRequires: libtool |
---|
| 17 | BuildRequires: xorg-x11-util-macros |
---|
| 18 | BuildRequires: xorg-x11-proto-devel |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: Takemikaduchi |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Shared memory fences for X11, as used in DRI3. |
---|
| 26 | |
---|
| 27 | %package devel |
---|
| 28 | Summary: Development files for %{name} |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | The %{name}-devel package contains libraries and header files for |
---|
| 33 | developing applications that use %{name}. |
---|
| 34 | |
---|
[8437] | 35 | # compat32 |
---|
| 36 | %package -n compat32-%{name} |
---|
| 37 | Summary: X11 shared memory fences |
---|
| 38 | Group: System Environment/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | |
---|
| 41 | %description -n compat32-%{name} |
---|
| 42 | This package contains libraries and header files for |
---|
| 43 | developing applications that use %{name}. |
---|
| 44 | |
---|
| 45 | |
---|
[8064] | 46 | %prep |
---|
| 47 | %setup -q |
---|
| 48 | |
---|
| 49 | %build |
---|
| 50 | autoreconf -v -i -f |
---|
| 51 | %configure --disable-static |
---|
| 52 | make %{?_smp_mflags} |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 56 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 57 | |
---|
| 58 | %post -p /sbin/ldconfig |
---|
| 59 | |
---|
| 60 | %postun -p /sbin/ldconfig |
---|
| 61 | |
---|
[8437] | 62 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 63 | |
---|
| 64 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 65 | |
---|
| 66 | |
---|
[8064] | 67 | %files |
---|
| 68 | %doc COPYING ChangeLog README |
---|
| 69 | %defattr(-,root,root,-) |
---|
| 70 | %{_libdir}/libxshmfence.so.1* |
---|
| 71 | |
---|
| 72 | %files devel |
---|
| 73 | %defattr(-,root,root,-) |
---|
| 74 | %{_includedir}/* |
---|
| 75 | %{_libdir}/pkgconfig/xshmfence.pc |
---|
| 76 | %{_libdir}/*.so |
---|
| 77 | |
---|
[8437] | 78 | # compat32 |
---|
| 79 | %if %{build_compat32} |
---|
| 80 | %files -n compat32-%{name} |
---|
| 81 | %defattr(-,root,root,-) |
---|
| 82 | %{_libdir}/libxshmfence.so.1* |
---|
| 83 | %endif |
---|
| 84 | |
---|
[8064] | 85 | %changelog |
---|
[8437] | 86 | * Wed May 14 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2 |
---|
| 87 | - add compat32 subpackage for mesa |
---|
| 88 | |
---|
[8064] | 89 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-1 |
---|
| 90 | - initial build for Vine Linux |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | * Thu Dec 12 2013 Adam Jackson <ajax@redhat.com> 1.1-1 |
---|
| 94 | - xshmfence 1.1 |
---|
| 95 | |
---|
| 96 | * Wed Nov 06 2013 Adam Jackson <ajax@redhat.com> 1.0-1 |
---|
| 97 | - Initial packaging |
---|
| 98 | |
---|