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