1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 release = 2.git%{git_ver}
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = System/Libraries
13 url = https://github.com/openSUSE/libsolv
15 summary = A library for solving package dependencies.
18 A library for solving package dependencies by using a SAT
19 resolver written in C++.
22 thisapp = %{name}-%{version}-%{git_ver}
36 # Do not build bindings, examples and tools.
37 sed "/bindings/d" -i CMakeLists.txt
38 sed "/examples/d" -i CMakeLists.txt
39 sed "/tools/d" -i CMakeLists.txt
41 # Make sure that libsatsolverext is linked properly to all needed
43 echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \${EXPAT_LIBRARY} \${ZLIB_LIBRARY})" \
46 # Remove the RPM stuff when we build with -DFEDORA=1 because we
48 sed -e "s/DEBIAN/FEDORA/g" -i ext/CMakeLists.txt
53 cd build && cmake .. -DFEDORA=1 \
54 -DCMAKE_INSTALL_PREFIX=/usr \
55 -DCMAKE_BUILD_TYPE=Release \
57 make %{PARALELLISMFLAGS}
61 cd build && make install DESTDIR=%{BUILDROOT}
63 # Remove unusable header.
64 rm -vf %{BUILDROOT}/usr/include/solv/repo_rpmdb.h