Skip to content

Commit

Permalink
update package templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bkelly16 committed Nov 15, 2024
1 parent fff74a7 commit a6a6108
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
22 changes: 11 additions & 11 deletions packaging/rocky-el9/main.spec → packaging/rocky-el9/main.spec.j2
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
%global debug_package %{nil}
%define _build_id_links none

Name: ::package_name::
Version: ::package_version::
Release: ::package_build_version::%{?dist}
Summary: ::package_description_short::
License: ::package_licence::
URL: ::package_url::
Name: {{ name }}
Version: {{ version }}
Release: {{ build_number }}%{?dist}
Summary: {{ description }}
License: {{ license }}
URL: {{ git_url }}
Source0: %{name}-%{version}.tar.gz
BuildArch: ::package_architecture_el::
Requires: ::package_dependencies_el::
BuildArch: {{ architecture.rocky }}
Requires: {{ dependencies.rocky_common | join(',') }}

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Provides: %{name} = %{version}-%{release}
Conflicts: %{name}-1.7

%description
::package_title::
::package_description_long::
{{ title }}
{{ description }}

%prep
%setup -q

%build

%install
make DESTDIR=%{buildroot} TOOLS_VERSION="%{version}-::package_build_version::" install
make DESTDIR=%{buildroot} TOOLS_VERSION="%{version}-{{ version }}" install

%postun
if [ $1 == 0 ];then
Expand Down
12 changes: 0 additions & 12 deletions packaging/ubuntu-jammy/control

This file was deleted.

13 changes: 13 additions & 0 deletions packaging/ubuntu-jammy/control.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: "{{ name }}""
Section: utils
Priority: optional
Maintainer: "{{ author }}"
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.4.1
Homepage: "{{ git_url }}"
Vcs-Git: "{{ git_url }}"

Package: "{{ name }}"
Architecture: "{{ architecture.ubuntu }}"
Depends: "{{ dependancies.ubuntu_common | join{',') }}"
Description: "{{ description }}""
8 changes: 4 additions & 4 deletions packaging/ubuntu-jammy/copyright
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ::package_name::
Upstream-Contact: ::package_author::
Source: ::package_url::
Upstream-Name: "{{ name }}"
Upstream-Contact: "{{ author }}"
Source: "{{ git_url }}"

Files: *
Copyright: 2021 Mark Hooper <mhooper@45drives.com>
Copyright: 2024 45Drives Team <info@45drives.com>
License: GPL-3.0+

License: GPL-3.0+
Expand Down

0 comments on commit a6a6108

Please sign in to comment.