3 %bcond_without static_libs # static library
5 Summary: ARIB STD-B24 library
6 Summary(pl.UTF-8): Biblioteka ARIB STD-B24
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 Patch1: link-libm.patch
17 URL: https://github.com/nkoriyama/aribb24
18 BuildRequires: autoconf >= 2.69
19 BuildRequires: automake
20 BuildRequires: libpng-devel
21 BuildRequires: libtool >= 2:2
22 BuildRequires: pkgconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A library for ARIB STD-B24, decoding JIS 8-bit characters and parsing
29 %description -l pl.UTF-8
30 Biblioteka ARIB STD-B24, służąca do dekodowania 8-bitowych znaków JIS
31 oraz analizy strumieni MPEG-TS.
34 Summary: Header files for ARIB STD-B24 library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ARIB STD-B24
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
38 Requires: libpng-devel
41 Header files for ARIB STD-B24 library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki ARIB STD-B24.
47 Summary: Static ARIB STD-B24 library
48 Summary(pl.UTF-8): Statyczna biblioteka ARIB STD-B24
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 Static ARIB STD-B24 library.
55 %description static -l pl.UTF-8
56 Statyczna biblioteka ARIB STD-B24.
69 %{?with_static_libs:--enable-static}
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaribb24.la
80 # COPYING is just GPL text, the rest packaged as %doc
81 %{__rm} $RPM_BUILD_ROOT%{_docdir}/aribb24/{COPYING,README.md}
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libaribb24.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libaribb24.so.0
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libaribb24.so
98 %{_includedir}/aribb24
99 %{_pkgconfigdir}/aribb24.pc
101 %if %{with static_libs}
103 %defattr(644,root,root,755)
104 %{_libdir}/libaribb24.a