libphonon/libphonon.spec

227 lines
7.4 KiB
RPMSpec

Name: libphonon
Version: 4.8.3
Release: 2mamba
Summary: Multimedia API for KDE4
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.kde.org
Source: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/src/phonon-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQtDeclarative
BuildRequires: libgcc
%if "%{stage1}" != "1"
BuildRequires: libpulseaudio-devel
BuildRequires: libpulseaudio-glib-devel
%endif
BuildRequires: libqt4-devel
BuildRequires: libqt5-devel
BuildRequires: libqzeitgeist-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: automoc4
#%if "%{stage1}" != "1"
#BuildRequires: kdelibs-devel
#%endif
Conflicts: libqt4-phonon
%if "%{stage1}" != "1"
Requires: phonon_backend
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Phonon is the multimedia API for KDE4.
Phonon was created to allow KDE4 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Phonon is the multimedia API for KDE4.
Phonon was created to allow KDE4 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
This package contains static libraries and header files need for development.
%package designer
Group: Development/Tools
Summary: libphonon widgets for Qt Designer
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description designer
Phonon is the multimedia API for KDE4.
Phonon was created to allow KDE4 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
This package contains the libphonon widgets for Qt Designer.
%package -n %{name}-qt5
Group: System/Libraries
Summary: Multimedia API for KF5
%description -n %{name}-qt5
Phonon is the multimedia API for KF5.
Phonon was created to allow KF5 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
%package -n %{name}-qt5-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name}-qt5 = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{name}-qt5-devel
Phonon is the multimedia API for KF5.
Phonon was created to allow KF5 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
This package contains static libraries and header files need for development.
%package -n %{name}-qt5-designer
Group: Development/Tools
Summary: libphonon widgets for Qt5 Designer
Requires: %{name}-qt5 = %{?epoch:%epoch:}%{version}-%{release}
%description designer
Phonon is the multimedia API for KF5.
Phonon was created to allow KF5 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE4's lifetime.
This package contains the libphonon widgets for Qt5 Designer.
%prep
%setup -q -n phonon-%{version}
%build
# NOTE: using rpm % cmake macro causes problems with paths
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
%make
cd ..
mkdir build-qt5
cd build-qt5
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
-DPHONON_BUILD_PHONON4QT5=ON \
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build-qt5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libphonon.so.*
%{_libdir}/libphononexperimental.so.*
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
%doc COPYING.LIB
%files devel
%defattr(-,root,root)
%dir %{_includedir}/KDE/Phonon
%{_includedir}/KDE/Phonon/*
%dir %{_includedir}/phonon
%{_includedir}/phonon/*
%{_libdir}/libphonon.so
%{_libdir}/libphononexperimental.so
%{_libdir}/pkgconfig/phonon.pc
%dir %{_libdir}/cmake/phonon
%{_libdir}/cmake/phonon/PhononConfig.cmake
%{_libdir}/cmake/phonon/PhononConfigVersion.cmake
%{_libdir}/cmake/phonon/PhononTargets-release.cmake
%{_libdir}/cmake/phonon/PhononTargets.cmake
%{_datadir}/qt4/mkspecs/modules/qt_phonon.pri
%dir %{_datadir}/phonon/buildsystem
%{_datadir}/phonon/buildsystem/COPYING-CMAKE-SCRIPTS
%{_datadir}/phonon/buildsystem/*.cmake
%{_datadir}/phonon/buildsystem/cmake_uninstall.cmake.in
%files designer
%defattr(-,root,root)
%{_libdir}/qt4/plugins/designer/libphononwidgets.so
%files -n %{name}-qt5
%defattr(-,root,root)
%{_libdir}/libphonon4qt5.so.*
%{_libdir}/libphonon4qt5experimental.so.*
%{_datadir}/dbus-1/interfaces/org.kde.Phonon4Qt5.AudioOutput.xml
%files -n %{name}-qt5-devel
%defattr(-,root,root)
%dir %{_includedir}/phonon4qt5
%dir %{_includedir}/phonon4qt5/KDE
%dir %{_includedir}/phonon4qt5/KDE/Phonon
%{_includedir}/phonon4qt5/KDE/Phonon/*
%dir %{_includedir}/phonon4qt5/phonon
%{_includedir}/phonon4qt5/phonon/*
%dir %{_libdir}/cmake/phonon4qt5
%{_libdir}/cmake/phonon4qt5/Phonon*.cmake
%{_libdir}/libphonon4qt5.so
%{_libdir}/libphonon4qt5experimental.so
%{_libdir}/pkgconfig/phonon4qt5.pc
%{_libdir}/qt5/mkspecs/modules/qt_phonon4qt5.pri
%dir %{_datadir}/phonon4qt5/buildsystem
%{_datadir}/phonon4qt5/buildsystem/COPYING-CMAKE-SCRIPTS
%{_datadir}/phonon4qt5/buildsystem/*.cmake
%{_datadir}/phonon4qt5/buildsystem/cmake_uninstall.cmake.in
%files -n %{name}-qt5-designer
%defattr(-,root,root)
%{_libdir}/qt5/plugins/designer/libphononwidgets.so
%changelog
* Sat Feb 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.3-2mamba
- added qt5 subpackage
* Thu Jan 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.3-1mamba
- update to 4.8.3
* Wed Jun 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.1-1mamba
- update to 4.7.1
* Fri Mar 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.0-1mamba
- update to 4.6.0
* Thu Aug 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.5.0-1mamba
- update to 4.5.0
* Sun Feb 20 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.4-3mamba
- added virtual requirement for phonon_backend
* Sat Jan 29 2011 Davide Madrisan <davide.madrisan@gmail.com> 4.4.4-2mamba
- rebuilt moving libraries to %{_libdir}
* Sun Jan 23 2011 Davide Madrisan <davide.madrisan@gmail.com> 4.4.4-1mamba
- update to 4.4.4
- move phonon.pc to %{_libdir}/pkgconfig (pkg-config doesn't work otherwise)
* Thu Jan 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.3-1mamba
- update to 4.4.3
* Tue Feb 03 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.0-1mamba
- update to 4.3.0
* Tue Oct 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-3mamba
- removed conflicts with libqt4-phonon
* Thu Aug 28 2008 Aleph0 <aleph0@openmamba.org> 4.2.0-2mamba
- add libphonon conflict against libqt4-phonon
* Thu Aug 28 2008 Aleph0 <aleph0@openmamba.org> 4.2.0-1mamba
- package created by autospec