]> git.pld-linux.org Git - packages/libbdplus.git/blob - libbdplus.spec
b38ee38cc73e163d0f9301c215823f774e654ef0
[packages/libbdplus.git] / libbdplus.spec
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
8 Version:        0.1.2
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://download.videolan.org/videolan/libbdplus/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  f1ad1c67943d81e1e2e3ab1c1a8f3ebb
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)
88 %doc ChangeLog README.txt
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
This page took 0.109127 seconds and 2 git commands to generate.