libdca/libdca.spec

changeset 1
4667f24fe848
parent 0
4f133201e207
equal deleted inserted replaced
0:6d407f6dc82a 1:afb566b49d72
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
74 %{_mandir}/man1/* 84 %{_mandir}/man1/*
75 85
76 %files devel 86 %files devel
77 %defattr(-,root,root,-) 87 %defattr(-,root,root,-)
78 %doc TODO doc/%{name}.txt 88 %doc TODO doc/%{name}.txt
89 %{_includedir}/d??.h
90 %{_libdir}/libdts.a
91 %{_libdir}/%{name}.a
92 %{_libdir}/%{name}.la
93 %{_libdir}/%{name}.so
79 %{_libdir}/pkgconfig/libd??.pc 94 %{_libdir}/pkgconfig/libd??.pc
80 %{_includedir}/d??.h
81 %{_libdir}/%{name}.so
82 95
83 %changelog 96 %changelog
97 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.0.5-20101201
98 - Adjust packaging and patch logic
99
84 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.0.5-6 100 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.0.5-6
85 - Build for MeeGo 1.1 101 - Build for MeeGo 1.1
86 102
87 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.0.5-5 103 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.0.5-5
88 - Rebuild 104 - Rebuild

mercurial