5 Url: git://gitorious.org/opensuse/sat-solver.git
6 Source: libsolv-%{version}.tar.bz2
7 BuildRoot: %{_tmppath}/%{name}-%{version}-build
8 Group: Development/Libraries/C and C++
11 BuildRequires: doxygen
12 %if 0%{?mandriva_version}
13 # force this version on mandriva
14 BuildRequires: libneon0.26-devel
16 %if 0%{?fedora_version}
17 BuildRequires: db4-devel ruby ruby-rdoc
20 %if 0%{?suse_version} < 1030
23 BuildRequires: libexpat-devel
25 %if 0%{?suse_version} < 1100
26 BuildRequires: graphviz
28 %if 0%{?suse_version} > 1020
32 BuildRequires: expat-devel
34 BuildRequires: cmake rpm-devel gcc-c++
35 BuildRequires: zlib-devel
36 # the testsuite uses the check framework
37 %if 0%{?suse_version} >= 1030 || !0%{?suse_version}
38 BuildRequires: check-devel
42 Summary: A new approach to package dependency solving
46 A new approach to package dependency solving
50 Michael Schroeder <mls@suse.de>
51 Klaus Kaempf <kkaempf@suse.de>
52 Stephan Kulow <coolo@suse.de>
53 Michael Matz <matz@suse.de>
54 Duncan Mac-Vicar P. <dmacvicar@suse.de>
57 Summary: A new approach to package dependency solving
58 Group: Development/Libraries/C and C++
59 Requires: libsolv-tools = %version
63 Development files for libsolv, a new approach to package dependency solving
68 Michael Schroeder <mls@suse.de>
69 Klaus Kaempf <kkaempf@suse.de>
70 Stephan Kulow <coolo@suse.de>
71 Michael Matz <matz@suse.de>
72 Duncan Mac-Vicar P. <dmacvicar@suse.de>
75 Summary: A new approach to package dependency solving
76 Group: Development/Libraries/C and C++
77 Obsoletes: libsatsolver <= 0.0.15
78 Provides: libsatsolver = %{version}-%{release}
79 Requires: gzip bzip2 coreutils
82 A new approach to package dependency solving.
85 Summary: Applications demoing the libsolv library
86 Group: System/Management
88 %if 0%{?fedora_version}
96 Applications demoing the libsolv library.
99 %setup -n libsolv-%{version}
102 export CFLAGS="$RPM_OPT_FLAGS"
103 export CXXFLAGS="$CFLAGS"
106 %if 0%{?fedora_version}
107 CMAKE_FLAGS="-DFEDORA=1"
109 # Where does RHEL provide qsort_r ?
110 %if 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
111 export CFLAGS="$RPM_OPT_FLAGS -DUSE_OWN_QSORT=1"
115 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
117 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
118 -DCMAKE_BUILD_TYPE=Release \
120 make %{?jobs:-j %jobs}
123 %if 0%{?run_testsuite}
129 make DESTDIR=$RPM_BUILD_ROOT install
130 # we want to leave the .a file untouched
131 export NO_BRP_STRIP_DEBUG=true
137 rm -rf "$RPM_BUILD_ROOT"
140 %defattr(-,root,root)
142 %exclude /usr/bin/deptestomatic
143 %exclude /usr/bin/helix2solv
144 %exclude /usr/bin/solv
148 %defattr(-,root,root)
150 %_libdir/libsolvext.a
152 /usr/bin/deptestomatic
156 %defattr(-,root,root)