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