5 Url: git://gitorious.org/opensuse/libsolv.git
6 Source: libsolv-%{version}.tar.bz2
7 BuildRoot: %{_tmppath}/%{name}-%{version}-build
8 Group: Development/Libraries/C and C++
11 %bcond_without perl_binding
12 %bcond_without python_binding
13 %bcond_without ruby_binding
15 %if 0%{?mandriva_version}
16 # force this version on mandriva
17 BuildRequires: libneon0.26-devel
19 %if 0%{?fedora_version}
20 BuildRequires: db4-devel
23 %if 0%{?suse_version} < 1030
26 BuildRequires: libexpat-devel
28 %if 0%{?suse_version} < 1100
29 BuildRequires: graphviz
31 %if 0%{?suse_version} > 1020
35 BuildRequires: expat-devel
37 BuildRequires: cmake rpm-devel gcc-c++
38 BuildRequires: zlib-devel
40 %if %{with perl_binding}
43 %if %{with ruby_binding}
44 %global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"] ')}
45 BuildRequires: ruby-devel
47 %if %{with python_binding}
48 BuildRequires: python-devel
51 Summary: A new approach to package dependency solving
55 A new approach to package dependency solving
59 Michael Schroeder <mls@suse.de>
60 Klaus Kaempf <kkaempf@suse.de>
61 Stephan Kulow <coolo@suse.de>
62 Michael Matz <matz@suse.de>
63 Duncan Mac-Vicar P. <dmacvicar@suse.de>
65 %package -n libsolv@LIBSOLV_SOVERSION@
66 Summary: A new approach to package dependency solving
67 Group: Development/Libraries/C and C++
69 %description -n libsolv@LIBSOLV_SOVERSION@
70 A new approach to package dependency solving
74 Michael Schroeder <mls@suse.de>
75 Klaus Kaempf <kkaempf@suse.de>
76 Stephan Kulow <coolo@suse.de>
77 Michael Matz <matz@suse.de>
78 Duncan Mac-Vicar P. <dmacvicar@suse.de>
81 Summary: A new approach to package dependency solving
82 Group: Development/Libraries/C and C++
83 Requires: libsolv-tools = %version
87 Development files for libsolv, a new approach to package dependency solving
91 Michael Schroeder <mls@suse.de>
92 Klaus Kaempf <kkaempf@suse.de>
93 Stephan Kulow <coolo@suse.de>
94 Michael Matz <matz@suse.de>
95 Duncan Mac-Vicar P. <dmacvicar@suse.de>
98 Summary: A new approach to package dependency solving
99 Group: Development/Libraries/C and C++
100 Obsoletes: libsatsolver <= 0.0.15
101 Provides: libsatsolver = %{version}-%{release}
102 Requires: gzip bzip2 coreutils
105 A new approach to package dependency solving.
108 Summary: Applications demoing the libsolv library
109 Group: System/Management
111 %if 0%{?fedora_version}
114 %if 0%{?suse_version}
119 Applications demoing the libsolv library.
121 %package -n ruby-solv
122 Summary: Ruby bindings for the libsolv library
123 Group: Development/Languages/Ruby
125 %description -n ruby-solv
126 Ruby bindings for sat solver.
128 %package -n python-solv
130 Summary: Python bindings for the libsolv library
131 Group: Development/Languages/Python
133 %description -n python-solv
134 Python bindings for sat solver.
136 %package -n perl-solv
137 Requires: perl = %{perl_version}
138 Summary: Perl bindings for the libsolv library
139 Group: Development/Languages/Perl
141 %description -n perl-solv
142 Perl bindings for sat solver.
145 %setup -n libsolv-%{version}
148 export CFLAGS="$RPM_OPT_FLAGS"
149 export CXXFLAGS="$CFLAGS"
152 %if 0%{?fedora_version}
153 CMAKE_FLAGS="-DFEDORA=1"
157 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
159 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
160 -DCMAKE_BUILD_TYPE=Release \
161 %{?with_perl_binding:-DENABLE_PERL=1} \
162 %{?with_python_binding:-DENABLE_PYTHON=1} \
163 %{?with_ruby_binding:-DENABLE_RUBYL=1} \
166 make %{?jobs:-j %jobs}
169 make DESTDIR=$RPM_BUILD_ROOT install
170 # we want to leave the .a file untouched
171 export NO_BRP_STRIP_DEBUG=true
174 rm -rf "$RPM_BUILD_ROOT"
176 %files -n libsolv@LIBSOLV_SOVERSION@
177 %defattr(-,root,root)
179 %_libdir/libsolv.so.*
180 %_libdir/libsolvext.so.*
183 %defattr(-,root,root)
184 %exclude /usr/bin/helix2solv
185 %exclude /usr/bin/solv
189 %defattr(-,root,root)
191 %_libdir/libsolvext.so
196 %defattr(-,root,root)
199 %if %{with perl_binding}
201 %defattr(-,root,root)
205 %if %{with ruby_binding}
207 %defattr(-,root,root)
211 %if %{with python_binding}
212 %files -n python-solv
214 %defattr(-,root,root)