]> git.pld-linux.org Git - packages/flac.git/blobdiff - flac.spec
- std sf url
[packages/flac.git] / flac.spec
index 1f404de12b3791cd5d0322a9ef0e82991dbf3948..b45e47fcca3867ca3a6ba1ae7af4e273abfc60a9 100644 (file)
--- a/flac.spec
+++ b/flac.spec
@@ -1,24 +1,30 @@
 # TODO: split (c++, ogg?)
+#
+# Conditional build:
+#  _without xmms
 Summary:       Free Lossless Audio Codec
 Summary(pl):   Free Lossless Audio Codec - Darmowy Bezstratny Kodek Audio
 Name:          flac
-Version:       1.0.4
-Release:       1
+Version:       1.1.0
+Release:       2
 License:       GPL/LGPL
 Group:         Libraries
-Source0:       http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-Patch0:                %{name}-acfix.patch
-Patch1:                %{name}-lt.patch
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 19b456a27b5fcf502c76cc33f33e1490
+Patch0:                %{name}-lt.patch
+Patch1:                %{name}-without_xmms.patch
 URL:           http://flac.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libogg-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:1.4d
-BuildRequires: xmms-devel
+%{!?_without_xmms:BuildRequires:       xmms-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%if %{!?_without_xmms:1}0
 %define                _xmms_input_path        %(xmms-config --input-plugin-dir)
+%endif
 
 %description
 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
@@ -68,7 +74,7 @@ Wtyczka dla XMMS umo
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+%{?_without_xmms:%patch1 -p1}
 
 %build
 rm -f missing
@@ -85,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# no makefiles in doc dirs
+rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -93,9 +102,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/{*.html,images/{*.gif,*.jpg},ru/*.html}
+%doc AUTHORS README doc/html/{*.html,images}
+%lang(ru) %doc doc/html/ru
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.* 
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 %{_mandir}/man1/*
 
 %files devel
@@ -109,7 +119,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{!?_without_xmms:1}0
 %files -n xmms-input-flac
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_xmms_input_path}/*.so
 %{_xmms_input_path}/*.la
+%endif
This page took 0.056439 seconds and 4 git commands to generate.