]> git.pld-linux.org Git - packages/bcmatroska2.git/blob - bcmatroska2.spec
72af199df66279b8c770e1621a76a66fdf5c7e42
[packages/bcmatroska2.git] / bcmatroska2.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Matroska2 library for Belledonne Communications projects
6 Summary(pl.UTF-8):      Biblioteka Matroska2 do projektów Belledonne Communications
7 Name:           bcmatroska2
8 Version:        0.23
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 Source0:        https://linphone.org/releases/sources/bcmatroska2/%{name}-%{version}.tar.gz
13 # Source0-md5:  bc9d6dbdfb9790c10051294cc4293476
14 URL:            https://linphone.org/
15 BuildRequires:  cmake >= 3.0
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Matroska2 library for Belledonne Communications projects.
20
21 %description -l pl.UTF-8
22 Biblioteka Matroska2 do projektów Belledonne Communications.
23
24 %package devel
25 Summary:        Header files for bcmatroska2 library
26 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki bcmatroska2
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29 Obsoletes:      matroska-foundation-devel
30
31 %description devel
32 Header files for bcmatroska2 library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki bcmatroska2.
36
37 %package static
38 Summary:        Static bcmatroska2 library
39 Summary(pl.UTF-8):      Statyczna biblioteka bcmatroska2
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static bcmatroska2 library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka bcmatroska2.
48
49 %prep
50 %setup -q
51
52 %build
53 install -d build
54 cd build
55 %cmake .. \
56         %{!?with_static_libs:-DENABLE_STATIC=OFF}
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} -C build install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_libdir}/libbcmatroska2.so.*.*.*
75 %attr(755,root,root) %ghost %{_libdir}/libbcmatroska2.so.0
76
77 %files devel
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_libdir}/libbcmatroska2.so
80 %{_includedir}/corec
81 %{_includedir}/ebml
82 %{_includedir}/matroska
83 %dir %{_datadir}/bcmatroska2
84 %{_datadir}/bcmatroska2/cmake
85
86 %if %{with static_libs}
87 %files static
88 %defattr(644,root,root,755)
89 %{_libdir}/libbcmatroska2.a
90 %endif
This page took 0.038859 seconds and 2 git commands to generate.