diff -r 4f133201e207 -r 4667f24fe848 libdca/libdca.spec --- a/libdca/libdca.spec Fri Mar 11 21:30:26 2011 +0100 +++ b/libdca/libdca.spec Fri Mar 11 21:36:51 2011 +0100 @@ -1,60 +1,70 @@ -Summary: DTS Coherent Acoustics decoder library -Name: libdca -Version: 0.0.5 -Release: 6%{?dist} -URL: http://www.videolan.org/developers/libdca.html -Group: System Environment/Libraries -Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 -Patch0: libdca-0.0.5-relsymlinks.patch -Patch1: libdca-0.0.5-strict-aliasing.patch -License: GPLv2+ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Name: libdca +Summary: DTS Coherent Acoustics decoder library +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Version: 0.0.5 +Release: 20101201 +License: GPLv2+ +Group: System Environment/Libraries +URL: http://www.videolan.org/developers/libdca.html +Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description -libdca is a free library for decoding DTS Coherent Acoustics streams. It is -released under the terms of the GPL license. The DTS Coherent Acoustics -standard is used in a variety of applications, including DVD, DTS audio CD and -radio broadcasting. +libdca is a free library for decoding DTS Coherent Acoustics streams. It +is released under the terms of the GPL license. The DTS Coherent Acoustics +standard is used in a variety of applications, including DVD, DTS audio CD +and radio broadcasting. %package devel -Summary: Development files for %{name} -Group: Development/Libraries -Obsoletes: libdts-devel < 0.0.2-2 -Provides: libdts-devel = 0.0.2-2 -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig +Summary: Development files for %{name} +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig %description devel -Development files for %{name}. +libdca is a free library for decoding DTS Coherent Acoustics streams. It +is released under the terms of the GPL license. The DTS Coherent Acoustics +standard is used in a variety of applications, including DVD, DTS audio CD +and radio broadcasting. -Install %{name}-devel if you wish to develop or compile -applications that use %{name}. +This package provides the development files. Install %{name}-devel +if you wish to develop or compile applications that use %{name}. %package tools Summary: Various tools for use with %{name} -Group: Applications/Multimedia +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Group: Applications/Multimedia %description tools -Various tools that use %{name}. +libdca is a free library for decoding DTS Coherent Acoustics streams. It +is released under the terms of the GPL license. The DTS Coherent Acoustics +standard is used in a variety of applications, including DVD, DTS audio CD +and radio broadcasting. + +This package provides various tools useful with %{name}. %prep %setup -q -%patch0 -p1 -b .relsymlinks -%patch1 -p1 -b .aliasing -iconv -f ISO8859-1 -t UTF-8 AUTHORS > tmp; mv tmp AUTHORS %build -%configure --disable-static -# Get rid of the /usr/lib64 RPATH on 64bit (as of 0.0.5) +%configure + +# Remove the RPATH configuration sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -# Force PIC as applications fail to recompile against the lib on x86_64 without -%{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS -fPIC" + +%{__make} %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" -rm $RPM_BUILD_ROOT%{_libdir}/%{name}.la +make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT @@ -76,11 +86,17 @@ %files devel %defattr(-,root,root,-) %doc TODO doc/%{name}.txt +%{_includedir}/d??.h +%{_libdir}/libdts.a +%{_libdir}/%{name}.a +%{_libdir}/%{name}.la +%{_libdir}/%{name}.so %{_libdir}/pkgconfig/libd??.pc -%{_includedir}/d??.h -%{_libdir}/%{name}.so %changelog +* Wed Dec 1 2010 Michael Schloh von Bennewitz - 0.0.5-20101201 +- Adjust packaging and patch logic + * Mon Nov 1 2010 Kozinov Ivan - 0.0.5-6 - Build for MeeGo 1.1