]> git.pld-linux.org Git - packages/mfx_dispatch.git/blob - mfx_dispatch.spec
- up to 1.25
[packages/mfx_dispatch.git] / mfx_dispatch.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Intel Media SDK dispatcher library
6 Summary(pl.UTF-8):      Biblioteka dispatchera z Intel Media SDK
7 Name:           mfx_dispatch
8 Version:        1.25
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: https://github.com/lu-zero/mfx_dispatch/releases
13 Source0:        https://github.com/lu-zero/mfx_dispatch/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  bf743b4b9adbe55bd7154274eddb6af6
15 URL:            https://github.com/lu-zero/mfx_dispatch
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool >= 2:2
20 BuildRequires:  libva-drm-devel
21 BuildRequires:  libva-x11-devel
22 BuildRequires:  pkgconfig
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Intel Media SDK dispatcher library.
27
28 %description -l pl.UTF-8
29 Biblioteka dispatchera z Intel Media SDK.
30
31 %package devel
32 Summary:        Header files for MFX library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki MFX
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       libstdc++-devel
37 Requires:       libva-drm-devel
38 Requires:       libva-x11-devel
39
40 %description devel
41 Header files for MFX library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki MFX.
45
46 %package static
47 Summary:        Static MFX library
48 Summary(pl.UTF-8):      Statyczna biblioteka MFX
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static MFX library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka MFX.
57
58 %prep
59 %setup -q
60
61 %build
62 %{__libtoolize}
63 %{__aclocal} -I m4
64 %{__autoconf}
65 %{__automake}
66 %configure \
67         --enable-shared \
68         %{!?with_static_libs:--disable-static}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 # obsoleted by pkg-config
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmfx.la
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc README.md
89 %attr(755,root,root) %{_libdir}/libmfx.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/libmfx.so.1
91
92 %files devel
93 %defattr(644,root,root,755)
94 %doc readme-dispatcher.rtf
95 %attr(755,root,root) %{_libdir}/libmfx.so
96 %{_includedir}/mfx
97 %{_pkgconfigdir}/libmfx.pc
98
99 %if %{with static_libs}
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/libmfx.a
103 %endif
This page took 0.066533 seconds and 3 git commands to generate.