I just tried to compile with LTIB. I downloaded postgresql-9.3.5.tar.bz2 from their site and put it into rpm/SOURCES, and created in dist/lfs-5.1 directory postgresql with file postgresql.spec in it. File contains:
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : PostgreSQL for arm
Name : postgresql
Version : 9.3.5
Release : 1
License :
Vendor : PostgreSQL
Packager :
Group : System Environment/Libraries
URL : http://
Source : %{name}-%{version}.tar.bz2
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
After ./ltib -p postgresql.spec I get errors:
checking for zic... no
configure: error:
When cross-compiling, either use the option --with-system-tzdata to use
existing time-zone data, or set the environment variable ZIC to a zic
program to use during the build.
error: Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.2856 (%build)
I think, my .spec file is bad, could you help me to create correct .spec? Or may be give an advise about it?