]>
Commit | Line | Data |
---|---|---|
9ca714af JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
5 | Summary: ARIB STD-B24 library | |
6 | Summary(pl.UTF-8): Biblioteka ARIB STD-B24 | |
7 | Name: aribb24 | |
8 | Version: 1.0.3 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/nkoriyama/aribb24/releases | |
13 | Source0: https://github.com/nkoriyama/aribb24/archive/v%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 5ef0a6d1d72f294666ee1489b7ebb8c5 | |
15 | Patch0: %{name}-pc.patch | |
16 | URL: https://github.com/nkoriyama/aribb24 | |
17 | BuildRequires: autoconf >= 2.69 | |
18 | BuildRequires: automake | |
19 | BuildRequires: libpng-devel | |
20 | BuildRequires: libtool >= 2:2 | |
21 | BuildRequires: pkgconfig | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | A library for ARIB STD-B24, decoding JIS 8-bit characters and parsing | |
26 | MPEG-TS stream. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Biblioteka ARIB STD-B24, służąca do dekodowania 8-bitowych znaków JIS | |
30 | oraz analizy strumieni MPEG-TS. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for ARIB STD-B24 library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ARIB STD-B24 | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: libpng-devel | |
38 | ||
39 | %description devel | |
40 | Header files for ARIB STD-B24 library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki ARIB STD-B24. | |
44 | ||
45 | %package static | |
46 | Summary: Static ARIB STD-B24 library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka ARIB STD-B24 | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static ARIB STD-B24 library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka ARIB STD-B24. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | ||
61 | %build | |
62 | %{__libtoolize} | |
63 | %{__aclocal} -I m4 | |
64 | %{__autoconf} | |
65 | %{__automake} | |
66 | %configure \ | |
67 | %{?with_static_libs:--enable-static} | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | # obsoleted by pkg-config | |
77 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaribb24.la | |
78 | # COPYING is just GPL text, the rest packaged as %doc | |
79 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/aribb24/{COPYING,README.md} | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc README.md | |
90 | %attr(755,root,root) %{_libdir}/libaribb24.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libaribb24.so.0 | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libaribb24.so | |
96 | %{_includedir}/aribb24 | |
97 | %{_pkgconfigdir}/aribb24.pc | |
98 | ||
99 | %if %{with static_libs} | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
102 | %{_libdir}/libaribb24.a | |
103 | %endif |