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