]>
Commit | Line | Data |
---|---|---|
24dc770c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: BD+ support library for Blu-ray playback | |
6 | Summary(pl.UTF-8): Biblioteka obsługująca BD+ w celu odtwarzania płyt Blu-ray | |
7 | Name: libbdplus | |
dae1e78a | 8 | Version: 0.2.0 |
24dc770c JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
dae1e78a JB |
12 | Source0: https://download.videolan.org/videolan/libbdplus/%{version}/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 7ae45244ba48790c2534df6ffad0c4bb | |
24dc770c JB |
14 | URL: http://www.videolan.org/developers/libbdplus.html |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake | |
17 | BuildRequires: libaacs-devel >= 0.7.0 | |
18 | BuildRequires: libgcrypt-devel | |
19 | BuildRequires: libgpg-error-devel | |
20 | BuildRequires: libtool | |
21 | BuildRequires: pkgconfig | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libbdplus is a research project to implement the BD+ System | |
26 | Specifications. This research project provides, through an open-source | |
27 | library, a way to understand how the BD+ works. | |
28 | ||
29 | %description -l pl | |
30 | libbdplus to projekt badawczy mający na celu implementację | |
31 | specyfikacji systemu BD. Projekt ten, poprzez bibliotekę o otwartych | |
32 | źródłach, pozwala zrozumieć, jak działa BD+. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for libbdplus library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbdplus | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for libbdplus library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki libbdplus. | |
45 | ||
46 | %package static | |
47 | Summary: Static libbdplus library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka libbdplus | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static libbdplus library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka libbdplus. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | %{__libtoolize} | |
63 | %{__aclocal} -I m4 | |
64 | %{__autoconf} | |
65 | %{__autoheader} | |
66 | %{__automake} | |
67 | %configure \ | |
68 | %{!?with_static_libs:--disable-static} | |
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | # obsoleted by pkg-config | |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
dae1e78a | 88 | %doc ChangeLog README.md |
24dc770c JB |
89 | %attr(755,root,root) %{_libdir}/libbdplus.so.*.*.* |
90 | %attr(755,root,root) %ghost %{_libdir}/libbdplus.so.0 | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/libbdplus.so | |
95 | %{_includedir}/libbdplus | |
96 | %{_pkgconfigdir}/libbdplus.pc | |
97 | ||
98 | %if %{with static_libs} | |
99 | %files static | |
100 | %defattr(644,root,root,755) | |
101 | %{_libdir}/libbdplus.a | |
102 | %endif |