libphonon/libphonon.spec

175 lines
5.6 KiB
RPMSpec

Name: libphonon
Version: 4.11.1
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: http://download.kde.org/stable/phonon/%{version}/phonon-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libpulseaudio-devel
BuildRequires: libpulseaudio-glib-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: automoc4
#%if "%{stage1}" != "1"
#BuildRequires: kdelibs-devel
#%endif
%if "%{stage1}" != "1"
Requires: phonon_backend
%endif
Provides: libphonon-qt5
Obsoletes: libphonon-qt5
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Phonon is the multimedia API for KDE5.
Phonon was created to allow KDE 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}
Provides: libphonon-qt5-devel
Obsoletes: libphonon-qt5-devel
%description devel
Phonon is the multimedia API for KDE5.
Phonon was created to allow KDE to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE's lifetime.
This package contains static libraries and header files needed for development.
%package tools
Group: Graphical Desktop/Applications/Multimedia
Summary: Tools provided by %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
Phonon is the multimedia API for KDE5.
Phonon was created to allow KDE to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE's lifetime.
This package contains the phononsettings tool.
%package designer
Group: Development/Tools
Summary: libphonon widgets for Qt Designer
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: libphonon-qt5-designer
Obsoletes: libphonon-qt5-designer
%description designer
Phonon is the multimedia API for KDE5.
Phonon was created to allow KDE5 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.
%debug_package
%prep
%setup -q -n phonon-%{version}
%build
%cmake -d build \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
-DPHONON_BUILD_PHONON4QT5=ON \
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name}5_qt --with-qt --with-man --all-name || touch %{name}5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libphonon4qt5.so.*
%{_libdir}/libphonon4qt5experimental.so.*
%doc COPYING.LIB
%files tools -f %{name}5_qt.lang
%{_bindir}/phononsettings
%files 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/*.cmake
%files designer
%defattr(-,root,root)
%{_libdir}/qt5/plugins/designer/phononwidgets.so
%changelog
* Thu Jan 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-1mamba
- update to 4.11.1
* Sun Feb 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.10.2-1mamba
- update to 4.10.2
* Sat May 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.9.0-1mamba
- update to 4.9.0
* 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