1.1 --- a/libdca/libdca.spec Fri Mar 11 21:30:26 2011 +0100 1.2 +++ b/libdca/libdca.spec Fri Mar 11 21:36:51 2011 +0100 1.3 @@ -1,60 +1,70 @@ 1.4 -Summary: DTS Coherent Acoustics decoder library 1.5 -Name: libdca 1.6 -Version: 0.0.5 1.7 -Release: 6%{?dist} 1.8 -URL: http://www.videolan.org/developers/libdca.html 1.9 -Group: System Environment/Libraries 1.10 -Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 1.11 -Patch0: libdca-0.0.5-relsymlinks.patch 1.12 -Patch1: libdca-0.0.5-strict-aliasing.patch 1.13 -License: GPLv2+ 1.14 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.15 +Name: libdca 1.16 +Summary: DTS Coherent Acoustics decoder library 1.17 +Vendor: Europalab Software 1.18 +Packager: Michael Schloh von Bennewitz 1.19 +Distribution: MeeGo Thirdparty 1.20 +Version: 0.0.5 1.21 +Release: 20101201 1.22 +License: GPLv2+ 1.23 +Group: System Environment/Libraries 1.24 +URL: http://www.videolan.org/developers/libdca.html 1.25 +Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 1.26 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 1.27 1.28 %description 1.29 -libdca is a free library for decoding DTS Coherent Acoustics streams. It is 1.30 -released under the terms of the GPL license. The DTS Coherent Acoustics 1.31 -standard is used in a variety of applications, including DVD, DTS audio CD and 1.32 -radio broadcasting. 1.33 +libdca is a free library for decoding DTS Coherent Acoustics streams. It 1.34 +is released under the terms of the GPL license. The DTS Coherent Acoustics 1.35 +standard is used in a variety of applications, including DVD, DTS audio CD 1.36 +and radio broadcasting. 1.37 1.38 %package devel 1.39 -Summary: Development files for %{name} 1.40 -Group: Development/Libraries 1.41 -Obsoletes: libdts-devel < 0.0.2-2 1.42 -Provides: libdts-devel = 0.0.2-2 1.43 -Requires: %{name} = %{version}-%{release} 1.44 -Requires: pkgconfig 1.45 +Summary: Development files for %{name} 1.46 +Vendor: Europalab Software 1.47 +Packager: Michael Schloh von Bennewitz 1.48 +Distribution: MeeGo Thirdparty 1.49 +Group: Development/Libraries 1.50 +Requires: %{name} = %{version}-%{release} 1.51 +Requires: pkgconfig 1.52 1.53 %description devel 1.54 -Development files for %{name}. 1.55 +libdca is a free library for decoding DTS Coherent Acoustics streams. It 1.56 +is released under the terms of the GPL license. The DTS Coherent Acoustics 1.57 +standard is used in a variety of applications, including DVD, DTS audio CD 1.58 +and radio broadcasting. 1.59 1.60 -Install %{name}-devel if you wish to develop or compile 1.61 -applications that use %{name}. 1.62 +This package provides the development files. Install %{name}-devel 1.63 +if you wish to develop or compile applications that use %{name}. 1.64 1.65 %package tools 1.66 Summary: Various tools for use with %{name} 1.67 -Group: Applications/Multimedia 1.68 +Vendor: Europalab Software 1.69 +Packager: Michael Schloh von Bennewitz 1.70 +Distribution: MeeGo Thirdparty 1.71 +Group: Applications/Multimedia 1.72 1.73 %description tools 1.74 -Various tools that use %{name}. 1.75 +libdca is a free library for decoding DTS Coherent Acoustics streams. It 1.76 +is released under the terms of the GPL license. The DTS Coherent Acoustics 1.77 +standard is used in a variety of applications, including DVD, DTS audio CD 1.78 +and radio broadcasting. 1.79 + 1.80 +This package provides various tools useful with %{name}. 1.81 1.82 %prep 1.83 %setup -q 1.84 -%patch0 -p1 -b .relsymlinks 1.85 -%patch1 -p1 -b .aliasing 1.86 -iconv -f ISO8859-1 -t UTF-8 AUTHORS > tmp; mv tmp AUTHORS 1.87 1.88 %build 1.89 -%configure --disable-static 1.90 -# Get rid of the /usr/lib64 RPATH on 64bit (as of 0.0.5) 1.91 +%configure 1.92 + 1.93 +# Remove the RPATH configuration 1.94 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 1.95 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 1.96 -# Force PIC as applications fail to recompile against the lib on x86_64 without 1.97 -%{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS -fPIC" 1.98 + 1.99 +%{__make} %{?_smp_mflags} 1.100 1.101 %install 1.102 rm -rf $RPM_BUILD_ROOT 1.103 -make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" 1.104 -rm $RPM_BUILD_ROOT%{_libdir}/%{name}.la 1.105 +make DESTDIR=$RPM_BUILD_ROOT install 1.106 1.107 %clean 1.108 rm -rf $RPM_BUILD_ROOT 1.109 @@ -76,11 +86,17 @@ 1.110 %files devel 1.111 %defattr(-,root,root,-) 1.112 %doc TODO doc/%{name}.txt 1.113 +%{_includedir}/d??.h 1.114 +%{_libdir}/libdts.a 1.115 +%{_libdir}/%{name}.a 1.116 +%{_libdir}/%{name}.la 1.117 +%{_libdir}/%{name}.so 1.118 %{_libdir}/pkgconfig/libd??.pc 1.119 -%{_includedir}/d??.h 1.120 -%{_libdir}/%{name}.so 1.121 1.122 %changelog 1.123 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.0.5-20101201 1.124 +- Adjust packaging and patch logic 1.125 + 1.126 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.0.5-6 1.127 - Build for MeeGo 1.1 1.128