Update tizen 2.0 beta source
[external/liboil.git] / packaging / liboil.spec
1 Name:       liboil
2 Summary:    Library of Optimized Inner Loops, CPU optimized functions
3 Version:    0.3.17
4 Release:    2.13
5 Group:      System/Libraries
6 License:    BSD and Motorola License
7 URL:        http://liboil.freedesktop.org/
8 Source0:    http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz
9 Patch0:     0001-add-armv7l-to-as-host-defines-m4.patch
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig(glib-2.0)
13
14
15 %description
16 Liboil is a library of simple functions that are optimized for various CPUs.
17 These functions are generally loops implementing simple algorithms, such as
18 converting an array of N integers to floating-poing numbers or multiplying
19 and summing an array of N numbers. Clearly such functions are candidates for
20 significant optimization using various techniques, especially by using
21 extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
22
23
24
25 %package devel
26 Summary:    Development files and static library for liboil
27 Group:      Development/Libraries
28 Requires:   %{name} = %{version}-%{release}
29
30 %description devel
31 Liboil is a library of simple functions that are optimized for various CPUs.
32 These functions are generally loops implementing simple algorithms, such as
33 converting an array of N integers to floating-poing numbers or multiplying
34 and summing an array of N numbers. Clearly such functions are candidates for
35 significant optimization using various techniques, especially by using
36 extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
37
38
39
40 %prep
41 %setup -q -n %{name}-%{version}
42
43 # 0001-add-armv7l-to-as-host-defines-m4.patch
44 %patch0 -p1
45
46 %build
47
48 %configure --disable-static
49 make %{?jobs:-j%jobs}
50
51 %install
52 rm -rf %{buildroot}
53 %make_install
54 rm -rf $RPM_BUILD_ROOT/usr/bin/oil-bugreport
55 rm -rf $RPM_BUILD_ROOT/usr/share/gtk-doc
56
57 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
59
60 %files
61 %{_libdir}/*.so.*
62
63 %files devel
64 %{_includedir}/*
65 %{_libdir}/*.so
66 %{_libdir}/pkgconfig/*.pc
67