I know how to package rpm
for RHEL, but have little experience of deb
packaging.
I'd like to package other OS's library and headers for making cross-compiler, so there won't need any compilation process. However, deb
packaging process forces to write some kind of Makefile
.
How can I make a deb package for a precompiled files? I won't distribute it except for coworkers, so I dont' need all kind of complex debian packaging rules.
Here is for my rpm
.spec
file. It is almost trivial..
%define os some-os
%define rootname sysroot-%{os}
%global debug_package %{nil}
Name: sysroot-some-os
License: UNLICENSED
Version: 0.1
Release: 1
Source: sysroot-some-os.tar.bz2
Summary: Sysroot from some os
BuildArch: noarch
BuildRequires: bzip2
%description
Sysroot from some os
%prep
%setup -q -n %{rootname}
%install
mkdir -p ${RPM_BUILD_ROOT}/opt/cross/%{os}/sysroot
cp -r * ${RPM_BUILD_ROOT}/opt/cross/%{os}/sysroot
chmod -R -x ${RPM_BUILD_ROOT}/opt/cross/%{os}/sysroot
%files
/opt/cross/%{os}/sysroot
%changelog
blabla..
EDIT:
maybe one can think debian/install
solve this problem, but as you can see, this package has a lot of files and writing every file is not a good idea. (Look at .spec
file.)
rpm
.spec
file, however that answers dont. – Byoungchan Lee Mar 24 '17 at 05:05