]>
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 MT |
6 | name = libsolv |
7 | version = 0.0.0 | |
74318610 MT |
8 | git_ver = f663ca2 |
9 | release = 7.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 | db4-devel |
30 | expat-devel | |
31 | zlib-devel | |
32 | end | |
1fc81377 | 33 | |
74318610 | 34 | DIR_APP = %{DIR_SRC}/%{name} |
1fc81377 | 35 | |
802ea3af MT |
36 | build |
37 | mkdir build | |
bc83f180 | 38 | cd build && %{cmake} .. \ |
38d5b746 MT |
39 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
40 | -DENABLE_PERL=0 \ | |
41 | -DENABLE_PYTHON=0 \ | |
42 | -DENABLE_RUBY=0 | |
1429c856 | 43 | make %{PARALLELISMFLAGS} |
802ea3af | 44 | end |
1fc81377 | 45 | |
802ea3af MT |
46 | install |
47 | cd build && make install DESTDIR=%{BUILDROOT} | |
38d5b746 | 48 | rm -vf %{BUILDROOT}%{bindir}/{,test}solv |
802ea3af MT |
49 | end |
50 | end | |
1fc81377 | 51 | |
802ea3af MT |
52 | packages |
53 | package %{name} | |
1f9bc2f0 | 54 | |
38d5b746 MT |
55 | package %{name}-tools |
56 | summary = Tools to manipulate .solv files. | |
57 | ||
58 | requires | |
59 | bzip2 | |
60 | coreutils | |
61 | gzip | |
62 | end | |
63 | ||
64 | files | |
65 | %{bindir} | |
66 | end | |
67 | end | |
68 | ||
802ea3af MT |
69 | package %{name}-devel |
70 | template DEVEL | |
71 | end | |
1f9bc2f0 MT |
72 | |
73 | package %{name}-debuginfo | |
74 | template DEBUGINFO | |
75 | end | |
802ea3af | 76 | end |