6 Url: http://svn.opensuse.org/svn/zypp/trunk/sat-solver
7 Source: satsolver-%{version}.tar.bz2
8 BuildRoot: %{_tmppath}/%{name}-%{version}-build
9 Group: Development/Libraries/C and C++
11 %if 0%{?mandriva_version}
12 # force this version on mandriva
13 BuildRequires: libneon0.26-devel
17 BuildRequires: libexpat-devel
19 BuildRequires: expat-devel
21 BuildRequires: cmake rpm-devel gcc-c++ ruby-devel swig
22 Summary: A new approach to package dependency solving
25 A new approach to package dependency solving
29 Michael Schroeder <mls@suse.de>
30 Klaus Kaempf <kkaempf@suse.de>
33 Summary: A new approach to package dependency solving
34 Group: Development/Libraries/C and C++
35 Requires: satsolver-tools = %version
38 A new approach to package dependency solving
42 Michael Schroeder <mls@suse.de>
43 Klaus Kaempf <kkaempf@suse.de>
46 Summary: Ruby bindings for sat solver
47 Group: Development/Languages/Ruby
52 %package -n satsolver-tools
53 Summary: A new approach to package dependency solving
54 Group: Development/Libraries/C and C++
55 Obsoletes: libsatsolver <= 0.0.15
56 Provides: libsatsolver = 0.0.15
58 %description -n satsolver-tools
62 %setup -n satsolver-%{version}
65 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
67 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
68 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
69 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
70 -DCMAKE_BUILD_TYPE=Release \
72 make %{?jobs:-j %jobs}
75 make DESTDIR=$RPM_BUILD_ROOT install
76 # we want to leave the .a file untouched
77 export NO_BRP_STRIP_DEBUG=true
79 # remove the perl bindings for now
80 rm -rf $RPM_BUILD_ROOT/usr/lib/perl5
83 rm -rf "$RPM_BUILD_ROOT"
85 %files -n satsolver-tools
92 %_libdir/libsatsolver.a
93 %_libdir/libappsatsolver.a
97 %dir /usr/include/satsolver
98 /usr/include/satsolver/*
101 %defattr(-,root,root,-)
103 %if 0%{?suse_version}
104 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/satsolverx.so
105 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/satsolver.rb
107 %if 0%{?mandriva_version}
108 %{ruby_sitearchdir}/satsolverx.so
109 %{ruby_sitelibdir}/satsolver.rb