]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - libsolv/libsolv.nm
7b8413421e659f6ae9550cebc20546ca20a42863
[people/arne_f/ipfire-3.x.git] / libsolv / libsolv.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libsolv
7 version = 0.0.0
8 git_ver = c02d759
9 release = 6.git%{git_ver}
10
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = System/Libraries
13 url = https://github.com/openSUSE/libsolv
14 license = BSD
15 summary = A library for solving package dependencies.
16
17 description
18 A library for solving package dependencies by using a SAT
19 resolver written in C++.
20 end
21
22 thisapp = %{name}-%{version}-%{git_ver}
23
24 source_dl =
25
26 build
27 requires
28 gcc-c++
29 cmake >= 2.8.4-2
30 db4-devel
31 expat-devel
32 zlib-devel
33 end
34
35 prepare_cmds
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
40 end
41
42 build
43 mkdir build
44 cd build && %{cmake} .. \
45 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
46 -DENABLE_PERL=0 \
47 -DENABLE_PYTHON=0 \
48 -DENABLE_RUBY=0
49 make %{PARALELLISMFLAGS}
50 end
51
52 install
53 cd build && make install DESTDIR=%{BUILDROOT}
54 rm -vf %{BUILDROOT}%{bindir}/{,test}solv
55 end
56 end
57
58 packages
59 package %{name}
60
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
75 package %{name}-devel
76 template DEVEL
77 end
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82 end