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_with enable_static
12 %bcond_with disable_shared
13 %bcond_without perl_binding
14 %bcond_without python_binding
15 %bcond_without ruby_binding
17 %if 0%{?mandriva_version}
18 # force this version on mandriva
19 BuildRequires: libneon0.26-devel
21 %if 0%{?fedora_version}
22 BuildRequires: db4-devel
25 %if 0%{?suse_version} < 1030
28 BuildRequires: libexpat-devel
30 %if 0%{?suse_version} < 1100
31 BuildRequires: graphviz
33 %if 0%{?suse_version} > 1020
37 BuildRequires: expat-devel
39 BuildRequires: cmake rpm-devel gcc-c++
40 BuildRequires: zlib-devel
42 %if %{with perl_binding}
46 %if %{with ruby_binding}
47 %global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"]')
48 BuildRequires: ruby-devel
51 %if %{with python_binding}
52 BuildRequires: python-devel
56 Summary: A new approach to package dependency solving
60 A new approach to package dependency solving
64 Michael Schroeder <mls@suse.de>
65 Klaus Kaempf <kkaempf@suse.de>
66 Stephan Kulow <coolo@suse.de>
67 Michael Matz <matz@suse.de>
68 Duncan Mac-Vicar P. <dmacvicar@suse.de>
70 %package -n libsolv@LIBSOLV_SOVERSION@
71 Summary: A new approach to package dependency solving
72 Group: Development/Libraries/C and C++
74 %description -n libsolv@LIBSOLV_SOVERSION@
75 A new approach to package dependency solving
79 Michael Schroeder <mls@suse.de>
80 Klaus Kaempf <kkaempf@suse.de>
81 Stephan Kulow <coolo@suse.de>
82 Michael Matz <matz@suse.de>
83 Duncan Mac-Vicar P. <dmacvicar@suse.de>
86 Summary: A new approach to package dependency solving
87 Group: Development/Libraries/C and C++
88 Requires: libsolv-tools = %version
89 Requires: libsolv@LIBSOLV_SOVERSION@ = %version
93 Development files for libsolv, a new approach to package dependency solving
97 Michael Schroeder <mls@suse.de>
98 Klaus Kaempf <kkaempf@suse.de>
99 Stephan Kulow <coolo@suse.de>
100 Michael Matz <matz@suse.de>
101 Duncan Mac-Vicar P. <dmacvicar@suse.de>
104 Summary: A new approach to package dependency solving
105 Group: Development/Libraries/C and C++
106 Obsoletes: libsatsolver <= 0.0.15
107 Provides: libsatsolver = %{version}-%{release}
108 Requires: gzip bzip2 coreutils
111 A new approach to package dependency solving.
114 Summary: Applications demoing the libsolv library
115 Group: System/Management
117 %if 0%{?fedora_version}
120 %if 0%{?suse_version}
125 Applications demoing the libsolv library.
127 %package -n ruby-solv
128 Summary: Ruby bindings for the libsolv library
129 Group: Development/Languages/Ruby
131 %description -n ruby-solv
132 Ruby bindings for sat solver.
134 %package -n python-solv
136 Summary: Python bindings for the libsolv library
137 Group: Development/Languages/Python
139 %description -n python-solv
140 Python bindings for sat solver.
142 %package -n perl-solv
143 Requires: perl = %{perl_version}
144 Summary: Perl bindings for the libsolv library
145 Group: Development/Languages/Perl
147 %description -n perl-solv
148 Perl bindings for sat solver.
151 %setup -n libsolv-%{version}
154 export CFLAGS="$RPM_OPT_FLAGS"
155 export CXXFLAGS="$CFLAGS"
158 %if 0%{?fedora_version}
159 CMAKE_FLAGS="-DFEDORA=1"
163 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
165 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
166 -DCMAKE_BUILD_TYPE=Release \
167 %{?with_enable_static:-DENABLE_STATIC=1} \
168 %{?with_disable_shared:-DDISABLE_SHARED=1} \
169 %{?with_perl_binding:-DENABLE_PERL=1} \
170 %{?with_python_binding:-DENABLE_PYTHON=1} \
171 %{?with_ruby_binding:-DENABLE_RUBY=1} \
174 make %{?jobs:-j %jobs}
177 make DESTDIR=$RPM_BUILD_ROOT install
178 # we want to leave the .a file untouched
179 export NO_BRP_STRIP_DEBUG=true
182 rm -rf "$RPM_BUILD_ROOT"
184 %post -n libsolv@LIBSOLV_SOVERSION@ -p /sbin/ldconfig
186 %postun -n libsolv@LIBSOLV_SOVERSION@ -p /sbin/ldconfig
188 %files -n libsolv@LIBSOLV_SOVERSION@
189 %defattr(-,root,root)
191 %_libdir/libsolv.so.*
192 %_libdir/libsolvext.so.*
195 %defattr(-,root,root)
196 %exclude /usr/bin/helix2solv
197 %exclude /usr/bin/solv
201 %defattr(-,root,root)
203 %_libdir/libsolvext.so
208 %defattr(-,root,root)
211 %if %{with perl_binding}
213 %defattr(-,root,root)
217 %if %{with ruby_binding}
219 %defattr(-,root,root)
223 %if %{with python_binding}
224 %files -n python-solv
225 %defattr(-,root,root)