Name: libsatsolver Version: @VERSION@ Release: 1 License: BSD 3-Clause Url: http://svn.opensuse.org/svn/zypp/trunk/sat-solver Source: satsolver-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: Development/Libraries/C and C++ %if 0%{?mandriva_version} # force this version on mandriva BuildRequires: libneon0.26-devel %endif %if 0%{?fedora_version} BuildRequires: perl-devel %endif %if 0%{?suse_version} BuildRequires: libexpat-devel %else BuildRequires: expat-devel %endif BuildRequires: cmake rpm-devel gcc-c++ ruby-devel swig Summary: A new approach to package dependency solving %description A new approach to package dependency solving Authors: -------- Michael Schroeder Klaus Kaempf %package devel Summary: A new approach to package dependency solving Group: Development/Libraries/C and C++ Requires: satsolver-tools = %version %description devel A new approach to package dependency solving Authors: -------- Michael Schroeder Klaus Kaempf %package ruby Summary: Ruby bindings for sat solver Group: Development/Languages/Ruby %description ruby . %package -n satsolver-tools Summary: A new approach to package dependency solving Group: Development/Libraries/C and C++ Obsoletes: libsatsolver <= 0.0.15 Provides: libsatsolver = %{version}-%{release} Requires: gzip bzip2 coreutils %description -n satsolver-tools . %package perl Summary: Perl bindings for sat solver Group: Development/Languages/Perl %description perl . %prep %setup -n satsolver-%{version} %build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB=%{_lib} \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=1 make %{?jobs:-j %jobs} %install make DESTDIR=$RPM_BUILD_ROOT install # we want to leave the .a file untouched export NO_BRP_STRIP_DEBUG=true %clean rm -rf "$RPM_BUILD_ROOT" %files -n satsolver-tools %defattr(-,root,root) %doc LICENSE* %exclude /usr/bin/deptestomatic %exclude /usr/bin/helix2solv /usr/bin/* %files devel %defattr(-,root,root) %_libdir/libsatsolver.a %_libdir/libappsatsolver.a %doc doc/README* %doc doc/THEORY %doc doc/PLANNING %dir /usr/include/satsolver /usr/include/satsolver/* /usr/bin/deptestomatic /usr/bin/helix2solv %files ruby %defattr(-,root,root,-) %if 0%{?suse_version} %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/satsolverx.so %{_libdir}/ruby/vendor_ruby/%{rb_ver}/satsolver.rb %endif %if 0%{?mandriva_version} %{ruby_sitearchdir}/satsolverx.so %{ruby_sitelibdir}/satsolver.rb %endif %files perl %defattr(-,root,root,-) %{perl_vendorarch}/satsolverx.so %{perl_vendorlib}/satsolverx.pm %changelog