add packaging
[platform/upstream/libXxf86vm.git] / packaging / libXxf86vm.spec
1 Name:           libXxf86vm
2 Version:        1.1.2
3 Release:        1
4 License:        MIT
5 Summary:        X
6 Url:            http://www.x.org
7 Group:          System Environment/Libraries
8 Source:         %{name}-%{version}.tar.bz2
9
10 BuildRequires:  pkgconfig(xext)
11 BuildRequires:  pkgconfig(xf86vidmodeproto)
12 BuildRequires:  pkgconfig(xorg-macros)
13
14 %description
15 X.Org X11 libXxf86vm runtime library
16
17 %package devel
18 Summary:        X
19 Group:          Development/Libraries
20 Requires:       %{name} = %{version}
21 Provides:       libxxf86vm-devel
22
23 %description devel
24 X.Org X11 libXxf86vm development package
25
26 %prep
27 %setup -q
28
29 %build
30 %reconfigure --disable-static \
31                LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
32 make %{?_smp_mflags}
33
34 %install
35 make install DESTDIR=%{buildroot} INSTALL="install -p"
36 find %{buildroot} -name '*.la' -exec rm -f {} ';'
37
38 %remove_docs
39
40 %post -p /sbin/ldconfig
41 %postun -p /sbin/ldconfig
42
43 %files
44 %defattr(-,root,root,-)
45 %doc README COPYING ChangeLog
46 %{_libdir}/libXxf86vm.so.1
47 %{_libdir}/libXxf86vm.so.1.0.0
48
49 %files devel
50 %defattr(-,root,root,-)
51 %{_libdir}/libXxf86vm.so
52 %{_libdir}/pkgconfig/xxf86vm.pc
53 #%{_mandir}/man3/*.3*
54 %{_includedir}/X11/extensions/xf86vmode.h