]>
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 | |
5cc0c013 | 8 | git_ver = c02d759 |
38d5b746 | 9 | release = 5.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 | ||
22 | thisapp = %{name}-%{version}-%{git_ver} | |
23 | ||
24 | source_dl = | |
1fc81377 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
28 | gcc-c++ | |
29 | cmake | |
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 | |
5cc0c013 | 44 | cd build && cmake .. \ |
802ea3af | 45 | -DCMAKE_INSTALL_PREFIX=/usr \ |
38d5b746 MT |
46 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
47 | -DENABLE_PERL=0 \ | |
48 | -DENABLE_PYTHON=0 \ | |
49 | -DENABLE_RUBY=0 | |
802ea3af MT |
50 | make %{PARALELLISMFLAGS} |
51 | end | |
1fc81377 | 52 | |
802ea3af MT |
53 | install |
54 | cd build && make install DESTDIR=%{BUILDROOT} | |
38d5b746 | 55 | rm -vf %{BUILDROOT}%{bindir}/{,test}solv |
802ea3af MT |
56 | end |
57 | end | |
1fc81377 | 58 | |
802ea3af MT |
59 | packages |
60 | package %{name} | |
1f9bc2f0 | 61 | |
38d5b746 MT |
62 | package %{name}-tools |
63 | summary = Tools to manipulate .solv files. | |
64 | ||
65 | requires | |
66 | bzip2 | |
67 | coreutils | |
68 | gzip | |
69 | end | |
70 | ||
71 | files | |
72 | %{bindir} | |
73 | end | |
74 | end | |
75 | ||
802ea3af MT |
76 | package %{name}-devel |
77 | template DEVEL | |
78 | end | |
1f9bc2f0 MT |
79 | |
80 | package %{name}-debuginfo | |
81 | template DEBUGINFO | |
82 | end | |
802ea3af | 83 | end |