]> git.pld-linux.org Git - packages/libebml.git/blame - libebml.spec
- fix building with gcc 11, rel 3
[packages/libebml.git] / libebml.spec
CommitLineData
0bc28d66
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
8b795909 5Summary: Extensible Binary Meta Language access library
284ca2cc 6Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
8b795909 7Name: libebml
de57894c 8Version: 1.4.2
551d4f02 9Release: 3
8658b311 10License: LGPL v2.1+
8b795909 11Group: Libraries
499e890c 12Source0: https://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.xz
de57894c 13# Source0-md5: 194095f4315334fcedacb4900c59c014
551d4f02 14Patch0: gcc11.patch
f0808813 15URL: https://www.matroska.org/
0bc28d66 16BuildRequires: cmake >= 3.1.2
386b4522 17BuildRequires: libstdc++-devel >= 6:4.7
d76b557e 18BuildRequires: rpmbuild(macros) >= 1.605
0a11545e 19BuildRequires: tar >= 1:1.22
499e890c 20BuildRequires: xz
8b795909
JB
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
1e89c424
JB
24Extensible Binary Meta Language access library is a library for
25reading and writing files with the Extensible Binary Meta Language, a
26binary pendant to XML.
5a9874e6 27
c04fa4d7
JR
28%description -l pl.UTF-8
29Biblioteka rozszerzalnego metajęzyka binarnego (Extensible Binary Meta
30Language, w skrócie EBML) umożliwia czytanie i zapisywanie plików w
31tym metajęzyku, będącym binarnym uzupełnieniem XML-a.
8b795909
JB
32
33%package devel
1e89c424 34Summary: Header files for Extensible Binary Meta Language library
284ca2cc 35Summary(pl.UTF-8): Nagłówki biblioteki rozszerzalnego metajęzyka binarnego
8b795909 36Group: Development/Libraries
104baeb4 37Requires: %{name} = %{version}-%{release}
386b4522 38Requires: libstdc++-devel >= 6:4.7
8b795909
JB
39
40%description devel
1e89c424 41Header files for Extensible Binary Meta Language library.
8b795909 42
c04fa4d7
JR
43%description devel -l pl.UTF-8
44Nagłówki biblioteki rozszerzalnego metajęzyka binarnego.
8b795909
JB
45
46%package static
1e89c424 47Summary: Static version of Extensible Binary Meta Language library
284ca2cc 48Summary(pl.UTF-8): Statyczna wersja biblioteki rozszerzalnego metajęzyka binarnego
1e89c424 49Group: Development/Libraries
104baeb4 50Requires: %{name}-devel = %{version}-%{release}
8b795909
JB
51
52%description static
1e89c424 53Static version of Extensible Binary Meta Language library.
8b795909 54
c04fa4d7
JR
55%description static -l pl.UTF-8
56Statyczna wersja biblioteki rozszerzalnego metajęzyka binarnego.
8b795909
JB
57
58%prep
bdb94268 59%setup -q
551d4f02 60%patch0 -p1
8b795909
JB
61
62%build
0bc28d66
JB
63# .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
64%if %{with static_libs}
65install -d build-static
66cd build-static
67%cmake .. \
68 -DBUILD_SHARED_LIBS:BOOL=OFF \
69 -DCMAKE_INSTALL_INCLUDEDIR=include \
70 -DCMAKE_INSTALL_LIBDIR=%{_lib}
d76b557e 71
0bc28d66
JB
72%{__make}
73cd ..
74%endif
75
76install -d build
77cd build
78%cmake .. \
79 -DCMAKE_INSTALL_INCLUDEDIR=include \
80 -DCMAKE_INSTALL_LIBDIR=%{_lib}
899ab54b
JB
81
82%{__make}
8b795909
JB
83
84%install
85rm -rf $RPM_BUILD_ROOT
1e89c424 86
0bc28d66
JB
87%if %{with static_libs}
88%{__make} -C build-static install \
89 DESTDIR=$RPM_BUILD_ROOT
90%endif
91
92%{__make} -C build install \
899ab54b 93 DESTDIR=$RPM_BUILD_ROOT
8b795909
JB
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
5a9874e6 101%files
8b795909 102%defattr(644,root,root,755)
0bc28d66 103%doc ChangeLog README.md
1e89c424 104%attr(755,root,root) %{_libdir}/libebml.so.*.*.*
386b4522 105%attr(755,root,root) %ghost %{_libdir}/libebml.so.5
8b795909
JB
106
107%files devel
108%defattr(644,root,root,755)
1e89c424 109%attr(755,root,root) %{_libdir}/libebml.so
8b795909 110%{_includedir}/ebml
899ab54b 111%{_pkgconfigdir}/libebml.pc
aa2cebf6 112%{_libdir}/cmake/EBML
8b795909 113
0bc28d66 114%if %{with static_libs}
8b795909
JB
115%files static
116%defattr(644,root,root,755)
117%{_libdir}/libebml.a
0bc28d66 118%endif
This page took 0.094955 seconds and 4 git commands to generate.