1 |
%define major 1 |
2 |
%define libname %mklibname xdamage %{major} |
3 |
%define develname %mklibname xdamage -d |
4 |
%define staticdevelname %mklibname xdamage -d -s |
5 |
|
6 |
Name: libxdamage |
7 |
Summary: X Damage Library |
8 |
Version: 1.1.3 |
9 |
Release: %mkrel 1 |
10 |
Group: Development/X11 |
11 |
License: MIT |
12 |
URL: http://xorg.freedesktop.org |
13 |
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXdamage-%{version}.tar.bz2 |
14 |
|
15 |
BuildRequires: libx11-devel >= 1.0.0 |
16 |
BuildRequires: libxfixes-devel >= 3.0.1.2 |
17 |
BuildRequires: x11-proto-devel >= 1.2.0 |
18 |
BuildRequires: x11-util-macros >= 1.0.1 |
19 |
|
20 |
BuildRoot: %{_tmppath}/%{name}-root |
21 |
|
22 |
%description |
23 |
X Damage Library. |
24 |
|
25 |
#----------------------------------------------------------- |
26 |
|
27 |
%package -n %{libname} |
28 |
Summary: X Damage Library |
29 |
Group: Development/X11 |
30 |
Conflicts: libxorg-x11 < 7.0 |
31 |
Provides: %{name} = %{version} |
32 |
|
33 |
%description -n %{libname} |
34 |
X Damage Library. |
35 |
|
36 |
%files -n %{libname} |
37 |
%defattr(-,root,root) |
38 |
%{_libdir}/libXdamage.so.%{major}* |
39 |
|
40 |
#----------------------------------------------------------- |
41 |
|
42 |
%package -n %{develname} |
43 |
Summary: Development files for %{name} |
44 |
Group: Development/X11 |
45 |
Requires: %{libname} = %{version} |
46 |
Requires: libxfixes-devel >= 3.0.1.2 |
47 |
Requires: x11-proto-devel >= 1.0.0 |
48 |
Provides: %{name}-devel = %{version}-%{release} |
49 |
|
50 |
Conflicts: libxorg-x11-devel < 7.0 |
51 |
Obsoletes: %mklibname xdamage 1 -d |
52 |
|
53 |
%description -n %{develname} |
54 |
Development files for %{name} |
55 |
|
56 |
%pre -n %{develname} |
57 |
if [ -h %{_includedir}/X11 ]; then |
58 |
rm -f %{_includedir}/X11 |
59 |
fi |
60 |
|
61 |
%files -n %{develname} |
62 |
%defattr(-,root,root) |
63 |
%{_libdir}/libXdamage.so |
64 |
%{_libdir}/libXdamage.la |
65 |
%{_libdir}/pkgconfig/xdamage.pc |
66 |
%{_includedir}/X11/extensions/Xdamage.h |
67 |
|
68 |
#----------------------------------------------------------- |
69 |
|
70 |
%package -n %{staticdevelname} |
71 |
Summary: Static development files for %{name} |
72 |
Group: Development/X11 |
73 |
Requires: %{develname} = %{version} |
74 |
Provides: %{name}-static-devel = %{version}-%{release} |
75 |
|
76 |
Conflicts: libxorg-x11-static-devel < 7.0 |
77 |
Obsoletes: %mklibname xdamage 1 -d -s |
78 |
|
79 |
%description -n %{staticdevelname} |
80 |
Static development files for %{name}. |
81 |
|
82 |
%files -n %{staticdevelname} |
83 |
%defattr(-,root,root) |
84 |
%{_libdir}/libXdamage.a |
85 |
|
86 |
#----------------------------------------------------------- |
87 |
|
88 |
%prep |
89 |
%setup -q -n libXdamage-%{version} |
90 |
|
91 |
%build |
92 |
%configure2_5x --x-includes=%{_includedir}\ |
93 |
--x-libraries=%{_libdir} |
94 |
|
95 |
%make |
96 |
|
97 |
%install |
98 |
rm -rf %{buildroot} |
99 |
%makeinstall_std |
100 |
|
101 |
%clean |
102 |
rm -rf %{buildroot} |
103 |
|