mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
spec file fixes on pidora (fc20 on raspberry pi)
Former-commit-id: bf48ee50de
This commit is contained in:
parent
7cf90615c8
commit
298585af02
2 changed files with 27 additions and 8 deletions
10
README.md
10
README.md
|
|
@ -55,7 +55,13 @@ build rpm
|
||||||
if you'd like to build an rpm installer, then
|
if you'd like to build an rpm installer, then
|
||||||
|
|
||||||
* compress sources as voc-1.0.src.tar.bz2
|
* compress sources as voc-1.0.src.tar.bz2
|
||||||
* put them to /usr/src/redhat/SOURCES/ (or other similar location)
|
assuming you in voc directory
|
||||||
* run "rpmbuild -ba voc.spec
|
> cd ..
|
||||||
|
> tar -jcvpf voc-1.0.src.tar.bz2 voc
|
||||||
|
* put them to ~/rpmbuild/SOURCES (on some systems as root to /usr/src/redhat/SOURCES/) or other similar location.
|
||||||
|
> mkdir -p ~/rpmbuild/SOURCES
|
||||||
|
> cp voc-1.0.src.tar.bz2 ~/rpmbuild/SOURCES
|
||||||
|
* cd to voc directory and run
|
||||||
|
> rpmbuild -ba voc.spec
|
||||||
|
|
||||||
this should create voc rpm installers.
|
this should create voc rpm installers.
|
||||||
|
|
|
||||||
23
voc.spec
23
voc.spec
|
|
@ -23,7 +23,7 @@
|
||||||
%define _datadir %{_prefix}/share
|
%define _datadir %{_prefix}/share
|
||||||
%define _includedir %{_prefix}/include
|
%define _includedir %{_prefix}/include
|
||||||
%define _libdir %{_prefix}/lib
|
%define _libdir %{_prefix}/lib
|
||||||
%define packer %(finger -lp `echo "$USER"` | head -n 1 | cut -d: -f 3)
|
%define packer %(finger -lp `echo "$USER"` | head -n 1 | cut -d" " -f2)
|
||||||
|
|
||||||
Name: voc
|
Name: voc
|
||||||
Summary: Oberon-2 compiler
|
Summary: Oberon-2 compiler
|
||||||
|
|
@ -34,13 +34,22 @@ Vendor: D. E. Evans <sinuhe@gnu.org>
|
||||||
Packager: %{packer}
|
Packager: %{packer}
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Source: http://oberon.vishap.am/voc/voc-1.0.src.tar.bz2
|
Source: http://oberon.vishap.am/voc/voc-1.0.src.tar.bz2
|
||||||
|
# this is ~/rpmbuild/SOURCES/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
||||||
|
|
||||||
#BuildArch: i686
|
#BuildArch: i686
|
||||||
#mases this .spec more generic
|
#makes this .spec more generic
|
||||||
BuildArch: %{_arch}
|
#BuildArch: %{_arch}
|
||||||
#BuildRequires: glibc-devel, libX11-devel
|
|
||||||
|
#on modern rhel/fedora/pidora systems
|
||||||
|
BuildRequires: glibc-static, libX11-devel
|
||||||
|
|
||||||
|
#on older systems like rhel4 it'll be
|
||||||
|
#BuildRequires: glibc-devel, xorg-x11-devel
|
||||||
|
|
||||||
|
#basicly we neet /usr/include/X11/Xlib.h and /usr/lib/libc.a
|
||||||
#makes this more portable across different distributions
|
#makes this more portable across different distributions
|
||||||
BuildRequires: /usr/include/X11/Xlib.h /usr/lib/libc.a
|
#BuildRequires: /usr/include/X11/Xlib.h /usr/lib/libc.a
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Vishap's Oberon Compiler (voc) uses a C backend to drive compilation
|
Vishap's Oberon Compiler (voc) uses a C backend to drive compilation
|
||||||
|
|
@ -57,6 +66,10 @@ echo Building %{name}-%{version}-%{release}
|
||||||
if [ %{_arch} == "i386" ] || [ %{_arch} == "i686" ]
|
if [ %{_arch} == "i386" ] || [ %{_arch} == "i686" ]
|
||||||
then
|
then
|
||||||
%{__make} -f makefile.linux.gcc.x86
|
%{__make} -f makefile.linux.gcc.x86
|
||||||
|
elif [ %{_arch} == "arm" ] #rpmbuild on pidora/raspberry identifies arch as arm
|
||||||
|
then
|
||||||
|
%{__make} -f makefile.linux.gcc.armv6j_hardfp
|
||||||
|
|
||||||
elif [ %{_arch} == "armv6hl" ]
|
elif [ %{_arch} == "armv6hl" ]
|
||||||
then
|
then
|
||||||
%{__make} -f makefile.linux.gcc.armv6j_hardfp
|
%{__make} -f makefile.linux.gcc.armv6j_hardfp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue