]> git.pld-linux.org Git - packages/aribb24.git/blame - aribb24.spec
- new
[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
16URL: https://github.com/nkoriyama/aribb24
17BuildRequires: autoconf >= 2.69
18BuildRequires: automake
19BuildRequires: libpng-devel
20BuildRequires: libtool >= 2:2
21BuildRequires: pkgconfig
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25A library for ARIB STD-B24, decoding JIS 8-bit characters and parsing
26MPEG-TS stream.
27
28%description -l pl.UTF-8
29Biblioteka ARIB STD-B24, służąca do dekodowania 8-bitowych znaków JIS
30oraz analizy strumieni MPEG-TS.
31
32%package devel
33Summary: Header files for ARIB STD-B24 library
34Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ARIB STD-B24
35Group: Development/Libraries
36Requires: %{name} = %{version}-%{release}
37Requires: libpng-devel
38
39%description devel
40Header files for ARIB STD-B24 library.
41
42%description devel -l pl.UTF-8
43Pliki nagłówkowe biblioteki ARIB STD-B24.
44
45%package static
46Summary: Static ARIB STD-B24 library
47Summary(pl.UTF-8): Statyczna biblioteka ARIB STD-B24
48Group: Development/Libraries
49Requires: %{name}-devel = %{version}-%{release}
50
51%description static
52Static ARIB STD-B24 library.
53
54%description static -l pl.UTF-8
55Statyczna 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
71rm -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
82rm -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
This page took 0.110041 seconds and 4 git commands to generate.