flac/flac-xmms.spec

109 lines
2.8 KiB
RPMSpec

#
# spec file for package flac-xmms (Version 1.1.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: flac-xmms
BuildRequires: bmp-devel flac-devel gcc-c++ glitz-devel gtk2-devel id3lib-devel update-desktop-files xmms-devel
Summary: XMMS Input Plug-In for the FLAC Audio Format
Version: 1.1.2
Release: 23
License: GPL
Group: Productivity/Multimedia/Sound/Players
Requires: flac xmms
Url: http://flac.sourceforge.net/
Source: flac-%{version}.tar.bz2
Patch1: flac-prototypes.dif
Patch3: flac-compat.dif
Patch4: flac-uninitialized-fix.diff
Patch5: flac-bmp-plugin.diff
Patch6: flac-plugin-split.diff
Patch7: flac-xmms-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An XMMS input plug-in for the FLAC audio format.
Authors:
--------
Josh Coalson
%package -n flac-bmp
Summary: BMP Input Plug-In for the FLAC Audio Format
License: GPL
Group: Productivity/Multimedia/Sound/Players
Requires: flac bmp
%description -n flac-bmp
A BMP (Beep-Media-Player) input plug-in for the FLAC audio format.
Authors:
--------
Josh Coalson
%prep
%setup -n flac-%{version}
%patch1
%patch3
%patch4
%patch5
%patch6
%patch7
%{?suse_update_config:%{suse_update_config -f}}
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wformat-security
%ifarch ppc
extra_opts="--disable-asm-optimizations"
%endif
# force to add -fPIC -DPIC
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC %{warn_flags} -fno-strict-aliasing" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} $extra_opts
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -rf $RPM_BUILD_ROOT%{_bindir}
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.so*
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
rm -rf $RPM_BUILD_ROOT%{_includedir}
rm -rf $RPM_BUILD_ROOT%{_datadir}
rm -rf $RPM_BUILD_ROOT%{_mandir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_libdir}/xmms/Input/*.*
%files -n flac-bmp
%defattr(-, root, root)
%{_libdir}/bmp/Input/*.*
%changelog -n flac-xmms
* Sat Oct 07 2006 - aj@suse.de
- Cleanup BuildRequires.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Aug 10 2005 - tiwai@suse.de
- fixed invalid g_free() in FLAC xmms/bmp plugins (#103091)
* Wed May 25 2005 - tiwai@suse.de
- updated to version 1.1.2.
* Fri Feb 25 2005 - tiwai@suse.de
- split from flac to reduce the dependencies.