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