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
92 Development files for libsolv, a new approach to package dependency solving
96 Michael Schroeder <mls@suse.de>
97 Klaus Kaempf <kkaempf@suse.de>
98 Stephan Kulow <coolo@suse.de>
99 Michael Matz <matz@suse.de>
100 Duncan Mac-Vicar P. <dmacvicar@suse.de>
103 Summary: A new approach to package dependency solving
104 Group: Development/Libraries/C and C++
105 Obsoletes: libsatsolver <= 0.0.15
106 Provides: libsatsolver = %{version}-%{release}
107 Requires: gzip bzip2 coreutils
110 A new approach to package dependency solving.
113 Summary: Applications demoing the libsolv library
114 Group: System/Management
116 %if 0%{?fedora_version}
119 %if 0%{?suse_version}
124 Applications demoing the libsolv library.
126 %package -n ruby-solv
127 Summary: Ruby bindings for the libsolv library
128 Group: Development/Languages/Ruby
130 %description -n ruby-solv
131 Ruby bindings for sat solver.
133 %package -n python-solv
135 Summary: Python bindings for the libsolv library
136 Group: Development/Languages/Python
138 %description -n python-solv
139 Python bindings for sat solver.
141 %package -n perl-solv
142 Requires: perl = %{perl_version}
143 Summary: Perl bindings for the libsolv library
144 Group: Development/Languages/Perl
146 %description -n perl-solv
147 Perl bindings for sat solver.
150 %setup -n libsolv-%{version}
153 export CFLAGS="$RPM_OPT_FLAGS"
154 export CXXFLAGS="$CFLAGS"
157 %if 0%{?fedora_version}
158 CMAKE_FLAGS="-DFEDORA=1"
162 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
164 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
165 -DCMAKE_BUILD_TYPE=Release \
166 %{?with_enable_static:-DENABLE_STATIC=1} \
167 %{?with_disable_shared:-DDISABLE_SHARED=1} \
168 %{?with_perl_binding:-DENABLE_PERL=1} \
169 %{?with_python_binding:-DENABLE_PYTHON=1} \
170 %{?with_ruby_binding:-DENABLE_RUBY=1} \
173 make %{?jobs:-j %jobs}
176 make DESTDIR=$RPM_BUILD_ROOT install
177 # we want to leave the .a file untouched
178 export NO_BRP_STRIP_DEBUG=true
181 rm -rf "$RPM_BUILD_ROOT"
183 %files -n libsolv@LIBSOLV_SOVERSION@
184 %defattr(-,root,root)
186 %_libdir/libsolv.so.*
187 %_libdir/libsolvext.so.*
190 %defattr(-,root,root)
191 %exclude /usr/bin/helix2solv
192 %exclude /usr/bin/solv
196 %defattr(-,root,root)
198 %_libdir/libsolvext.so
203 %defattr(-,root,root)
206 %if %{with perl_binding}
208 %defattr(-,root,root)
212 %if %{with ruby_binding}
214 %defattr(-,root,root)
218 %if %{with python_binding}
219 %files -n python-solv
220 %defattr(-,root,root)