]> git.pld-linux.org Git - packages/ecasound.git/commitdiff
- allow to build without ruby support
authorwrobell <wrobell@pld-linux.org>
Wed, 12 Jan 2005 14:57:19 +0000 (14:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel. 3

Changed files:
    ecasound.spec -> 1.84

ecasound.spec

index 946fa65b447757c4e066b5753fa6c9187c868573..53f6c5c12a5bcbe61d338ebd8920cc26bb6f5d6c 100644 (file)
@@ -2,13 +2,14 @@
 # Conditional build:
 %bcond_without alsa            # without ALSA support (implies without JACK)
 %bcond_without jack            # without JACK support
+%bcond_without ruby            # without ruby support
 %bcond_with    arts            # with aRts support
 #
 Summary:       Software package for multitrack audio processing
 Summary(pl):   Oprogramowanie do wielo¶cie¿kowego przetwarzania d¼wiêku
 Name:          ecasound
 Version:       2.3.5
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/Sound
 Source0:       http://ecasound.seul.org/download/%{name}-%{version}.tar.gz
@@ -28,11 +29,13 @@ BuildRequires:      python-devel >= 2.2
 BuildRequires: python-modules >= 2.2
 BuildRequires: readline-devel >= 4.2
 BuildRequires: rpm-pythonprov
-BuildRequires: ruby
+%{?with_ruby:BuildRequires:    ruby}
 Obsoletes:     libecasound
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%if %{with ruby}
 %define                ruby_sitelibdir %(ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')
+%endif
 
 %description
 Ecasound is a software package designed for multitrack audio
@@ -201,6 +204,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py_sitedir}/*.so
 %{py_sitedir}/*.py[co]
 
+%if %{with ruby}
 %files -n ruby-%{name}
 %defattr(644,root,root,755)
 %{ruby_sitelibdir}/ecasound.rb
+%endif
This page took 0.069446 seconds and 4 git commands to generate.