-
Notifications
You must be signed in to change notification settings - Fork 4
/
debbuild-macros.spec
133 lines (111 loc) · 3.87 KB
/
debbuild-macros.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
%{!?_debconfigdir: %global _debconfigdir %{_prefix}/lib/debbuild}
%{!?_debmacrodir: %global _debmacrodir %{_debconfigdir}/macros.d}
Name: debbuild-macros
Version: 0.0.7
Release: 0%{?dist}
Summary: Various macros for extending debbuild functionality
%if "%{_vendor}" == "debbuild"
Group: devel
Packager: debbuild developers <https://github.com/debbuild/debbuild>
%else
Group: Development/Tools%{?suse_version:/Building}
%endif
License: MIT and LGPL-2.1-or-later and Apache-2.0 and PSF-2.0 and GPL-2.0-or-later
URL: https://github.com/debbuild/debbuild-macros
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Requires: debbuild >= 19.11.0
%if (0%{?ubuntu} && 0%{?ubuntu} < 1604) || (0%{?debian} && 0%{?debian} < 8)
Requires: realpath
%endif
# Provides debpkg macros
Provides: debbuild-macros-debpkg
# Provides cmake macros
Provides: debbuild-macros-cmake
Provides: cmake-deb-macros
# Provides mga macros
Provides: debbuild-macros-mga-mkrel
Provides: debbuild-macros-mga-mklibname
Provides: mga-deb-macros
# Provides python macros
Provides: debbuild-macros-python
Provides: debbuild-macros-python2
Provides: debbuild-macros-python3
Provides: python-deb-macros
Provides: python2-deb-macros
Provides: python3-deb-macros
# Provides perl macros
Provides: debbuild-macros-perl
Provides: perl-deb-macros
# Provides ruby macros
Provides: debbuild-macros-ruby
Provides: ruby-deb-macros
# Provides golang macros
Provides: debbuild-macros-golang
Provides: go-deb-macros
Provides: golang-deb-macros
# Provides apache httpd macros
Provides: debbuild-macros-apache2
Provides: apache2-deb-macros
# Provides gpgverify macros
Provides: debbuild-macros-gpgverify
# Provides vpath macros
Provides: debbuild-macros-vpath
# Provides ninja macros
Provides: debbuild-macros-ninja
Provides: ninja-deb-macros
# Provides meson macros
Provides: debbuild-macros-meson
Provides: meson-deb-macros
# Provides AppArmor macros
Provides: debbuild-macros-apparmor
Provides: apparmor-deb-macros
# Provides firewalld macros
Provides: debbuild-macros-firewalld
Provides: firewalld-deb-macros
%if 0%{?debian} >= 8 || 0%{?ubuntu} >= 1504
# Provides systemd macros
Provides: debbuild-macros-systemd
Provides: systemd-deb-macros
%endif
BuildArch: noarch
%description
This package contains a set of RPM macros for debbuild,
designed in such a manner that it is trivial to port RPM
packaging to build Debian packages that are mostly in-line
with Debian Policy.
%prep
%autosetup -p1
%build
# Nothing to build
%install
mkdir -p %{buildroot}%{_debconfigdir}
cp -av gpgverify %{buildroot}%{_debconfigdir}
cp -av cmake/cmake-* %{buildroot}%{_debconfigdir}
cp -av python/pathfix.py %{buildroot}%{_debconfigdir}
cp -av sysusers.generate-pre.sh %{buildroot}%{_debconfigdir}
mkdir -p %{buildroot}%{_debmacrodir}
cp -av macros.* %{buildroot}%{_debmacrodir}
%if (0%{?debian} && 0%{?debian} < 8) || (0%{?ubuntu} && 0%{?ubuntu} < 1504)
rm -fv %{buildroot}%{_debconfigdir}/sysusers.generate-pre.sh
rm -fv %{buildroot}%{_debmacrodir}/macros.systemd
rm -fv %{buildroot}%{_debmacrodir}/macros.sysusers
%endif
%files
%doc README.md
%license LICENSE*
%{_debconfigdir}/*
%changelog
* Fri Jan 20 2023 Neal Gompa <[email protected]> - 0.0.7-0
- New release
* Tue Aug 10 2021 Neal Gompa <[email protected]> - 0.0.6-0
- New release
* Fri Jul 09 2021 Neal Gompa <[email protected]> - 0.0.5-0
- New release
* Thu Sep 17 2020 Neal Gompa <[email protected]> - 0.0.4-0
- New release
* Thu Jul 30 2020 Neal Gompa <[email protected]> - 0.0.3-0
- New release
* Fri Jan 10 2020 Neal Gompa <[email protected]> - 0.0.2-0
- New release
* Mon Nov 25 2019 Neal Gompa <[email protected]> - 0.0.1-0
- Initial release