]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - libsolv/libsolv.nm
binutils: Update to 2.23.51.0.3.
[people/arne_f/ipfire-3.x.git] / libsolv / libsolv.nm
CommitLineData
1fc81377 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
1fc81377
MT
4###############################################################################
5
802ea3af
MT
6name = libsolv
7version = 0.0.0
5cc0c013 8git_ver = c02d759
bc83f180 9release = 6.git%{git_ver}
1fc81377 10
802ea3af
MT
11maintainer = Michael Tremer <michael.tremer@ipfire.org>
12groups = System/Libraries
13url = https://github.com/openSUSE/libsolv
14license = BSD
15summary = A library for solving package dependencies.
1fc81377 16
802ea3af 17description
1fc81377
MT
18 A library for solving package dependencies by using a SAT
19 resolver written in C++.
802ea3af
MT
20end
21
22thisapp = %{name}-%{version}-%{git_ver}
23
24source_dl =
1fc81377 25
802ea3af
MT
26build
27 requires
28 gcc-c++
bc83f180 29 cmake >= 2.8.4-2
802ea3af
MT
30 db4-devel
31 expat-devel
32 zlib-devel
33 end
1fc81377 34
802ea3af 35 prepare_cmds
802ea3af
MT
36 # Make sure that libsatsolverext is linked properly to all needed
37 # libraries.
38 echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \${EXPAT_LIBRARY} \${ZLIB_LIBRARY})" \
39 >> ext/CMakeLists.txt
802ea3af 40 end
1fc81377 41
802ea3af
MT
42 build
43 mkdir build
bc83f180 44 cd build && %{cmake} .. \
38d5b746
MT
45 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
46 -DENABLE_PERL=0 \
47 -DENABLE_PYTHON=0 \
48 -DENABLE_RUBY=0
802ea3af
MT
49 make %{PARALELLISMFLAGS}
50 end
1fc81377 51
802ea3af
MT
52 install
53 cd build && make install DESTDIR=%{BUILDROOT}
38d5b746 54 rm -vf %{BUILDROOT}%{bindir}/{,test}solv
802ea3af
MT
55 end
56end
1fc81377 57
802ea3af
MT
58packages
59 package %{name}
1f9bc2f0 60
38d5b746
MT
61 package %{name}-tools
62 summary = Tools to manipulate .solv files.
63
64 requires
65 bzip2
66 coreutils
67 gzip
68 end
69
70 files
71 %{bindir}
72 end
73 end
74
802ea3af
MT
75 package %{name}-devel
76 template DEVEL
77 end
1f9bc2f0
MT
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
802ea3af 82end