f21905469bb7a0775d09c362d568dda327c39cdc
[platform/adaptation/nexell/nx-video-api.git] / packaging / nx-video-api.spec
1 Name:    nx-video-api
2 Version: 1.0.2
3 Release: 2
4 License: LGPLv2+
5 Summary: Nexell video APIs
6 Group: Development/Libraries
7 Source:  %{name}-%{version}.tar.gz
8
9 BuildRequires:  pkgconfig automake autoconf libtool
10 BuildRequires:  pkgconfig(libdrm)
11
12 Requires(post): /sbin/ldconfig
13 Requires(postun): /sbin/ldconfig
14
15 %description
16 Nexell video APIs
17
18 %package devel
19 Summary: Nexell video API development
20 Group: Development/Libraries
21 License: Apache 2.0
22 Requires: %{name} = %{version}-%{release}
23
24 %description devel
25 Nexell scaler (devel)
26
27 %prep
28 %setup -q
29
30 %build
31 export CFLAGS="-I/usr/include/libdrm"
32 autoreconf -v --install || exit 1
33 %configure
34 make %{?_smp_mflags}
35
36 %postun -p /sbin/ldconfig
37
38 %install
39 rm -rf %{buildroot}
40 make install DESTDIR=%{buildroot}
41
42 find %{buildroot} -type f -name "*.la" -delete
43
44 %files
45 %{_libdir}/libnx_video_api.so
46 %{_libdir}/libnx_video_api.so.*
47 %license LICENSE.LGPLv2+
48
49 %files devel
50 %{_includedir}/*
51 %license LICENSE.LGPLv2+