|
@@ -1,10 +1,13 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Name: libxshmfence
|
|
|
Version: 1.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Summary: X11 shared memory fences
|
|
|
|
|
|
License: MIT
|
|
|
URL: http://www.x.org/
|
|
|
+Group: System Environment/Libraries
|
|
|
Source0: http://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
# upstream tarball has broken libtool because libtool is never not broken
|
|
@@ -29,6 +32,17 @@ Requires: %{name} = %{version}-%{release}
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
+# compat32
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: X11 shared memory fences
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+This package contains libraries and header files for
|
|
|
+developing applications that use %{name}.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
@@ -45,6 +59,11 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
+%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+
|
|
|
+%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+
|
|
|
+
|
|
|
%files
|
|
|
%doc COPYING ChangeLog README
|
|
|
%defattr(-,root,root,-)
|
|
@@ -56,7 +75,17 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
%{_libdir}/pkgconfig/xshmfence.pc
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
+# compat32
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libxshmfence.so.1*
|
|
|
+%endif
|
|
|
+
|
|
|
%changelog
|
|
|
+* Wed May 14 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2
|
|
|
+- add compat32 subpackage for mesa
|
|
|
+
|
|
|
* Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-1
|
|
|
- initial build for Vine Linux
|
|
|
|