diff --git a/.gitignore b/.gitignore index 62101f1..2d461f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -v0.9.1.tar.gz +v0.9.2.tar.gz diff --git a/mpv.spec b/mpv.spec index 9777075..40558e4 100644 --- a/mpv.spec +++ b/mpv.spec @@ -1,5 +1,5 @@ Name: mpv -Version: 0.9.1 +Version: 0.9.2 Release: 1%{?dist} Summary: Movie player playing most video formats and DVDs License: GPLv2+ @@ -55,6 +55,20 @@ input URL types are available to read input from a variety of sources other than disk files. Depending on platform, a variety of different video and audio output methods are supported. +%package -n libmpv +Summary: Dynamic library for Mpv frontends + +%description -n libmpv +This package contains the dynamic library libmpv, which provides access to Mpv. + +%package -n libmpv-devel +Summary: Development package for libmpv +Requires: libmpv%{_isa} = %{version}-%{release} +Requires: pkgconfig + +%description -n libmpv-devel +Libmpv development header files and libraries. + %prep %setup -q %patch0 -p1 @@ -69,12 +83,14 @@ CCFLAGS="%{optflags}" \ waf configure \ --prefix="%{_prefix}" \ --bindir="%{_bindir}" \ + --libdir="%{_libdir}" \ --mandir="%{_mandir}" \ --docdir="%{_docdir}/%{name}" \ --confdir="%{_sysconfdir}/%{name}" \ --disable-sdl1 --disable-sdl2 \ --disable-build-date \ - --disable-debug + --disable-debug \ + --enable-libmpv-shared waf build --verbose %{?_smp_mflags} @@ -108,6 +124,10 @@ fi gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +%post -n libmpv -p /sbin/ldconfig + +%postun -n libmpv -p /sbin/ldconfig + %files %doc LICENSE README.md Copyright %{_bindir}/%{name} @@ -119,7 +139,20 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %config(noreplace) %{_sysconfdir}/%{name}/encoding-profiles.conf %config(noreplace) %{_sysconfdir}/%{name}/input.conf +%files -n libmpv +%doc LICENSE README.md Copyright +%{_libdir}/libmpv.so.* + +%files -n libmpv-devel +%{_includedir}/%{name} +%{_libdir}/libmpv.so +%{_libdir}/pkgconfig/mpv.pc + %changelog +* Wed Jun 10 2015 Miro Hrončok - 0.9.2-1 +- Updated to 0.9.2 +- Also build the library + * Sat May 16 2015 Miro Hrončok - 0.9.1-1 - Update to 0.9.1 - BR compat-lua-devel because mpv does not work with lua 5.3 diff --git a/sources b/sources index 380c542..8da5929 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c766cf3d6a7eb82a74564c47fa14d4a5 v0.9.1.tar.gz +ed1384e703f7032e531731842e4da4f7 v0.9.2.tar.gz