]> git.pld-linux.org Git - SPECS.git/blob - aribb25.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / aribb25.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        ARIB B25 library
6 Summary(pl.UTF-8):      Biblioteka ARIB B25
7 Name:           aribb25
8 Version:        0.2.7
9 Release:        1
10 License:        ISC
11 Group:          Libraries
12 Source0:        https://download.videolan.org/videolan/aribb25/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  a63e6c81210903c3d202082ddcf10176
14 Patch0:         %{name}-link.patch
15 URL:            http://www.marumo.ne.jp/
16 BuildRequires:  autoconf >= 2.69
17 BuildRequires:  automake
18 BuildRequires:  libtool >= 2:2
19 BuildRequires:  pcsc-lite-devel
20 BuildRequires:  pkgconfig
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 ARIB B25 library.
25
26 %description -l pl.UTF-8
27 Biblioteka ARIB B25.
28
29 %package devel
30 Summary:        Header files for ARIB B25 library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ARIB B25
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       pcsc-lite-devel
35
36 %description devel
37 Header files for ARIB B25 library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki ARIB B25.
41
42 %package static
43 Summary:        Static ARIB B25 library
44 Summary(pl.UTF-8):      Statyczna biblioteka ARIB B25
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static ARIB B25 library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka ARIB B25.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57
58 %build
59 %{__libtoolize}
60 %{__aclocal} -I m4
61 %{__autoconf}
62 %{__automake}
63 %configure \
64         %{?with_static_libs:--enable-static}
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 # obsoleted by pkg-config
74 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaribb25.la
75 # packaged as %doc
76 %{__rm} $RPM_BUILD_ROOT%{_docdir}/aribb25/{LICENCE,README.md,README.jp.txt}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc LICENCE README.md
87 %lang(ja) %doc README.jp.txt
88 %attr(755,root,root) %{_libdir}/libaribb25.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libaribb25.so.0
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libaribb25.so
94 %{_includedir}/aribb25
95 %{_pkgconfigdir}/aribb25.pc
96
97 %if %{with static_libs}
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libaribb25.a
101 %endif
This page took 1.271606 seconds and 3 git commands to generate.