191 lines
6.6 KiB
RPMSpec
191 lines
6.6 KiB
RPMSpec
Name: libflac
|
|
Version: 1.3.0
|
|
Release: 1mamba
|
|
Summary: Free Lossless Audio Codec (FLAC)
|
|
Group: System/Multimedia
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://flac.sourceforge.net/
|
|
Source: http://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz
|
|
#Source: http://downloads.sourceforge.net/sourceforge/flac/flac-%{version}.tar.gz
|
|
Patch0: %{name}-1.1.2-xmms-plugin.patch
|
|
Patch1: %{name}-1.1.2-libtool.patch
|
|
Patch2: %{name}-1.2.1-gcc43.patch
|
|
Patch3: %{name}-1.2.1-asm.patch
|
|
Patch4: %{name}-1.2.1-hidesyms.patch
|
|
Patch5: %{name}-1.2.1-bitreader.patch
|
|
License: BSD, GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
%if "%{stage1}" != "1"
|
|
BuildRequires: libglib1-devel
|
|
BuildRequires: libgtk1-devel
|
|
BuildRequires: libogg-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libxmms-devel
|
|
%endif
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libid3-devel >= 3.8.3
|
|
BuildRequires: nasm
|
|
%if "%{_host}" == "%{_build}"
|
|
BuildRequires: docbook2X >= 0.8.5
|
|
BuildRequires: doxygen
|
|
%endif
|
|
Provides: libflac11
|
|
Obsoletes: libflac11
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality. This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see links to the right for supported devices) just like you would an MP3 file.
|
|
|
|
The FLAC project consists of:
|
|
* the stream format
|
|
* reference encoders and decoders in library form
|
|
* flac, a command-line program to encode and decode FLAC files
|
|
* metaflac, a command-line metadata editor for FLAC files
|
|
* input plugins for various music players
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: libflac11-devel
|
|
Obsoletes: libflac11-devel
|
|
|
|
%description devel
|
|
FLAC stands for Free Lossless Audio Codec.
|
|
Grossly oversimplified, FLAC is similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality.
|
|
This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see links to the right for supported devices) just like you would an MP3 file.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation
|
|
Provides: libflac11-doc
|
|
Obsoletes: libflac11-doc
|
|
|
|
%description doc
|
|
FLAC stands for Free Lossless Audio Codec.
|
|
Grossly oversimplified, FLAC is similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality.
|
|
This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see links to the right for supported devices) just like you would an MP3 file.
|
|
|
|
This package contains the documentation HTML pages for %{name}.
|
|
|
|
%package plugins-xmms
|
|
Summary: Flac plugin for XMMS
|
|
Group: System/Libraries
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: libflac11-plugins-xmms
|
|
Obsoletes: libflac11-plugins-xmms
|
|
|
|
%description plugins-xmms
|
|
FLAC stands for Free Lossless Audio Codec.
|
|
Grossly oversimplified, FLAC is similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality.
|
|
This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see links to the right for supported devices) just like you would an MP3 file.
|
|
|
|
This package contains the Flac plugin for XMMS.
|
|
|
|
%prep
|
|
%setup -q -n flac-%{version}
|
|
%patch2 -p1
|
|
#%patch3 -p1
|
|
#%patch4 -p1
|
|
#%patch5 -p0
|
|
|
|
%build
|
|
%configure \
|
|
--disable-rpath \
|
|
--with-pic \
|
|
%if "%{stage1}" == "1"
|
|
--disable-xmms-plugin \
|
|
%endif
|
|
%if "%{_host}" != "%{_build}"
|
|
--with-ogg-includes=%{_prefix}/%{_host}/includes \
|
|
--with-ogg-libraries=%{_prefix}/%{_host}/lib
|
|
%endif
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
cp AUTHORS COPYING* README \
|
|
%{buildroot}%{_datadir}/doc/flac-%{version}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/flac
|
|
%{_bindir}/metaflac
|
|
%{_libdir}/*.so.*
|
|
%{_mandir}/man1/flac.*
|
|
%{_mandir}/man1/metaflac.*
|
|
%dir %{_datadir}/doc/flac-%{version}
|
|
%{_datadir}/doc/flac-%{version}/AUTHORS
|
|
%{_datadir}/doc/flac-%{version}/COPYING*
|
|
%{_datadir}/doc/flac-%{version}/README
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_datadir}/aclocal/*.m4
|
|
%dir %{_includedir}/FLAC++
|
|
%dir %{_includedir}/FLAC
|
|
#%dir %{_includedir}/OggFLAC++
|
|
#%dir %{_includedir}/OggFLAC
|
|
%{_includedir}/FLAC++/*.h
|
|
%{_includedir}/FLAC/*.h
|
|
#%{_includedir}/OggFLAC++/*.h
|
|
#%{_includedir}/OggFLAC/*.h
|
|
#%{_libdir}/*.a
|
|
%{_libdir}/*.la
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/flac++.pc
|
|
%{_libdir}/pkgconfig/flac.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%dir %{_datadir}/doc/flac-%{version}
|
|
%{_datadir}/doc/flac-%{version}/FLAC.tag
|
|
%{_datadir}/doc/flac-%{version}/html/*
|
|
|
|
%if "%{stage1}" != "1"
|
|
%files plugins-xmms
|
|
%defattr(-,root,root)
|
|
%{_libdir}/xmms/Input/libxmms-flac.la
|
|
%{_libdir}/xmms/Input/libxmms-flac.so
|
|
%endif
|
|
|
|
%changelog
|
|
* Tue Jun 04 2013 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
- update to 1.3.0
|
|
|
|
* Mon May 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
|
|
- rebuilt with gcc 4.3 (added patch)
|
|
- obsoletes libflac11*
|
|
|
|
* Sat Jun 21 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-1mamba
|
|
- update to 1.2.1
|
|
|
|
* Wed Jun 14 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.1.2-3qilnx
|
|
- added libtool patch
|
|
|
|
* Mon Sep 25 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-2qilnx
|
|
- rebuilt against libxmms
|
|
|
|
* Thu Jun 09 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.2-1qilnx
|
|
- update to version 1.1.2 by autospec
|
|
|
|
* Fri Apr 09 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.0-1qilnx
|
|
- first build
|