diff --git a/.cvsignore b/.cvsignore index e69de29..2a09a86 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +phonon-4.2-20080614svn820634.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..99b256a --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +phonon-4_2-0_1_20080614svn820634_fc10:HEAD:phonon-4.2-0.1.20080614svn820634.fc10.src.rpm:1213648567 diff --git a/phonon-4.2-automoc_libsuffix.patch b/phonon-4.2-automoc_libsuffix.patch new file mode 100644 index 0000000..c513856 --- /dev/null +++ b/phonon-4.2-automoc_libsuffix.patch @@ -0,0 +1,12 @@ +diff -up phonon-4.2/cmake/FindAutomoc4.cmake.lib64 phonon-4.2/cmake/FindAutomoc4.cmake +--- phonon-4.2/cmake/FindAutomoc4.cmake.lib64 2008-06-04 17:07:53.000000000 -0500 ++++ phonon-4.2/cmake/FindAutomoc4.cmake 2008-06-14 19:15:00.000000000 -0500 +@@ -32,7 +32,7 @@ else("${KDESupport_SOURCE_DIR}" STREQUAL + PATH_SUFFIXES automoc4 lib/automoc4 lib64/automoc4 + PATHS ${_env_CMAKE_PREFIX_PATH} ${CMAKE_PREFIX_PATH} ${CMAKE_SYSTEM_PREFIX_PATH} + ${_env_CMAKE_LIBRARY_PATH} ${CMAKE_LIBRARY_PATH} ${CMAKE_SYSTEM_LIBRARY_PATH} +- ${CMAKE_INSTALL_PREFIX}/lib ++ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} ${CMAKE_INSTALL_PREFIX}/lib + NO_DEFAULT_PATH ) + endif("${KDESupport_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}") + diff --git a/phonon.spec b/phonon.spec new file mode 100644 index 0000000..8abab64 --- /dev/null +++ b/phonon.spec @@ -0,0 +1,101 @@ +%define svn 20080614svn820634 + +Summary: Multimedia framework api +Name: phonon +Version: 4.2 +Release: 0.1.%{svn}%{?dist} + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://phonon.kde.org/ +# checked out from svn://anonsvn.kde.org/home/kde/branches/phonon/4.2 +Source0: %{name}-%{version}-%{svn}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# patch needed for F-9/cmake-2.4 +Patch1: phonon-4.2-automoc_libsuffix.patch + +BuildRequires: automoc +BuildRequires: cmake +BuildRequires: glib2-devel +BuildRequires: gstreamer-devel +BuildRequires: gstreamer-plugins-base-devel +BuildRequires: kde-filesystem +BuildRequires: libxml2-devel +BuildRequires: qt4-devel + +# not sure exactly how best to version this one -- Rex +Provides: phonon-backend = %{version}-%{release} +# subpkg? -- Rex +Provides: phonon-backend-gstreamer = %{version}-%{release} + +%description +%{summary}. + +%package devel +Summary: Developer files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: qt4-devel +Requires: pkgconfig +%description devel +%{summary}. + + +%prep +%setup -q + +#patch1 -p1 -b .automoc_libsuffix + + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +# %%cmake_kde4 or just %%cmake ? (and whether to use %%kde4_* macros or not) -- Rex +%{cmake} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} VERBOSE=1 + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} -C %{_target_platform} + + + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc COPYING.LIB +%{_libdir}/libphonon*.so.* +%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml +# kde4-specific dirs +%dir %{_kde4_libdir}/kde4/plugins/phonon_backend/ +%dir %{_kde4_datadir}/kde4/services/phononbackends/ +# phonon-backend-gstreamer +%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so +%{_kde4_datadir}/kde4/services/phononbackends/gstreamer.desktop + + +%files devel +%defattr(-,root,root,-) +%dir %{_includedir}/KDE +%{_includedir}/KDE/Phonon/ +%{_includedir}/phonon/ +%{_libdir}/pkgconfig/phonon.pc +%{_libdir}/libphonon*.so + + +%changelog +* Sat Jun 14 2008 Rex Dieter 4.2-0.1 +- first try + diff --git a/sources b/sources index e69de29..8f17527 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e387d5f30fe869dc1f5bf9be96ae4d24 phonon-4.2-20080614svn820634.tar.bz2