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