libphonon/libphonon.spec

147 lines
4.5 KiB
RPMSpec

Name: libphonon
Version: 4.6.0
Release: 1mamba
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: libgcc
BuildRequires: libglib-devel
%if "%{stage1}" != "1"
BuildRequires: libpulseaudio-devel
BuildRequires: libpulseaudio-glib-devel
%endif
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: automoc4
%if "%{stage1}" != "1"
BuildRequires: kdelibs-devel
%endif
BuildRequires: libqzeitgeist-devel
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.
%prep
%setup -q -n phonon-%{version}
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%if "%{stage1}" != "1"
install -d %{buildroot}%{_kde4_libdir}/kde4/plugins/phonon_backend/
install -d %{buildroot}%{_kde4_servicesdir}/phononbackends/
%endif
%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
%if "%{stage1}" != "1"
%dir %{_kde4_libdir}/kde4/plugins/phonon_backend
%dir %{_kde4_servicesdir}/phononbackends
%endif
%doc COPYING.LIB
%files devel
%defattr(-,root,root)
%{_qt4_datadir}/mkspecs/modules/qt_phonon.pri
%{_includedir}/KDE/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-noconfig.cmake
%{_libdir}/cmake/phonon/PhononTargets.cmake
%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
%changelog
* 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