forked from debbuild/debbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debbuild.spec
124 lines (98 loc) · 4.11 KB
/
debbuild.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
# $Id: debbuild.spec 201 2015-08-03 21:36:21Z kdeugau $
# Refer to the following for more info on .spec file syntax:
# http://www.rpm.org/max-rpm/
# http://www.rpm.org/max-rpm-snapshot/ (Updated version of above)
# http://docs.fedoraproject.org/drafts/rpm-guide-en/
# More links may be available from http://www.rpm.org
Name: debbuild
Summary: Build Debian-compatible .deb packages from RPM .spec files
Version: 19.5.0
Source: https://github.com/ascherer/debbuild/archive/%{name}-%{version}.tar.gz
URL: https://github.com/ascherer/debbuild
%if %{_vendor} == "debbuild"
Group: devel
%else
Group: Development/Tools/Building
%global dist ubuntu18.04
%define __msgfmt /usr/bin/msgfmt
%define __pod2man /usr/bin/pod2man
%endif
License: GPLv2+
Packager: Andreas Scherer <https://ascherer.github.io/>
Release: ascherer.%{dist}
Requires: dpkg-dev, perl, fakeroot, lsb-release
Requires: gettext, liblocale-gettext-perl
%if %{_vendor} == "debbuild"
Recommends: bzip2, gzip, xz-utils, unzip, zip, zstd
Recommends: git, patch, pax, quilt
Recommends: dpkg-sig
Suggests: rpm
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
%description
%{name} attempts to build Debian-friendly semi-native packages from
RPM spec files, RPM-friendly tarballs, and RPM source packages
(.src.rpm files). It accepts most of the options rpmbuild does, and
should be able to interpret most spec files usefully.
Note that patch is not strictly required unless you have .spec files
with %%patch directives, and RPM is not required unless you wish to
rebuild .src.rpm source packages as .deb binary packages.
%prep
# Steps to unpack and patch source as needed
%setup -q
%build
# Transfer $VERSION into the live system
%{__perl} -pe "s/\@VERSION\@/%{version}/" -i debbuild
%install
# Steps to install to a temporary location for packaging
%{__rm} -rf %{buildroot}
%{__install} -d %{buildroot}%{_bindir}
%{__install} debbuild %{buildroot}%{_bindir}
%{__install} -d %{buildroot}%{_libdir}/%{name}
%{__install} -m 644 macros/macros.in %{buildroot}%{_libdir}/%{name}/macros
%{__install} -m 644 config/debrc %{buildroot}%{_libdir}/%{name}
%{__install} -d %{buildroot}%{_sysconfdir}/%{name}
%{__install} -m 644 macros/macros.sysutils %{buildroot}%{_sysconfdir}/%{name}
%{__install} -m 644 macros/macros.texlive %{buildroot}%{_sysconfdir}/%{name}
%{__install} -m 644 macros/platform.in %{buildroot}%{_sysconfdir}/%{name}/macros
%{__install} -d %{buildroot}%{_mandir}/man8
%{__pod2man} --utf8 --center="DeepNet Dev Tools" --section 8 \
--release="Release %{version}" debbuild \
%{buildroot}%{_mandir}/man8/debbuild.8
%{__install} -d %{buildroot}%{_datadir}/locale/de/LC_MESSAGES
%{__msgfmt} po/de/debbuild.po -o %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/debbuild.mo
%files
# Fill in the pathnames to be packaged here
%{_bindir}/*
%{_mandir}/man8/*
%{_libdir}/%{name}/debrc
%{_libdir}/%{name}/macros
%{_sysconfdir}/%{name}/macros
%{_sysconfdir}/%{name}/macros.*
%{_datadir}/locale/de/LC_MESSAGES/debbuild.mo
%changelog
* Fri Feb 01 2019 Andreas Scherer <https://ascherer.github.io/>
- Replace debsigs with dpkg-sig for package signing
* Sun Nov 11 2018 Andreas Scherer <https://ascherer.github.io/>
- Install German language pack
* Sun Feb 19 2017 Andreas Scherer <https://ascherer.github.io/>
- Set up infrastructure for signing packages
* Sat Dec 3 2016 Neal Gompa <[email protected]>
- Integrate platform detection into macros
- Remove unnecessary scriptlet
* Fri Oct 28 2016 Neal Gompa <[email protected]>
- Add lsb-release as requirement
* Sat Dec 12 2015 Andreas Scherer <https://ascherer.github.io/>
- Centrally control and distribute the 'version' number
* Fri Dec 4 2015 Neal Gompa <[email protected]>
- Update spec and host/build auto-configure
* Tue Nov 17 2015 Andreas Scherer <[email protected]>
- Auto-configure host/build environment
* Sat Nov 14 2015 Andreas Scherer <[email protected]>
- Add debbuild's own set of macros
* Sun Jul 19 2015 Kris Deugau <[email protected]>
- Remove the stack of %if's determining the Debian dist; use the recently
refined %{dist} instead
* Thu Feb 28 2008 Kris Deugau <[email protected]> -1
- Initial package