1 Summary: DTS Coherent Acoustics decoder library |
1 Name: libdca |
2 Name: libdca |
2 Summary: DTS Coherent Acoustics decoder library |
3 Version: 0.0.5 |
3 Vendor: Europalab Software |
4 Release: 6%{?dist} |
4 Packager: Michael Schloh von Bennewitz |
5 URL: http://www.videolan.org/developers/libdca.html |
5 Distribution: MeeGo Thirdparty |
6 Group: System Environment/Libraries |
6 Version: 0.0.5 |
7 Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 |
7 Release: 20101201 |
8 Patch0: libdca-0.0.5-relsymlinks.patch |
8 License: GPLv2+ |
9 Patch1: libdca-0.0.5-strict-aliasing.patch |
9 Group: System Environment/Libraries |
10 License: GPLv2+ |
10 URL: http://www.videolan.org/developers/libdca.html |
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
11 Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 |
|
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
12 |
13 |
13 %description |
14 %description |
14 libdca is a free library for decoding DTS Coherent Acoustics streams. It is |
15 libdca is a free library for decoding DTS Coherent Acoustics streams. It |
15 released under the terms of the GPL license. The DTS Coherent Acoustics |
16 is released under the terms of the GPL license. The DTS Coherent Acoustics |
16 standard is used in a variety of applications, including DVD, DTS audio CD and |
17 standard is used in a variety of applications, including DVD, DTS audio CD |
17 radio broadcasting. |
18 and radio broadcasting. |
18 |
19 |
19 %package devel |
20 %package devel |
20 Summary: Development files for %{name} |
21 Summary: Development files for %{name} |
21 Group: Development/Libraries |
22 Vendor: Europalab Software |
22 Obsoletes: libdts-devel < 0.0.2-2 |
23 Packager: Michael Schloh von Bennewitz |
23 Provides: libdts-devel = 0.0.2-2 |
24 Distribution: MeeGo Thirdparty |
24 Requires: %{name} = %{version}-%{release} |
25 Group: Development/Libraries |
25 Requires: pkgconfig |
26 Requires: %{name} = %{version}-%{release} |
|
27 Requires: pkgconfig |
26 |
28 |
27 %description devel |
29 %description devel |
28 Development files for %{name}. |
30 libdca is a free library for decoding DTS Coherent Acoustics streams. It |
|
31 is released under the terms of the GPL license. The DTS Coherent Acoustics |
|
32 standard is used in a variety of applications, including DVD, DTS audio CD |
|
33 and radio broadcasting. |
29 |
34 |
30 Install %{name}-devel if you wish to develop or compile |
35 This package provides the development files. Install %{name}-devel |
31 applications that use %{name}. |
36 if you wish to develop or compile applications that use %{name}. |
32 |
37 |
33 %package tools |
38 %package tools |
34 Summary: Various tools for use with %{name} |
39 Summary: Various tools for use with %{name} |
35 Group: Applications/Multimedia |
40 Vendor: Europalab Software |
|
41 Packager: Michael Schloh von Bennewitz |
|
42 Distribution: MeeGo Thirdparty |
|
43 Group: Applications/Multimedia |
36 |
44 |
37 %description tools |
45 %description tools |
38 Various tools that use %{name}. |
46 libdca is a free library for decoding DTS Coherent Acoustics streams. It |
|
47 is released under the terms of the GPL license. The DTS Coherent Acoustics |
|
48 standard is used in a variety of applications, including DVD, DTS audio CD |
|
49 and radio broadcasting. |
|
50 |
|
51 This package provides various tools useful with %{name}. |
39 |
52 |
40 %prep |
53 %prep |
41 %setup -q |
54 %setup -q |
42 %patch0 -p1 -b .relsymlinks |
|
43 %patch1 -p1 -b .aliasing |
|
44 iconv -f ISO8859-1 -t UTF-8 AUTHORS > tmp; mv tmp AUTHORS |
|
45 |
55 |
46 %build |
56 %build |
47 %configure --disable-static |
57 %configure |
48 # Get rid of the /usr/lib64 RPATH on 64bit (as of 0.0.5) |
58 |
|
59 # Remove the RPATH configuration |
49 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
60 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
50 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
61 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
51 # Force PIC as applications fail to recompile against the lib on x86_64 without |
62 |
52 %{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS -fPIC" |
63 %{__make} %{?_smp_mflags} |
53 |
64 |
54 %install |
65 %install |
55 rm -rf $RPM_BUILD_ROOT |
66 rm -rf $RPM_BUILD_ROOT |
56 make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" |
67 make DESTDIR=$RPM_BUILD_ROOT install |
57 rm $RPM_BUILD_ROOT%{_libdir}/%{name}.la |
|
58 |
68 |
59 %clean |
69 %clean |
60 rm -rf $RPM_BUILD_ROOT |
70 rm -rf $RPM_BUILD_ROOT |
61 |
71 |
62 %post -p /sbin/ldconfig |
72 %post -p /sbin/ldconfig |