]> git.pld-linux.org Git - packages/flac.git/commitdiff
- added bcond _without_xmms
authortrojan <trojan@pld-linux.org>
Mon, 20 Jan 2003 08:55:05 +0000 (08:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed %%files

Changed files:
    flac.spec -> 1.13

flac.spec

index 1f404de12b3791cd5d0322a9ef0e82991dbf3948..00a2344ed3a8a49bb3ddab64067c575fd41c27d6 100644 (file)
--- a/flac.spec
+++ b/flac.spec
@@ -1,4 +1,7 @@
 # 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
@@ -9,16 +12,19 @@ Group:               Libraries
 Source0:       http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0:                %{name}-acfix.patch
 Patch1:                %{name}-lt.patch
+Patch2:                %{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.
@@ -69,6 +75,7 @@ Wtyczka dla XMMS umo
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%{?_without_xmms:%patch2 -p1}
 
 %build
 rm -f missing
@@ -93,7 +100,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/{*.html,images/{*.gif,*.jpg},ru/*.html}
+%doc doc/html/{*.html,images/{*.gif,*.jpg}}
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so.*.* 
 %{_mandir}/man1/*
@@ -109,7 +116,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.12555 seconds and 4 git commands to generate.