2024-01-05 19:46:21 +01:00
|
|
|
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
|
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
|
|
|
%define minver %(echo %version | cut -d. -f 3)
|
|
|
|
|
|
|
|
Name: xmms2
|
2024-01-05 19:46:22 +01:00
|
|
|
Version: 0.9.1
|
2024-01-05 19:46:21 +01:00
|
|
|
Epoch: 1
|
2024-01-05 19:46:21 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 19:46:21 +01:00
|
|
|
Summary: A multimedia player that has most of the features as WinAmp
|
|
|
|
Group: Graphical Desktop/Applications/Multimedia
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 19:46:22 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://xmms.se/
|
|
|
|
Source0: https://github.com/xmms2/xmms2-devel.git/%{version}/xmms2-devel-%{version}.tar.bz2
|
2024-01-05 19:46:21 +01:00
|
|
|
#Source0: http://downloads.sourceforge.net/project/xmms2/xmms2/%{majver}%20%{minver}/xmms2-%{majver}%{minver}.tar.bz2
|
2024-01-05 19:46:21 +01:00
|
|
|
Source1: xmms2-desktopfile
|
|
|
|
Patch0: xmms2-0.8DrO_o-cython-1.9.patch
|
|
|
|
Patch1: xmms2-0.8DrO_o-libavcodec-ffmpeg-1.2.1.patch
|
2024-01-05 19:46:21 +01:00
|
|
|
Patch2: xmms2-0.8DrO_o-ffmpeg-2.2.patch
|
2024-01-05 19:46:21 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libalsa-devel
|
|
|
|
BuildRequires: libao-devel
|
|
|
|
BuildRequires: libavahi-devel
|
|
|
|
BuildRequires: libavahi-glib-devel
|
|
|
|
BuildRequires: libavcodec-ffmpeg-devel
|
|
|
|
BuildRequires: libcdio-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libcdio-paranoia-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libdiscid-devel
|
2024-01-05 19:46:22 +01:00
|
|
|
BuildRequires: libefl-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libfaad2-devel
|
|
|
|
BuildRequires: libfftw-devel
|
|
|
|
BuildRequires: libflac-devel
|
2024-01-05 19:46:22 +01:00
|
|
|
BuildRequires: libfluidsynth-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
BuildRequires: libmad-devel
|
|
|
|
BuildRequires: libmms-devel
|
|
|
|
BuildRequires: libmodplug-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libmpg123-devel
|
2024-01-05 19:46:22 +01:00
|
|
|
BuildRequires: libmusepack-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libofa-devel
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 19:46:22 +01:00
|
|
|
BuildRequires: libopus-devel
|
|
|
|
BuildRequires: libopusfile-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libpulseaudio-devel
|
|
|
|
BuildRequires: libreadline-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libruby-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
BuildRequires: libshout-devel
|
|
|
|
BuildRequires: libsmbclient-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libspeex-devel
|
|
|
|
BuildRequires: libsqlite-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: libvorbisidec-devel
|
|
|
|
BuildRequires: libwavpack-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: perl-Glib
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-05 19:46:21 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: autoconf-archive
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: avahi-compat-libdns_sd-devel
|
2024-01-05 19:46:22 +01:00
|
|
|
#%ifarch %{ix86}
|
|
|
|
#BuildRequires: cross-mingw32-toolchain
|
|
|
|
#%endif
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: lmms
|
|
|
|
BuildRequires: Pyrex
|
|
|
|
BuildRequires: perl-Glib
|
|
|
|
%endif
|
|
|
|
BuildRequires: doxygen
|
2024-01-05 19:46:21 +01:00
|
|
|
#BuildRequires: gst-plugins-good-devel
|
|
|
|
#BuildRequires: python-rhpl
|
2024-01-05 19:46:21 +01:00
|
|
|
BuildRequires: valgrind-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
XMMS2 is an audio framework, but it is not a general multimedia player - it will not play videos.
|
|
|
|
It has a modular framework and plugin architecture for audio processing, visualisation and output, but this framework has not been designed to support video.
|
|
|
|
Also the client-server design of XMMS2 (and the daemon being independent of any graphics output) practically prevents direct video output being implemented.
|
|
|
|
It has support for a wide range of audio formats, which is expandable via plugins.
|
|
|
|
It includes a basic CLI interface to the XMMS2 framework, but most users will want to install a graphical XMMS2 client (such as gxmms2 or esperanza).
|
|
|
|
|
|
|
|
%package -n libxmms2
|
|
|
|
Summary: XMMS2 library files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libxmms2
|
|
|
|
XMMS2 is an audio framework, but it is not a general multimedia player - it will not play videos.
|
|
|
|
It has a modular framework and plugin architecture for audio processing, visualisation and output, but this framework has not been designed to support video.
|
|
|
|
Also the client-server design of XMMS2 (and the daemon being independent of any graphics output) practically prevents direct video output being implemented.
|
|
|
|
It has support for a wide range of audio formats, which is expandable via plugins.
|
|
|
|
It includes a basic CLI interface to the XMMS2 framework, but most users will want to install a graphical XMMS2 client (such as gxmms2 or esperanza).
|
|
|
|
|
|
|
|
%package -n perl-xmms2
|
|
|
|
Summary: XMMS2 perl binding
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Requires: libxmms2 = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n perl-xmms2
|
|
|
|
XMMS2 is an audio framework, but it is not a general multimedia player - it will not play videos.
|
|
|
|
It has a modular framework and plugin architecture for audio processing, visualisation and output, but this framework has not been designed to support video.
|
|
|
|
Also the client-server design of XMMS2 (and the daemon being independent of any graphics output) practically prevents direct video output being implemented.
|
|
|
|
It has support for a wide range of audio formats, which is expandable via plugins.
|
|
|
|
It includes a basic CLI interface to the XMMS2 framework, but most users will want to install a graphical XMMS2 client (such as gxmms2 or esperanza).
|
|
|
|
This package includes the perl binding to xmms2.
|
|
|
|
|
|
|
|
%package -n libxmms2-devel
|
|
|
|
Summary: Devel package for XMMS2
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libxmms2 = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 19:46:22 +01:00
|
|
|
Obsoletes: xmms2-devel < 1:0.9.1
|
2024-01-05 19:46:21 +01:00
|
|
|
Provides: xmms2-devel
|
|
|
|
|
|
|
|
%description -n libxmms2-devel
|
|
|
|
Development libraries and headers for XMMS2. You probably need this to develop or build new plugins for XMMS2.
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
%prep
|
2024-01-05 19:46:21 +01:00
|
|
|
%setup -q -n %{name}-devel-%{version}
|
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
|
|
|
#%patch2 -p1
|
2024-01-05 19:46:21 +01:00
|
|
|
|
|
|
|
# This header doesn't need to be executable
|
|
|
|
chmod -x src/include/xmmsclient/xmmsclient++/dict.h
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
sed -i '$a#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 /* 1 second of 48kHz 32bit audio */' src/plugins/avcodec/avcodec_compat.h
|
|
|
|
sed -i 's,#include <cdio/cdda.h>,#include <cdio/paranoia/cdda.h>,' src/plugins/cdda/cdda.c
|
|
|
|
sed -i 's,libsmbclient.h,samba-4.0/libsmbclient.h,' src/plugins/samba/{samba.c,wscript}
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
## Clean up paths in wafadmin
|
|
|
|
#WAFADMIN_FILES=`find wafadmin/ -type f`
|
|
|
|
#for i in $WAFADMIN_FILES; do
|
|
|
|
#sed -i 's|/usr/lib|%{_libdir}|g' $i
|
|
|
|
#done
|
|
|
|
#sed -i 's|"lib"|"%{_lib}"|g' wscript
|
|
|
|
|
|
|
|
%build
|
2024-01-05 19:46:21 +01:00
|
|
|
export LIBDIR="%{_libdir}"
|
2024-01-05 19:46:21 +01:00
|
|
|
./waf configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--with-ruby-libdir=%{ruby_sitearch} \
|
|
|
|
--with-perl-archdir=%{perl_archlib} \
|
2024-01-05 19:46:21 +01:00
|
|
|
--with-pkgconfigdir=%{_libdir}/pkgconfig \
|
|
|
|
--without-optionals=python
|
2024-01-05 19:46:21 +01:00
|
|
|
|
|
|
|
# --with-libdir=%{_libdir}
|
|
|
|
./waf build
|
|
|
|
# make the docs
|
|
|
|
doxygen -u
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
export LIBDIR="%{_libdir}"
|
|
|
|
./waf install \
|
2024-01-05 19:46:21 +01:00
|
|
|
--destdir=%{buildroot}
|
2024-01-05 19:46:21 +01:00
|
|
|
|
|
|
|
# exec flags for debuginfo
|
|
|
|
chmod +x %{buildroot}%{_libdir}/%{name}/*
|
|
|
|
chmod +x %{buildroot}%{_libdir}/libxmmsclient*.so*
|
|
|
|
chmod +x %{buildroot}%{perl_archlib}/auto/Audio/XMMSClient/XMMSClient.so
|
|
|
|
chmod +x %{buildroot}%{ruby_sitearch}/xmmsclient_*.so
|
2024-01-05 19:46:21 +01:00
|
|
|
#%if "%{stage1}" != "1"
|
|
|
|
#chmod +x %{buildroot}%{python_sitearch}/xmmsclient/xmmsapi.so \
|
|
|
|
#%endif
|
2024-01-05 19:46:21 +01:00
|
|
|
|
|
|
|
## Convert to utf-8
|
|
|
|
#for i in %{buildroot}%{_mandir}/man1/*.gz; do
|
|
|
|
#gunzip $i;
|
|
|
|
#done
|
|
|
|
#for i in %{buildroot}%{_mandir}/man1/*.1 ChangeLog; do
|
|
|
|
#iconv -o $i.iso88591 -f iso88591 -t utf8 $i
|
|
|
|
#mv $i.iso88591 $i
|
|
|
|
#done
|
|
|
|
|
|
|
|
# create KDE menu link
|
|
|
|
install -D -m644 %{S:1} \
|
|
|
|
%{buildroot}%{_datadir}/applications/xmms2.desktop
|
|
|
|
|
|
|
|
#% find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -n libxmms2 -p /sbin/ldconfig
|
|
|
|
%postun -n libxmms2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}*
|
2024-01-05 19:46:21 +01:00
|
|
|
%{_bindir}/_xmms2-migrate-collections-v0
|
2024-01-05 19:46:22 +01:00
|
|
|
%{_bindir}/s4
|
2024-01-05 19:46:21 +01:00
|
|
|
%{_bindir}/sqlite2s4
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%{_datadir}/applications/xmms2.desktop
|
2024-01-05 19:46:21 +01:00
|
|
|
%{_mandir}/man1/%{name}*
|
|
|
|
%{_datadir}/pixmaps/%{name}*
|
|
|
|
%{ruby_sitearch}/xmmsclient*
|
2024-01-05 19:46:21 +01:00
|
|
|
#%{python_sitearch}/xmmsclient/
|
|
|
|
#%{_bindir}/nyxmms2
|
2024-01-05 19:46:21 +01:00
|
|
|
#%{_mandir}/man1/nyxmms2.*
|
|
|
|
%doc COPYING.GPL
|
|
|
|
|
|
|
|
%files -n libxmms2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libxmmsclient*.so.*
|
|
|
|
%dir %{_libdir}/%{name}
|
2024-01-05 19:46:21 +01:00
|
|
|
%{_libdir}/xmms2/libxmms_*.so
|
2024-01-05 19:46:21 +01:00
|
|
|
%doc AUTHORS COPYING COPYING.LGPL
|
|
|
|
|
|
|
|
%files -n libxmms2-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_libdir}/libxmmsclient*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-*.pc
|
2024-01-05 19:46:21 +01:00
|
|
|
%doc TODO
|
2024-01-05 19:46:21 +01:00
|
|
|
|
|
|
|
%files -n perl-xmms2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_archlib}/Audio/
|
|
|
|
%{perl_archlib}/auto/Audio/
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 19:46:22 +01:00
|
|
|
* Sun May 08 2022 Automatic Build System <autodist@mambasoft.it> 0.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
* Sat Oct 17 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8DrO_o.20201017git-1mamba
|
|
|
|
- update to 0.8DrO_o.20201017git
|
|
|
|
|
|
|
|
* Sat Oct 17 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8DrO_o-5mamba
|
|
|
|
- rebuilt
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
* Thu May 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8DrO_o-4mamba
|
|
|
|
- ffmpeg 2.2 rebuild
|
|
|
|
|
2024-01-05 19:46:21 +01:00
|
|
|
* Sat Sep 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8DrO_o-3mamba
|
|
|
|
- add epoch to internal requires
|
|
|
|
|
|
|
|
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8DrO_o-2mamba
|
|
|
|
- bump epoch up to allow upgrade after switching to upstream version scheme
|
|
|
|
- added patch to build against Cython 0.19
|
|
|
|
|
|
|
|
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 0.8DrO_o-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Sep 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.DrO_o-1mamba
|
|
|
|
- update to 0.8.DrO_o
|
|
|
|
|
|
|
|
* Tue Feb 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.DrNo-3mamba
|
|
|
|
- don't package libxmmsclient* both in xmms2 and libxmmsclient packages
|
|
|
|
|
|
|
|
* Thu Jun 03 2010 Automatic Build System <autodist@mambasoft.it> 0.7.DrNo-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sun May 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.DrNo-1mamba
|
|
|
|
- update to 0.7.DrNo
|
|
|
|
|
|
|
|
* Fri Jan 22 2010 Fabio Giani <fabio.giani@gmail.com> 1.2.8-1qilnx
|
|
|
|
- first build
|