]> git.pld-linux.org Git - packages/libdv.git/blobdiff - libdv.spec
- obsolete
[packages/libdv.git] / libdv.spec
index 7cdf4cee6222c43ae45be2ebcd42223523da3418..b5d5f4b1d13bd3d07407826c05c71c976c50af22 100644 (file)
@@ -1,28 +1,36 @@
 #
 # Conditional build:
+%bcond_without gui     # don't build gui stuff
 %bcond_with    mmx     # use MMX asm (won't run on non-MMX CPU!)
+%bcond_without static_libs     # don't build static library
 #
-%ifarch athlon
-%define        with_mmx        1
+%ifarch athlon pentium3 pentium4
+# %{x8664} skipped - gas generates PIC-incompatible relocation entries
+%define                with_mmx        1
 %endif
 Summary:       DV video software codec
 Summary(pl):   Biblioteka do obsĀ³ugi formatu wideo DV
 Name:          libdv
-Version:       0.102
-Release:       1
+Version:       0.104
+Release:       3
 License:       LGPL
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/libdv/%{name}-%{version}.tar.gz
-# Source0-md5: 21f2968fa756961ee2cb7d96834ade80
+# Source0-md5: f6b08efce7472daa20685e6e8431f542
 Patch0:                %{name}-include_fix.patch
+Patch1:                %{name}-mmx.patch
 URL:           http://libdv.sourceforge.net/
+%if %{with gui}
+BuildRequires: SDL-devel >= 1.1.6
 BuildRequires: XFree86-devel
-BuildRequires: autoconf
+BuildRequires: gtk+-devel >= 1.2.10-3
+%endif
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: libtool
-BuildRequires: gtk+-devel >= 1.2.10-3
-BuildRequires: pkgconfig >= 0.7
+BuildRequires: pkgconfig >= 1:0.7
 BuildRequires: popt-devel
+BuildRequires: rpmbuild(macros) >= 1.213
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -79,16 +87,26 @@ Statyczna wersja biblioteki libdv.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
+cp /usr/share/automake/config.sub .
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure \
        --enable-shared \
+%if %{with gui}
+       --enable-sdl \
+       --enable-gtk \
+%else
+       --disable-sdl \
+       --disable-gtk \
+%endif
        --without-debug \
-       %{!?with_mmx:--disable-asm}
+       %{!?with_mmx:--disable-asm} \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -110,10 +128,12 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog NEWS README.* TODO
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
 
+%if %{with gui}
 %files -n dv
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -122,6 +142,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/libdv
 %{_pkgconfigdir}/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.029703 seconds and 4 git commands to generate.