]> git.pld-linux.org Git - SPECS.git/blob - uavs3d.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / uavs3d.spec
1 Summary:        AVS3 decoder library
2 Summary(pl.UTF-8):      Biblioteka dekodera AVS3
3 Name:           uavs3d
4 Version:        1.1
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/uavs3/uavs3d/releases
9 Source0:        https://github.com/uavs3/uavs3d/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  a22d9d4f1da4d1e2d0b19a25754505c3
11 Patch0:         %{name}-x86.patch
12 URL:            https://github.com/uavs3/uavs3d
13 BuildRequires:  cmake >= 2.8
14 BuildRequires:  rpmbuild(macros) >= 1.605
15 BuildRequires:  sed >= 4.0
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 uavs3d is an opensource and cross-platform AVS3 decoder, supports
20 AVS3-P2 baseline profile.
21
22 %description -l pl.UTF-8
23 uavs3d to mający otwarte źródła, wieloplatformowy dekoder AVS3,
24 obsługujący profil AVS3-P2.
25
26 %package devel
27 Summary:        Header files for uavs3d library
28 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki uavs3d
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 Header files for uavs3d library.
34
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki uavs3d.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %{__sed} -i -e '/libdir/ s/"lib"/"%{_lib}"/' source/CMakeLists.txt
43
44 %build
45 install -d builddir
46 cd builddir
47 %cmake ..
48
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} -C builddir install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post   -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
62
63 %files
64 %defattr(644,root,root,755)
65 %doc COPYING README.md 
66 %attr(755,root,root) %{_libdir}/libuavs3d.so
67
68 %files devel
69 %defattr(644,root,root,755)
70 %{_includedir}/uavs3d.h
71 %{_pkgconfigdir}/uavs3d.pc
This page took 0.032703 seconds and 3 git commands to generate.