This repository has been archived by the owner on Aug 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debbuild.spec
63 lines (53 loc) · 1.99 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
# $Id$
# 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
%define release %{relnum}.%{dist}
Summary: Build Debian-compatible .deb packages from RPM .spec files
Name: debbuild
Version: #VERSION#
Release: %{release}
Source: https://secure.deepnet.cx/releases/debbuild/debbuild-%{version}.tar.gz
Group: Development/Tools
License: GPLv2+
Packager: Kris Deugau <[email protected]>
Requires: perl, build-essential, pax, fakeroot, bash
%if %{_vendor} == "debbuild"
Recommends: patch, bzip2, xz-utils
# For setting DEB_HOST_ARCH
Recommends: dpkg-architecture
Suggests: rpm, subversion
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
%description
debbuild 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. Perl modules
should be handled via CPAN+dh-make-perl instead as it's simpler
than even tweaking a .spec template.
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
# nothing to do here
%install
# Steps to install to a temporary location for packaging
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Fill in the pathnames to be packaged here
%files
%{_bindir}/*
%{_mandir}/man8/*
%changelog
* 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