]>
Commit | Line | Data |
---|---|---|
b251c772 JB |
1 | Summary: Loyal to Spec of MPEG4, and Ad-hock Simple Hackwork library |
2 | Summary(pl.UTF-8): Biblioteka L-SMASH (Loyal to Spec of MPEG4, and Ad-hock Simple Hackwork) | |
3 | Name: l-smash | |
4 | Version: 2.3.0 | |
5 | Release: 1 | |
6 | License: ISC | |
7 | Group: Libraries | |
8 | Source0: https://github.com/l-smash/l-smash/archive/v%{version}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 72e68a32e6a671afebbfbbab3b5dd47c | |
10 | URL: http://l-smash.github.io/l-smash/ | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | Loyal to Spec of MPEG4, and Ad-hock Simple Hackwork library. | |
15 | ||
16 | %description -l pl.UTF-8 | |
17 | Biblioteka L-SMASH (Loyal to Spec of MPEG4, and Ad-hock Simple | |
18 | Hackwork). | |
19 | ||
20 | %package devel | |
21 | Summary: Header files for L-SMASH library | |
22 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki L-SMASH | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | Header files for L-SMASH library. | |
28 | ||
29 | %description devel -l pl.UTF-8 | |
30 | Pliki nagłówkowe biblioteki L-SMASH. | |
31 | ||
32 | %package static | |
33 | Summary: Static L-SMASH library | |
34 | Summary(pl.UTF-8): Statyczna biblioteka L-SMASH | |
35 | Group: Development/Libraries | |
36 | Requires: %{name}-devel = %{version}-%{release} | |
37 | ||
38 | %description static | |
39 | Static L-SMASH library. | |
40 | ||
41 | %description static -l pl.UTF-8 | |
42 | Statyczna biblioteka L-SMASH. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %build | |
48 | # not autoconf script | |
49 | ./configure \ | |
50 | --prefix=%{_prefix} \ | |
51 | --libdir=%{_libdir} \ | |
52 | --cc="%{__cc}" \ | |
53 | --extra-cflags="%{rpmcflags}" \ | |
54 | --extra-ldflags="%{rpmldflags}" \ | |
55 | --enable-shared | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc LICENSE | |
73 | %attr(755,root,root) %{_bindir}/boxdumper | |
74 | %attr(755,root,root) %{_bindir}/muxer | |
75 | %attr(755,root,root) %{_bindir}/remuxer | |
76 | %attr(755,root,root) %{_bindir}/timelineeditor | |
77 | %attr(755,root,root) %{_libdir}/liblsmash.so.2 | |
78 | ||
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %attr(755,root,root) %{_libdir}/liblsmash.so | |
82 | %{_includedir}/lsmash.h | |
83 | %{_pkgconfigdir}/liblsmash.pc | |
84 | ||
85 | %files static | |
86 | %defattr(644,root,root,755) | |
87 | %{_libdir}/liblsmash.a |