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