/[packages]/cauldron/libdrm/current/SPECS/libdrm.spec
ViewVC logotype

Annotation of /cauldron/libdrm/current/SPECS/libdrm.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 645431 - (hide annotations) (download)
Sun Jul 6 12:51:12 2014 UTC (9 years, 10 months ago) by ovitters
File size: 5986 byte(s)
- SILENT remove cleaning buildroot in install
- SILENT remove clean section
1 blino 35365 %define bootstrap 0
2 dmorgan 5564 %{?_without_bootstrap: %global bootstrap 0}
3     %{?_with_bootstrap: %global bootstrap 1}
4    
5 pterjan 5358 %define major 2
6     %define libname %mklibname drm %{major}
7     %define develname %mklibname drm -d
8     %define staticdevelname %mklibname drm -d -s
9    
10     %define kms_major 1
11     %define libkms %mklibname kms %{kms_major}
12     %define intel_major 1
13     %define libintel %mklibname drm_intel %{intel_major}
14 anssi 269295 %define nouveau_major 2
15 pterjan 5358 %define libnouveau %mklibname drm_nouveau %{nouveau_major}
16     %define radeon_major 1
17     %define libradeon %mklibname drm_radeon %{radeon_major}
18 rtp 298458 %define omap_major 1
19     %define libomap %mklibname drm_omap %{omap_major}
20     %define exynos_major 1
21     %define libexynos %mklibname drm_exynos %{exynos_major}
22 pterjan 5358
23     Summary: Userspace interface to kernel DRM services
24     Name: libdrm
25 tv 619795 Version: 2.4.54
26 tmb 624861 Release: %mkrel 5
27 pterjan 5358 Group: System/Libraries
28     License: MIT/X11
29     URL: http://xorg.freedesktop.org
30     Source0: http://dri.freedesktop.org/libdrm/libdrm-%{version}.tar.bz2
31 tmb 228047 Source1: 91-drm-modeset.rules
32 pterjan 5358
33 tmb 408313
34 pterjan 5358 # Do not try proc for backward Linux compatibility:
35 tmb 228047 Patch0101: 0101-RH-libdrm-2.4.0-no-bc-v1.3.patch
36 pterjan 5358
37 tmb 228047 Patch0500: 0500-improve-waiting-for-dri-device-to-appear-when-system.patch
38 pterjan 5358
39 tmb 228047 Patch1005: libdrm_mips_drm_cas.patch
40     Patch1006: libdrm_mips_sarea_max.patch
41 pterjan 5358
42 tmb 228055 BuildRequires: kernel-userspace-headers >= 3.3.1-1
43 pterjan 5358 BuildRequires: libpthread-stubs
44     BuildRequires: x11-util-macros >= 1.0.1
45 dmorgan 5564 %if !%bootstrap
46 tmb 406617 BuildRequires: udev-devel
47 dmorgan 5564 %endif
48 tmb 406617 BuildRequires: libpciaccess-devel
49     BuildRequires: cairo-devel
50     BuildRequires: xsltproc
51     BuildRequires: docbook-xsl
52 pterjan 5358
53     %description
54     Userspace interface to kernel DRM services
55    
56     %package common
57     Summary: Common files for the userspace interface to kernel DRM services
58     Group: System/Libraries
59    
60     %description common
61     Common files for the userspace interface to kernel DRM services
62    
63     %package -n %{libname}
64     Summary: Userspace interface to kernel DRM services
65     Group: System/Libraries
66     Provides: %{name} = %{version}
67     Requires: %{name}-common
68    
69     %description -n %{libname}
70     Userspace interface to kernel DRM services
71    
72     %package -n %{libkms}
73     Summary: Shared library for KMS
74     Group: System/Libraries
75    
76     %description -n %{libkms}
77     Shared library for kernel mode setting.
78    
79 rtp 298458 %ifarch %{ix86} x86_64
80 pterjan 5358 %package -n %{libintel}
81     Summary: Shared library for Intel kernel DRM services
82     Group: System/Libraries
83     Conflicts: %{_lib}drm2 < 2.4.5-2
84    
85     %description -n %{libintel}
86     Shared library for Intel kernel Direct Rendering Manager services.
87 rtp 298458 %endif
88 pterjan 5358
89     %package -n %{libnouveau}
90     Summary: Shared library for Nouveau kernel DRM services
91     Group: System/Libraries
92    
93     %description -n %{libnouveau}
94     Shared library for Nouveau kernel Direct Rendering Manager services.
95    
96     %package -n %{libradeon}
97     Summary: Shared library for Radeon kernel DRM services
98     Group: System/Libraries
99     Conflicts: %{_lib}drm2 < 2.4.5-2
100    
101     %description -n %{libradeon}
102     Shared library for Radeon kernel Direct Rendering Manager services.
103    
104 rtp 298458 %ifarch %arm
105     %package -n %{libomap}
106     Summary: Shared library for OMAP kernel DRM services
107     Group: System/Libraries
108     Conflicts: %{_lib}drm2 < 2.4.5-2
109    
110     %description -n %{libomap}
111     Shared library for OMAP kernel Direct Rendering Manager services.
112    
113     %package -n %{libexynos}
114     Summary: Shared library for Exynos kernel DRM services
115     Group: System/Libraries
116     Conflicts: %{_lib}drm2 < 2.4.5-2
117    
118     %description -n %{libexynos}
119     Shared library for EXYNOS kernel Direct Rendering Manager services.
120    
121     %endif
122 pterjan 5358 %package -n %{develname}
123     Summary: Development files for %{name}
124     Group: Development/X11
125     Requires: %{libname} = %{version}
126     Requires: %{libkms} = %{version}
127 rtp 298458 %ifarch %{ix86} x86_64
128 pterjan 5358 Requires: %{libintel} = %{version}
129 rtp 298458 %endif
130 pterjan 5358 Requires: %{libnouveau} = %{version}
131     Requires: %{libradeon} = %{version}
132 rtp 298458 %ifarch %arm
133     Requires: %{libomap} = %{version}
134     Requires: %{libexynos} = %{version}
135     %endif
136 pterjan 5358 Provides: %{name}-devel = %{version}-%{release}
137     Obsoletes: %{mklibname drm 2 -d}
138     Obsoletes: drm-nouveau-devel < 2.3.0-2.20090111.2
139    
140     %description -n %{develname}
141     Development files for %{name}
142    
143     %package -n %{staticdevelname}
144     Summary: Static development files for %{name}
145     Group: Development/X11
146     Requires: %{name}-devel >= %{version}
147     Requires: %{libname} = %{version}
148     Provides: %{name}-static-devel = %{version}-%{release}
149     Obsoletes: %{mklibname drm 2 -d -s}
150    
151     %description -n %{staticdevelname}
152     Static development files for %{name}
153    
154     %prep
155    
156     %setup -q
157     %apply_patches
158    
159     %build
160     # Needed for patch4
161     autoreconf -fv --install
162     %configure2_5x \
163     --enable-udev \
164 rtp 298458 %ifarch %arm
165     --enable-omap-experimental-api \
166     --enable-exynos-experimental-api \
167     %endif
168 anssi 269274 --enable-static
169 pterjan 5358
170 tmb 388971
171 pterjan 5358 %make
172    
173     %install
174     %makeinstall_std
175 tmb 380144 mkdir -p %{buildroot}%{_udevrulesdir}
176     install -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}
177 pterjan 5358
178     find %{buildroot} -type f -name '*.la' -exec rm -f {} \;
179    
180     # (cg) Note that RH remove drm.h drm_mode.h drm_sarea.h r300_reg.h via_3d_reg.h
181     # and we should perhaps do the same? (previous attempts have not gone well :)
182    
183     %files common
184 tmb 380144 %{_udevrulesdir}/91-drm-modeset.rules
185 pterjan 5358
186     %files -n %{libname}
187     %{_libdir}/libdrm.so.%{major}*
188    
189     %files -n %{libkms}
190     %{_libdir}/libkms.so.%{kms_major}*
191    
192 rtp 298458 %ifarch %{ix86} x86_64
193 pterjan 5358 %files -n %{libintel}
194     %{_libdir}/libdrm_intel.so.%{intel_major}*
195 rtp 298458 %endif
196 pterjan 5358
197     %files -n %{libnouveau}
198     %{_libdir}/libdrm_nouveau.so.%{nouveau_major}*
199    
200     %files -n %{libradeon}
201     %{_libdir}/libdrm_radeon.so.%{radeon_major}*
202    
203 rtp 298458 %ifarch %arm
204     %files -n %{libomap}
205     %{_libdir}/libdrm_omap.so.%{omap_major}*
206    
207     %files -n %{libexynos}
208     %{_libdir}/libdrm_exynos.so.%{exynos_major}*
209     %endif
210    
211 pterjan 5358 %files -n %{develname}
212     %{_includedir}/libdrm
213     %{_includedir}/libkms
214     %{_includedir}/*.h
215 rtp 298458 %ifarch %arm
216     %{_includedir}/omap/*.h
217     %{_includedir}/exynos/*.h
218     %endif
219 pterjan 5358 %{_libdir}/libdrm*.so
220     %{_libdir}/libkms.so
221     %{_libdir}/pkgconfig/libdrm*.pc
222     %{_libdir}/pkgconfig/libkms*.pc
223 tmb 406614 %_mandir/man3/drmAvailable.3.xz
224     %_mandir/man3/drmHandleEvent.3.xz
225     %_mandir/man3/drmModeGetResources.3.xz
226     %_mandir/man7/drm-gem.7.xz
227     %_mandir/man7/drm-kms.7.xz
228     %_mandir/man7/drm-memory.7.xz
229     %_mandir/man7/drm-mm.7.xz
230     %_mandir/man7/drm-ttm.7.xz
231     %_mandir/man7/drm.7.xz
232 pterjan 5358
233     %files -n %{staticdevelname}
234     %{_libdir}/*.a

  ViewVC Help
Powered by ViewVC 1.1.30