diff options
author | Michael Schroeder <mls@suse.de> | 2011-07-18 14:13:09 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-07-18 14:13:09 +0200 |
commit | a765006c02784c66974d902972294117bf03cf08 (patch) | |
tree | ea0f1fbfafc84a1b574da3875a1877e9eb144832 /package/libsolv.spec.in | |
parent | b46c77e7256ee69189631177f93060c03898d224 (diff) | |
download | libsolv-a765006c02784c66974d902972294117bf03cf08.tar.gz libsolv-a765006c02784c66974d902972294117bf03cf08.tar.bz2 libsolv-a765006c02784c66974d902972294117bf03cf08.zip |
fix spec
Diffstat (limited to 'package/libsolv.spec.in')
-rw-r--r-- | package/libsolv.spec.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index decffc2..0dc1897 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -8,6 +8,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: Development/Libraries/C and C++ Prefix: /usr +%bcond_with enable_static +%bcond_with disable_shared %bcond_without perl_binding %bcond_without python_binding %bcond_without ruby_binding @@ -39,13 +41,16 @@ BuildRequires: zlib-devel %if %{with perl_binding} BuildRequires: perl +BuildRequires: swig %endif %if %{with ruby_binding} -%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"] ')} +%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"]') BuildRequires: ruby-devel +BuildRequires: swig %endif %if %{with python_binding} BuildRequires: python-devel +BuildRequires: swig %endif Summary: A new approach to package dependency solving @@ -158,9 +163,11 @@ cmake $CMAKE_FLAGS \ -DLIB=%{_lib} \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DCMAKE_BUILD_TYPE=Release \ + %{?with_enable_static:-DENABLE_STATIC=1} \ + %{?with_disable_shared:-DDISABLE_SHARED=1} \ %{?with_perl_binding:-DENABLE_PERL=1} \ %{?with_python_binding:-DENABLE_PYTHON=1} \ - %{?with_ruby_binding:-DENABLE_RUBYL=1} \ + %{?with_ruby_binding:-DENABLE_RUBY=1} \ -DUSE_VENDORDIRS=1 \ -DCMAKE_SKIP_RPATH=1 make %{?jobs:-j %jobs} @@ -210,7 +217,6 @@ rm -rf "$RPM_BUILD_ROOT" %if %{with python_binding} %files -n python-solv -%{ruby_vendorarch}/* %defattr(-,root,root) %{py_sitedir}/* %endif |