5 Url: http://svn.opensuse.org/svn/zypp/trunk/sat-solver
6 Source: satsolver-%{version}.tar.bz2
7 BuildRoot: %{_tmppath}/%{name}-%{version}-build
8 Group: System/Libraries
9 BuildRequires: libexpat-devel db43-devel
10 BuildRequires: ruby-devel swig
12 Summary: A new approach to package dependency solving
19 Summary: A new approach to package dependency solving
20 Group: Development/Libraries
26 Summary: Ruby bindings for sat solver
27 Group: Development/Languages/Ruby
33 %setup -n satsolver-%{version}
38 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
40 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
41 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
42 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
43 -DCMAKE_BUILD_TYPE=Release \
44 -DCMAKE_SKIP_RPATH=1 \
46 make %{?jobs:-j %jobs}
50 make install DESTDIR=$RPM_BUILD_ROOT
51 #rm -f %{buildroot}%{_libdir}/libsatsolver.la
53 #%post -p /sbin/ldconfig
54 #%postun -p /sbin/ldconfig
57 rm -rf "$RPM_BUILD_ROOT"
60 #%defattr(-,root,root)
64 %{_libdir}/libsatsolver.a
68 %dir %{_includedir}/satsolver
69 %{_includedir}/satsolver/*
72 %defattr(-,root,root,-)
73 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/satsolverx.so
74 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/satsolver.rb