5e1755902216d7ac662a027d76e38db1f8645a12
[platform/upstream/libXdamage.git] / packaging / libXdamage.spec
1 Name:           libXdamage
2 Version:        1.1.3
3 Release:        3
4 License:        MIT
5 Summary:        X Damage extension library
6 Url:            http://www.x.org
7 Group:          System Environment/Libraries
8
9 Source:         %{name}-%{version}.tar.bz2
10
11 BuildRequires:  pkgconfig(damageproto) >= 1.1.0
12 BuildRequires:  pkgconfig(xextproto)
13 BuildRequires:  pkgconfig(xfixes)
14 BuildRequires:  pkgconfig(xorg-macros)
15
16 %description
17 X.Org X11 libXdamage runtime library.
18
19 %package devel
20 Summary:        Development files for %{name}
21 Group:          Development/Libraries
22 Requires:       %{name} = %{version}
23
24 %description devel
25 X.Org X11 libXdamage development package.
26
27 %prep
28 %setup -q
29
30 %build
31 %configure --disable-static \
32            LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
33 make %{?_smp_mflags}
34
35 %install
36 %make_install
37 %remove_docs
38
39 %post -p /sbin/ldconfig
40 %postun -p /sbin/ldconfig
41
42 %files
43 %defattr(-,root,root,-)
44 %doc COPYING
45 %{_libdir}/libXdamage.so.1
46 %{_libdir}/libXdamage.so.1.1.0
47
48 %files devel
49 %defattr(-,root,root,-)
50 %{_includedir}/X11/extensions/Xdamage.h
51 %{_libdir}/libXdamage.so
52 %{_libdir}/pkgconfig/xdamage.pc