gnu: Add drpm.
[jackhill/guix/guix.git] / gnu / packages / rpm.scm
CommitLineData
4613a994
MC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages rpm)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix download)
22 #:use-module (guix git-download)
23 #:use-module (guix packages)
24 #:use-module (guix build-system cmake)
25 #:use-module (gnu packages check)
26 #:use-module (gnu packages compression)
27 #:use-module (gnu packages package-management)
28 #:use-module (gnu packages pkg-config)
29 #:use-module (gnu packages popt)
30 #:use-module (gnu packages tls))
31
32(define-public drpm
33 (package
34 (name "drpm")
35 (version "0.5.0")
36 (source (origin
37 (method git-fetch)
38 (uri (git-reference
39 (url "https://github.com/rpm-software-management/drpm")
40 (commit version)))
41 (file-name (git-file-name name version))
42 (sha256
43 (base32
44 "0m269nl8s31yjyz7kknv4jl9mx12xjpx2ly6wf66zs5613m4rj1z"))))
45 (build-system cmake-build-system)
46 (native-inputs
47 `(("cmocka" ,cmocka)
48 ("pkg-config" ,pkg-config)))
49 (inputs
50 `(("bzip2" ,bzip2)
51 ("lzlib" ,lzlib)
52 ("openssl" ,openssl)
53 ("popt" ,popt)
54 ("rpm" ,rpm)
55 ("xz" ,xz)
56 ("zlib" ,zlib)
57 ("zstd" ,zstd "lib")))
58 (home-page "https://github.com/rpm-software-management/drpm")
59 (synopsis "Delta RPM library")
60 (description "This package provides a library for making, reading and
61applying deltarpms, compatible with the original deltarpm packages.")
62 (license license:lgpl2.1+)))