]> git.pld-linux.org Git - SPECS.git/blob - libaacs.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / libaacs.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        AACS support library for Blu-ray playback
6 Summary(pl.UTF-8):      Biblioteka obsługi AACS do odtwarzania Blu-ray
7 Name:           libaacs
8 Version:        0.11.1
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://download.videolan.org/videolan/libaacs/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  a47fc555eaaa66f469b02b9a4cc32eb3
14 URL:            http://www.videolan.org/developers/libaacs.html
15 BuildRequires:  libgcrypt-devel >= 1.6.0
16 BuildRequires:  libgpg-error-devel >= 0.5
17 Requires:       libgcrypt >= 1.6.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         specflags       -fomit-frame-pointer
21
22 %description
23 libaacs is a research project to implement the Advanced Access Content
24 System specification. This research project provides, through an
25 open-source library, a way to understand how the AACS works.
26
27 %description -l pl.UTF-8
28 libaacs to projekt badawczy mający na celu zaimplementowanie
29 specyfikacji Advanced Access Content System (zaawansowanego systemu
30 dostępu do treści). Zapewnia on - poprzez bibliotekę mającą otwarte
31 źródła - możliwość zrozumienia, jak działa AACS.
32
33 %package devel
34 Summary:        Header files for AACS library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AACS
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for AACS library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki AACS.
44
45 %package static
46 Summary:        Static AACS library
47 Summary(pl.UTF-8):      Statyczna biblioteka AACS
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static AACS library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka AACS.
56
57 %prep
58 %setup -q
59
60 %build
61 # --disable-optimizations to disable overriding rpm optflags
62 %configure \
63         --disable-optimizations \
64         --disable-silent-rules \
65         %{!?with_static_libs:--disable-static}
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 # obsoleted by pkg-config
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc ChangeLog README.md KEYDB.cfg
86 %attr(755,root,root) %{_bindir}/aacs_info
87 %attr(755,root,root) %{_libdir}/libaacs.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libaacs.so.0
89
90 %files devel
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libaacs.so
93 %{_includedir}/libaacs
94 %{_pkgconfigdir}/libaacs.pc
95
96 %if %{with static_libs}
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libaacs.a
100 %endif
This page took 1.03858 seconds and 3 git commands to generate.