LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libdca.spec of Package libdca (Project home:umogslayer)

# this has been taken from http://www.hyperborea.org/software/dillo/dillo.spec
#################################################################################
# Identify which distribution we're building on.
# This will determine any changes in menu structure or release number (i.e. .mdk)
# Eventually, need to make this configurable from the rpmbuild command line.

%define libname libdca0

Summary:    A free DTS Coherent Acoustics decoder
Name:       libdca
Version:    0.0.5
Release:    1%{?dist}
License:    GPL
Group:      System/Libraries
Source0:    libdca-%{version}.tar.bz2
BuildRequires: pkg-config, autoconf, automake, libtool, gcc-c++

URL:        http://www.audiocoding.com/
#################################################################################

BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
libdca is a free library for decoding DTS Coherent Acoustics streams. 
The code is written by Gildas Bazin and was based on the a52dec project. 
It is released under the terms of the GPL license.

The DTS Coherent Acoustics standard (ETSI 102 114 v1.2.1), as published 
by the ETSI, is available here (look for DTS Coherent Acoustics).

%package -n %{libname}
Summary:    A free DTS Coherent Acoustics decoder
Group:      System/Libraries

%description -n %{libname}
libdca is a free library for decoding DTS Coherent Acoustics streams. 
The code is written by Gildas Bazin and was based on the a52dec project. 
It is released under the terms of the GPL license.

The DTS Coherent Acoustics standard (ETSI 102 114 v1.2.1), as published 
by the ETSI, is available here (look for DTS Coherent Acoustics).

%package devel
Summary: Development libraries for libdca
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}

%description devel
Header files and development documentation for liblibdca.

%package -n dca-utils
Summary: Utility scrits for libdca
Group: Productivity/Multimedia/Other
Requires: %{libname} = %{version}

%description -n dca-utils
Utilities to work with DTS Coherent Acoustics streams.

%prep
#%setup -n %{name}
%setup -n libdca-%{version}
#%patch -p0

%build
#sh bootstrap
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
# Hack to work around a problem with DESTDIR in libtool 1.4.x
LIBRARY_PATH="%{buildroot}%{_libdir}:${LIBRARY_PATH}" make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/libdca.la
rm -f %{buildroot}%{_libdir}/libdca.a
rm -f %{buildroot}%{_libdir}/libdts.a
#Seems to be deprecated stuff (backward compatibility)
#just removing it from installation image
rm -f %{buildroot}%{_bindir}/dtsdec
rm -f %{buildroot}%{_bindir}/extract_dts
rm -f %{buildroot}%{_mandir}/man1/dtsdec.1*
rm -f %{buildroot}%{_mandir}/man1/extract_dts.1*

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-, root, root)
%{_libdir}/libdca.so.*

%files -n dca-utils
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/dcadec
%{_bindir}/extract_dca
%doc %{_mandir}/man1/dcadec.1*
%doc %{_mandir}/man1/extract_dca.1*

%files devel
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_includedir}/dca.h
%{_includedir}/dts.h
%{_libdir}/libdca.so
%{_libdir}/pkgconfig/libdca.pc
%{_libdir}/pkgconfig/libdts.pc

%changelog
* Sat Jul 31 2010 Vladimir Bayrashevsky <vovanhood@gmail.com> 0.0.5
- initial specfile for openSUSE