1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libxshmfence |
---|
4 | Version: 1.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: X11 shared memory fences |
---|
7 | |
---|
8 | License: MIT |
---|
9 | URL: http://www.x.org/ |
---|
10 | Group: System Environment/Libraries |
---|
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 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | |
---|
32 | %description devel |
---|
33 | The %{name}-devel package contains libraries and header files for |
---|
34 | developing applications that use %{name}. |
---|
35 | |
---|
36 | # compat32 |
---|
37 | %package -n compat32-%{name} |
---|
38 | Summary: X11 shared memory fences |
---|
39 | Group: System Environment/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | |
---|
42 | %description -n compat32-%{name} |
---|
43 | This package contains libraries and header files for |
---|
44 | developing applications that use %{name}. |
---|
45 | |
---|
46 | |
---|
47 | %prep |
---|
48 | %setup -q |
---|
49 | |
---|
50 | %build |
---|
51 | autoreconf -v -i -f |
---|
52 | %configure --disable-static |
---|
53 | make %{?_smp_mflags} |
---|
54 | |
---|
55 | %install |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
58 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
59 | |
---|
60 | %post -p /sbin/ldconfig |
---|
61 | |
---|
62 | %postun -p /sbin/ldconfig |
---|
63 | |
---|
64 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
65 | |
---|
66 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
67 | |
---|
68 | %clean |
---|
69 | rm -rf $RPM_BUILD_ROOT |
---|
70 | |
---|
71 | |
---|
72 | %files |
---|
73 | %doc COPYING ChangeLog README |
---|
74 | %defattr(-,root,root,-) |
---|
75 | %{_libdir}/libxshmfence.so.1* |
---|
76 | |
---|
77 | %files devel |
---|
78 | %defattr(-,root,root,-) |
---|
79 | %{_includedir}/* |
---|
80 | %{_libdir}/pkgconfig/xshmfence.pc |
---|
81 | %{_libdir}/*.so |
---|
82 | |
---|
83 | # compat32 |
---|
84 | %if %{build_compat32} |
---|
85 | %files -n compat32-%{name} |
---|
86 | %defattr(-,root,root,-) |
---|
87 | %{_libdir}/libxshmfence.so.1* |
---|
88 | %endif |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Thu May 05 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-1 |
---|
92 | - update to 1.2 |
---|
93 | |
---|
94 | * Sat Nov 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1-3 |
---|
95 | - added Group tag to devel package |
---|
96 | - added %%clean section to spec file |
---|
97 | |
---|
98 | * Wed May 14 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2 |
---|
99 | - add compat32 subpackage for mesa |
---|
100 | |
---|
101 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-1 |
---|
102 | - initial build for Vine Linux |
---|
103 | |
---|
104 | |
---|
105 | * Thu Dec 12 2013 Adam Jackson <ajax@redhat.com> 1.1-1 |
---|
106 | - xshmfence 1.1 |
---|
107 | |
---|
108 | * Wed Nov 06 2013 Adam Jackson <ajax@redhat.com> 1.0-1 |
---|
109 | - Initial packaging |
---|
110 | |
---|