Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
- control: add Uploaders field
- Add qubes-builder integration
- Change compat to 10

Based on original work: https://lists.debian.org/debian-devel/2019/09/msg00218.html
  • Loading branch information
fepitre committed Oct 11, 2020
0 parents commit 25464a2
Show file tree
Hide file tree
Showing 54 changed files with 5,451 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pkgs/
*.tar.gz
debian-pkg/debian/changelog.*
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import:
- source: QubesOS/qubes-continuous-integration:R4.1/travis-base-r4.1.yml
- source: QubesOS/qubes-continuous-integration:R4.1/travis-vms-deb-r4.1.yml
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
DIST ?= fc32
VERSION := $(shell cat version)
REL := $(shell cat rel)

FEDORA_SOURCES := https://src.fedoraproject.org/rpms/libdnf/raw/f$(subst fc,,$(DIST))/f/sources
SRC_FILE := libdnf-$(VERSION).tar.gz

BUILDER_DIR ?= ../..
SRC_DIR ?= qubes-src

DISTFILES_MIRROR ?= https://github.com/rpm-software-management/libdnf/archive/$(VERSION)/libdnf-$(VERSION)/
UNTRUSTED_SUFF := .UNTRUSTED
FETCH_CMD := wget --no-use-server-timestamps -q -O

SHELL := /bin/bash

%: %.sha512
@$(FETCH_CMD) $@$(UNTRUSTED_SUFF) $(DISTFILES_MIRROR)$@
@sha512sum --status -c <(printf "$$(cat $<) -\n") <$@$(UNTRUSTED_SUFF) || \
{ echo "Wrong SHA512 checksum on $@$(UNTRUSTED_SUFF)!"; exit 1; }
@mv $@$(UNTRUSTED_SUFF) $@

.PHONY: get-sources
get-sources: $(SRC_FILE)

.PHONY: verify-sources
verify-sources:
@true

.PHONY: clean
clean:
rm -rf debian/changelog.*
rm -rf pkgs

# This target is generating content locally from upstream project
# 'sources' file. Sanitization is done but it is encouraged to perform
# update of component in non-sensitive environnements to prevent
# any possible local destructions due to shell rendering
.PHONY: update-sources
update-sources:
@$(BUILDER_DIR)/$(SRC_DIR)/builder-rpm/scripts/generate-hashes-from-sources $(FEDORA_SOURCES)
15 changes: 15 additions & 0 deletions Makefile.builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ifeq ($(filter $(DIST), stretch buster),)
DEBIAN_BUILD_DIRS := debian-pkg/debian
SOURCE_COPY_IN := source-debian-copy-in
endif

NO_ARCHIVE := 1

source-debian-copy-in: VERSION = $(shell cat $(ORIG_SRC)/version)
source-debian-copy-in: ORIG_FILE = $(CHROOT_DIR)/$(DIST_SRC)/libdnf_$(VERSION).orig.tar.gz
source-debian-copy-in: SRC_FILE = $(ORIG_SRC)/libdnf-$(VERSION).tar.gz
source-debian-copy-in:
cp -p $(SRC_FILE) $(ORIG_FILE)
tar xvf $(SRC_FILE) -C $(CHROOT_DIR)/$(DIST_SRC)/debian-pkg --strip-components=1

# vim: ft=make
1 change: 1 addition & 0 deletions debian
5 changes: 5 additions & 0 deletions debian-pkg/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libdnf (0.35.3-1) unstable; urgency=medium

* Initial commit

-- Frédéric Pierret (fepitre) <[email protected]> Tue, 29 Sep 2020 17:00:00 +0200
1 change: 1 addition & 0 deletions debian-pkg/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
132 changes: 132 additions & 0 deletions debian-pkg/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
Source: libdnf
Section: libs
Priority: optional
Maintainer: Mihai Moldovan <[email protected]>
Uploaders: Frédéric Pierret <[email protected]>
Build-Depends: debhelper (>= 9~),
dh-python,
python3-dev,
libpython3-dev,
cmake (>= 2.8.5-1~),
pkg-config,
libglib2.0-dev (>= 2.50.3-2.1~),
libsolv0-dev (>= 0.6.36~),
libsolvext0-dev (>= 0.6.36~),
libsolv-tools (>= 0.6.36~),
librpm-dev (>= 4.14.2.1+dfsg1-1.1~),
libzstd-dev,
librepo-dev (>= 1.10.0-1~),
gtk-doc-tools,
python3-sphinx,
check,
python3-nose,
libgpgme-dev,
libssl-dev,
libjson-c-dev,
libmodulemd1-dev (>= 1.6.1-1~),
libsmartcols-dev (>= 2.29.2-1+deb9u1.1~),
libsqlite3-dev,
gettext,
swig,
libcppunit-dev,
doxygen,
python3-breathe,
rpm-common (>= 4.14.2.1+dfsg1-1.1~),
valgrind,
Standards-Version: 4.4.0.1
Homepage: https://github.com/rpm-software-management/libdnf
Vcs-Browser: https://github.com/rpm-software-management/libdnf
Vcs-Git: https://github.com/rpm-software-management/libdnf.git
#Testsuite: autopkgtest-pkg-python

Package: libdnf-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends},
libdnf2 (= ${binary:Version}),
libsolv0-dev (>= 0.6.36~),
libsolvext0-dev (>= 0.6.36~),
Breaks: gir1.2-libdnf-1.0 (<< ${binary:Version})
Description: libdnf - development files
A library providing simplified C and Python APIs to libsolv.
.
This package contains the development header files for the
libdnf library.

Package: libdnf1
Depends: ${misc:Depends},
libdnf2,
Architecture: all
Multi-Arch: foreign
Priority: optional
Section: oldlibs
Description: transitional package
This is a transitional package. It can safely be removed.

Package: libdnf2
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends},
libdnf2-common (= ${source:Version}),
Replaces: libdnf1 (<< 0.35.3-1~)
Breaks: libdnf1 (<< 0.35.3-1~)
Description: libdnf - shared library
A library providing simplified C and Python APIs to libsolv.
.
This package provides the libdnf shared library.

Package: libdnf2-common
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends},
Description: libdnf - common files
A library providing simplified C and Python APIs to libsolv.
.
This package provides common files for the libdnf library.

Package: libdnf-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${misc:Depends},
Description: Documentation for the libdnf library (common documentation)
A library providing simplified C and Python APIs to libsolv.
.
This package installs common documentation for the libdnf
C bindings.

Package: python3-hawkey
Architecture: any
Multi-Arch: no
Section: python
Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
libdnf2 (= ${binary:Version}),
python3-libdnf (= ${binary:Version}),
Suggests: python3-hawkey-docs
Description: Python bindings for the hawkey library (Python 3)
A library providing simplified C and Python APIs to libsolv.
.
This package installs the hawkey library for Python 3.

Package: python3-hawkey-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${sphinxdoc:Depends}, ${misc:Depends},
Description: Python 3 bindings for the hawkey library (common documentation)
A library providing simplified C and Python APIs to libsolv.
.
This package installs common documentation for the hawkey Python
3 bindings.

Package: python3-libdnf
Architecture: any
Multi-Arch: no
Section: python
Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
libdnf2 (= ${binary:Version}),
Description: Python bindings for the libdnf library (Python 3)
A library providing simplified C and Python APIs to libsolv.
.
This package installs the libdnf library for Python 3.
Loading

0 comments on commit 25464a2

Please sign in to comment.