1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 release = 3.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 # Remove -Werror from gcc command line.
37 find . -name CMakeLists.txt | xargs sed -e "s/-Werror//g" -i
39 # Do not build bindings, examples and tools.
40 sed "/bindings/d" -i CMakeLists.txt
41 sed "/examples/d" -i CMakeLists.txt
42 sed "/tools/d" -i CMakeLists.txt
44 # Make sure that libsatsolverext is linked properly to all needed
46 echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \${EXPAT_LIBRARY} \${ZLIB_LIBRARY})" \
49 # Remove the RPM stuff when we build with -DFEDORA=1 because we
51 sed -e "s/DEBIAN/FEDORA/g" -i ext/CMakeLists.txt
56 cd build && cmake .. -DFEDORA=1 \
57 -DCMAKE_INSTALL_PREFIX=/usr \
58 -DCMAKE_BUILD_TYPE=Release \
60 make %{PARALELLISMFLAGS}
64 cd build && make install DESTDIR=%{BUILDROOT}
66 # Remove unusable header.
67 rm -vf %{BUILDROOT}/usr/include/solv/repo_rpmdb.h
78 package %{name}-debuginfo