]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = libsolv |
2e358974 MT |
7 | version = 0.4.1 |
8 | git_ver = bcedc98 | |
06681fdb | 9 | release = 2.git%{git_ver} |
1fc81377 | 10 | |
802ea3af MT |
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. | |
1fc81377 | 16 | |
802ea3af | 17 | description |
1fc81377 MT |
18 | A library for solving package dependencies by using a SAT |
19 | resolver written in C++. | |
802ea3af MT |
20 | end |
21 | ||
74318610 MT |
22 | thisapp = %{name}-%{git_ver} |
23 | sources = %{thisapp}.tar.xz | |
1fc81377 | 24 | |
802ea3af MT |
25 | build |
26 | requires | |
27 | gcc-c++ | |
bc83f180 | 28 | cmake >= 2.8.4-2 |
802ea3af MT |
29 | expat-devel |
30 | zlib-devel | |
31 | end | |
1fc81377 | 32 | |
74318610 | 33 | DIR_APP = %{DIR_SRC}/%{name} |
1fc81377 | 34 | |
802ea3af MT |
35 | build |
36 | mkdir build | |
bc83f180 | 37 | cd build && %{cmake} .. \ |
38d5b746 MT |
38 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
39 | -DENABLE_PERL=0 \ | |
40 | -DENABLE_PYTHON=0 \ | |
2e358974 MT |
41 | -DENABLE_RUBY=0 \ |
42 | -DMULTI_SEMANTICS=1 | |
43 | ||
1429c856 | 44 | make %{PARALLELISMFLAGS} |
802ea3af | 45 | end |
1fc81377 | 46 | |
802ea3af MT |
47 | install |
48 | cd build && make install DESTDIR=%{BUILDROOT} | |
38d5b746 | 49 | rm -vf %{BUILDROOT}%{bindir}/{,test}solv |
802ea3af MT |
50 | end |
51 | end | |
1fc81377 | 52 | |
802ea3af MT |
53 | packages |
54 | package %{name} | |
1f9bc2f0 | 55 | |
38d5b746 MT |
56 | package %{name}-tools |
57 | summary = Tools to manipulate .solv files. | |
58 | ||
59 | requires | |
60 | bzip2 | |
61 | coreutils | |
62 | gzip | |
63 | end | |
64 | ||
65 | files | |
66 | %{bindir} | |
67 | end | |
68 | end | |
69 | ||
802ea3af MT |
70 | package %{name}-devel |
71 | template DEVEL | |
72 | end | |
1f9bc2f0 MT |
73 | |
74 | package %{name}-debuginfo | |
75 | template DEBUGINFO | |
76 | end | |
802ea3af | 77 | end |