]>
Commit | Line | Data |
---|---|---|
fe9654e8 JB |
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 | |
283760a9 | 8 | Version: 0.2.7 |
fe9654e8 | 9 | Release: 1 |
283760a9 | 10 | License: ISC |
fe9654e8 JB |
11 | Group: Libraries |
12 | Source0: http://download.videolan.org/pub/videolan/aribb25/%{version}/%{name}-%{version}.tar.gz | |
283760a9 | 13 | # Source0-md5: a63e6c81210903c3d202082ddcf10176 |
fe9654e8 JB |
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 | |
283760a9 | 76 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/aribb25/{LICENCE,README.md,README.jp.txt} |
fe9654e8 JB |
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) | |
283760a9 JB |
86 | %doc LICENCE README.md |
87 | %lang(ja) %doc README.jp.txt | |
fe9654e8 JB |
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 |