]> git.pld-linux.org Git - packages/libmatroska.git/blob - libmatroska.spec
c40a703377cad20ef609c12128d411c6fcc47958
[packages/libmatroska.git] / libmatroska.spec
1 Summary:        Extensible Binary Meta Language access library
2 Summary(pl.UTF-8):      Biblioteka dostępu rozszerzalnego metajęzyka binarnego
3 Name:           libmatroska
4 Version:        1.0.0
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.bz2
9 # Source0-md5:  4efcf3945b17a6f0320cf1aaa326a4de
10 Patch0:         %{name}-makefile.patch
11 URL:            http://www.matroska.org/
12 BuildRequires:  libebml-devel >= 1.0.0
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  libtool
15 BuildRequires:  rpmbuild(macros) >= 1.566
16 BuildRequires:  sed >= 4.0
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Matroska is an extensible open standard Audio/Video container format,
21 aiming to become the standard of Multimedia Container Formats one day.
22 It is based on EBML (Extensible Binary Meta Language), a kind of
23 binary version of XML. This way the significant advantages in terms of
24 future format extensibility are gained without breaking file support
25 in old parsers.
26
27 %description -l pl.UTF-8
28 Matroska to rozszerzalny otwarty format kodowania dźwięku i obrazu,
29 dążący do stania się pewnego dnia standardem formatów zawierających
30 multimedia. Jest on oparty na EBML (rozszerzalnym metajęzyku
31 binarnym), binarnym odpowiedniku XML-a. W ten sposób ma on przewagę
32 nad innymi formatami pod względem przyszłej rozszerzalności przy
33 jednoczesnym zachowaniu kompatybilności wstecz.
34
35 %package devel
36 Summary:        Header files for matroska library
37 Summary(pl.UTF-8):      Nagłówki dla biblioteki matroska
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       libebml-devel
41 Requires:       libstdc++-devel
42
43 %description devel
44 Header files for matroska library.
45
46 %description devel -l pl.UTF-8
47 Nagłówki dla biblioteki matroska.
48
49 %package static
50 Summary:        Static version of matroska library
51 Summary(pl.UTF-8):      Statyczna wersja biblioteki matroska
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static version of matroska library.
57
58 %description static -l pl.UTF-8
59 Statyczna wersja biblioteki matroska.
60
61 %prep
62 %setup -q
63 %undos make/linux/Makefile
64 %patch0 -p1
65
66 %build
67 %{__make} -C make/linux \
68         prefix=%{_prefix} \
69         libdir=%{_libdir} \
70         CXX="%{__cxx}" \
71         LD="%{__cxx}" \
72         DEBUGFLAGS="%{rpmcflags} %{?debug:-DDEBUG}" \
73         LDFLAGS="%{rpmldflags}" \
74         LIBEBML_INCLUDE_DIR="%{_includedir}/ebml"
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} -C make/linux install \
80         prefix=$RPM_BUILD_ROOT%{_prefix} \
81         libdir=$RPM_BUILD_ROOT%{_libdir}
82
83 # prepare docs (with working hyperlinks)
84 #install -d doc
85 #cp --parents src/api/index.html src/api/c/index.html doc
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc ChangeLog
96 %attr(755,root,root) %{_libdir}/libmatroska.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libmatroska.so.2
98
99 %files devel
100 %defattr(644,root,root,755)
101 ##%doc doc/src/api/*
102 %attr(755,root,root) %{_libdir}/libmatroska.so
103 %{_libdir}/libmatroska.la
104 %{_includedir}/matroska
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libmatroska.a
This page took 0.076259 seconds and 2 git commands to generate.