]>
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: libebml | |
4 | Version: 1.2.2 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: http://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 726cc2bd1a525929ff35ff9854c0ebab | |
10 | Patch0: %{name}-makefile.patch | |
11 | URL: http://www.matroska.org/ | |
12 | BuildRequires: libstdc++-devel | |
13 | BuildRequires: libtool | |
14 | BuildRequires: rpmbuild(macros) >= 1.553 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Extensible Binary Meta Language access library is a library for | |
19 | reading and writing files with the Extensible Binary Meta Language, a | |
20 | binary pendant to XML. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Biblioteka rozszerzalnego metajęzyka binarnego (Extensible Binary Meta | |
24 | Language, w skrócie EBML) umożliwia czytanie i zapisywanie plików w | |
25 | tym metajęzyku, będącym binarnym uzupełnieniem XML-a. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for Extensible Binary Meta Language library | |
29 | Summary(pl.UTF-8): Nagłówki biblioteki rozszerzalnego metajęzyka binarnego | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: libstdc++-devel | |
33 | ||
34 | %description devel | |
35 | Header files for Extensible Binary Meta Language library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Nagłówki biblioteki rozszerzalnego metajęzyka binarnego. | |
39 | ||
40 | %package static | |
41 | Summary: Static version of Extensible Binary Meta Language library | |
42 | Summary(pl.UTF-8): Statyczna wersja biblioteki rozszerzalnego metajęzyka binarnego | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static version of Extensible Binary Meta Language library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna wersja biblioteki rozszerzalnego metajęzyka binarnego. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | %undos make/linux/Makefile | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | %{__make} -C make/linux \ | |
59 | prefix=%{_prefix} \ | |
60 | libdir=%{_libdir} \ | |
61 | CXX="%{__cxx}" \ | |
62 | CXXFLAGS="%{rpmcxxflags}" \ | |
63 | LD="%{__cxx}" \ | |
64 | LDFLAGS="%{rpmldflags}"\ | |
65 | DEBUGFLAGS="%{rpmcflags} %{?debug:-DDEBUG}" | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} -C make/linux install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT \ | |
72 | prefix=%{_prefix} \ | |
73 | libdir=%{_libdir} | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc ChangeLog | |
84 | %attr(755,root,root) %{_libdir}/libebml.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libebml.so.3 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libebml.so | |
90 | %{_libdir}/libebml.la | |
91 | %{_includedir}/ebml | |
92 | ||
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | %{_libdir}/libebml.a |