]>
Commit | Line | Data |
---|---|---|
eb417e36 | 1 | Summary: Extensible Binary Meta Language access library |
c898b1eb | 2 | Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego |
eb417e36 | 3 | Name: libmatroska |
88b07041 | 4 | Version: 1.0.0 |
6f47b996 | 5 | Release: 1 |
58ee65c3 | 6 | License: LGPL v2.1+ |
eb417e36 | 7 | Group: Libraries |
58ee65c3 | 8 | Source0: http://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.bz2 |
88b07041 | 9 | # Source0-md5: 4efcf3945b17a6f0320cf1aaa326a4de |
eb417e36 | 10 | Patch0: %{name}-makefile.patch |
b57b5cf5 | 11 | URL: http://www.matroska.org/ |
88b07041 | 12 | BuildRequires: libebml-devel >= 1.0.0 |
b57b5cf5 JB |
13 | BuildRequires: libstdc++-devel |
14 | BuildRequires: libtool | |
88b07041 ER |
15 | BuildRequires: rpmbuild(macros) >= 1.566 |
16 | BuildRequires: sed >= 4.0 | |
eb417e36 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
b57b5cf5 JB |
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. | |
ac28d4e4 | 26 | |
6ab1e4ef JR |
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. | |
eb417e36 | 34 | |
35 | %package devel | |
b57b5cf5 | 36 | Summary: Header files for matroska library |
c898b1eb | 37 | Summary(pl.UTF-8): Nagłówki dla biblioteki matroska |
eb417e36 | 38 | Group: Development/Libraries |
0f5a8090 | 39 | Requires: %{name} = %{version}-%{release} |
88b07041 | 40 | Requires: libebml-devel |
b57b5cf5 | 41 | Requires: libstdc++-devel |
eb417e36 | 42 | |
43 | %description devel | |
b57b5cf5 | 44 | Header files for matroska library. |
eb417e36 | 45 | |
6ab1e4ef JR |
46 | %description devel -l pl.UTF-8 |
47 | Nagłówki dla biblioteki matroska. | |
eb417e36 | 48 | |
49 | %package static | |
b57b5cf5 | 50 | Summary: Static version of matroska library |
c898b1eb | 51 | Summary(pl.UTF-8): Statyczna wersja biblioteki matroska |
b57b5cf5 | 52 | Group: Development/Libraries |
0f5a8090 | 53 | Requires: %{name}-devel = %{version}-%{release} |
eb417e36 | 54 | |
55 | %description static | |
b57b5cf5 | 56 | Static version of matroska library. |
eb417e36 | 57 | |
6ab1e4ef | 58 | %description static -l pl.UTF-8 |
b57b5cf5 | 59 | Statyczna wersja biblioteki matroska. |
eb417e36 | 60 | |
61 | %prep | |
47663573 | 62 | %setup -q |
88b07041 | 63 | %undos make/linux/Makefile |
47663573 | 64 | %patch0 -p1 |
eb417e36 | 65 | |
66 | %build | |
b57b5cf5 | 67 | %{__make} -C make/linux \ |
ac28d4e4 | 68 | prefix=%{_prefix} \ |
987a15a0 | 69 | libdir=%{_libdir} \ |
b57b5cf5 JB |
70 | CXX="%{__cxx}" \ |
71 | LD="%{__cxx}" \ | |
72 | DEBUGFLAGS="%{rpmcflags} %{?debug:-DDEBUG}" \ | |
73 | LDFLAGS="%{rpmldflags}" \ | |
74 | LIBEBML_INCLUDE_DIR="%{_includedir}/ebml" | |
eb417e36 | 75 | |
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
b57b5cf5 JB |
78 | |
79 | %{__make} -C make/linux install \ | |
987a15a0 | 80 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
81 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
b57b5cf5 JB |
82 | |
83 | # prepare docs (with working hyperlinks) | |
8eca8dd4 | 84 | #install -d doc |
85 | #cp --parents src/api/index.html src/api/c/index.html doc | |
eb417e36 | 86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
ac28d4e4 JB |
90 | %post -p /sbin/ldconfig |
91 | %postun -p /sbin/ldconfig | |
eb417e36 | 92 | |
deff1af3 | 93 | %files |
eb417e36 | 94 | %defattr(644,root,root,755) |
02c86e25 | 95 | %doc ChangeLog |
b57b5cf5 | 96 | %attr(755,root,root) %{_libdir}/libmatroska.so.*.*.* |
88b07041 | 97 | %attr(755,root,root) %ghost %{_libdir}/libmatroska.so.2 |
eb417e36 | 98 | |
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
8eca8dd4 | 101 | ##%doc doc/src/api/* |
b57b5cf5 JB |
102 | %attr(755,root,root) %{_libdir}/libmatroska.so |
103 | %{_libdir}/libmatroska.la | |
ac28d4e4 | 104 | %{_includedir}/matroska |
eb417e36 | 105 | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libmatroska.a |