]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - libsolv/libsolv.nm
libsolv: Update to 0.6.24
[people/pmueller/ipfire-3.x.git] / libsolv / libsolv.nm
index 2750d22e0772af14ab3978587331b5e370701249..1841203ac2e1cf3fb5f0aad23bdc8ca5255a82df 100644 (file)
@@ -4,73 +4,68 @@
 ###############################################################################
 
 name       = libsolv
-version    = 0.0.0
-git_ver    = 0db9d7f
-release    = 3.git%{git_ver}
+version    = 0.6.24
+release    = 1
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Libraries
 url        = https://github.com/openSUSE/libsolv
 license    = BSD
-summary    = A library for solving package dependencies.
+summary    = A library for solving package dependencies
 
 description
        A library for solving package dependencies by using a SAT
        resolver written in C++.
 end
 
-thisapp        = %{name}-%{version}-%{git_ver}
-
-source_dl  =
+source_dl  = https://github.com/openSUSE/libsolv/archive/%{version}.tar.gz#/
 
 build
        requires
                gcc-c++
-               cmake
-               db4-devel
+               cmake >= 2.8.4-2
                expat-devel
+               gettext-devel
+               xz-devel
                zlib-devel
        end
 
-       prepare_cmds
-               # Remove -Werror from gcc command line.
-               find . -name CMakeLists.txt | xargs sed -e "s/-Werror//g" -i
-
-               # Do not build bindings, examples and tools.
-               sed "/bindings/d" -i CMakeLists.txt
-               sed "/examples/d" -i CMakeLists.txt
-               sed "/tools/d" -i CMakeLists.txt
-
-               # Make sure that libsatsolverext is linked properly to all needed
-               # libraries.
-               echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \${EXPAT_LIBRARY} \${ZLIB_LIBRARY})" \
-                       >> ext/CMakeLists.txt
-
-               # Remove the RPM stuff when we build with -DFEDORA=1 because we
-               # do not support RPM.
-               sed -e "s/DEBIAN/FEDORA/g" -i ext/CMakeLists.txt
-       end
-
        build
                mkdir build
-               cd build && cmake .. -DFEDORA=1 \
-                       -DCMAKE_INSTALL_PREFIX=/usr \
-                       -DCMAKE_BUILD_TYPE=Release \
-                       -DCMAKE_SKIP_RPATH=1
-               make %{PARALELLISMFLAGS}
+               cd build && %{cmake} .. \
+                       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+                       -DENABLE_LZMA_COMPRESSION=1 \
+                       -DENABLE_PERL=0 \
+                       -DENABLE_PYTHON=0 \
+                       -DENABLE_RUBY=0 \
+                       -DMULTI_SEMANTICS=1
+
+               make %{PARALLELISMFLAGS}
        end
 
        install
                cd build && make install DESTDIR=%{BUILDROOT}
-
-               # Remove unusable header.
-               rm -vf %{BUILDROOT}/usr/include/solv/repo_rpmdb.h
+               rm -vf %{BUILDROOT}%{bindir}/{,test}solv
        end
 end
 
 packages
        package %{name}
 
+       package %{name}-tools
+               summary = Tools to manipulate .solv files.
+
+               requires
+                       bzip2
+                       coreutils
+                       gzip
+               end
+
+               files
+                       %{bindir}
+               end
+       end
+
        package %{name}-devel
                template DEVEL
        end