source: rtems/contrib/rtemsrpms/rtems.spec.in @ 06911e0

4.115
Last change on this file since 06911e0 was 06911e0, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 21, 2010 at 10:56:35 PM

2010-06-21 Joel Sherrill <joel.sherrill@…>

  • rtems.spec.in: Remove more ITRON references.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2# Please send bugfixes or comments to
3#       http://www.rtems.com/cgi-bin/gnatweb.pl
4# or    mailto:rtems-bugs@rtems.com
5#
6
7%define _prefix                 @PREFIX@
8%define _infodir                %{_prefix}/info
9%define _mandir                 %{_prefix}/man
10
11%ifos cygwin cygwin32 mingw mingw32
12%define _exeext .exe
13%else
14%define _exeext %{nil}
15%endif
16
17%define rtems_target    %{_target}
18
19%define rtems_api       @RTEMS_API@
20%define rpmprefix       @RPMPREFIX@
21%define rtems_pkgvers   @RTEMS_RELEASE@
22%define rtems_version   %{expand:%(echo @RTEMS_VERSION@ | sed -e 's,-.*,,')}
23%define rtems_rpmvers   %{expand:%(echo @RTEMS_VERSION@ | tr - _ )}
24
25%define rtems_bsps      @RTEMS_BSP@
26
27%define rtems_bootstrap @RTEMS_BOOTSTRAP@
28
29Name:           %{rpmprefix}%{rtems_target}
30Summary:        RTEMS %{rtems_api} %{rtems_target}
31
32Group:          Development/Tools
33Version:        %{rtems_rpmvers}
34Release:        %{rtems_version}%{?dist}
35License:        GPL (modified)
36URL:            http://www.rtems.org/
37BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
38
39%define _use_internal_dependency_generator 0
40
41BuildRequires:  texinfo >= 4.2
42BuildRequires:  %{rpmprefix}%{rtems_target}-binutils
43BuildRequires:  %{rpmprefix}%{rtems_target}-newlib
44BuildRequires:  %{rpmprefix}%{rtems_target}-gcc
45
46Source0:        ftp://ftp.rtems.org/pub/rtems/%{rtems_api}/rtems-%{rtems_api}-%{rtems_version}.tar.bz2
47%{?_without_sources:NoSource:   0}
48
49%description
50RTEMS Libraries for %{rtems_target}.
51
52%prep
53%setup -c -T -n %{name}-%{version}
54
55%setup -q -T -D -n %{name}-%{version} -a0
56%{?PATCH0:%patch0 -p0}
57
58%build
59  if [ "%{rtems_bootstrap}" = "yes" ]; then
60   cd rtems-%{rtems_version}
61   ./bootstrap
62   cd ..
63  fi
64  mkdir -p build
65  if [ "x%{rtems_bsps}" = "x" ]; then
66   optargs="$optargs --disable-rtemsbsp"
67  else
68   optargs="$optargs --enable-rtemsbsp=\"%{rtems_bsps}\""
69  fi
70  cd build
71  ../rtems-%{rtems_version}/configure \
72    --prefix=%{_prefix} \
73    --target=%rtems_target \
74    --verbose \
75    --enable-maintainer-mode \
76    --disable-multiprocessing \
77    --enable-cxx \
78    --enable-rdbg \
79    --enable-posix \
80    --enable-networking \
81    --enable-tests=samples \
82    --disable-deprecated \
83    --disable-ada \
84    --disable-expada \
85    --enable-multilib \
86    $optargs
87  make all
88  cd ..
89
90%install
91  export PATH="%{_bindir}:${PATH}"
92  rm -rf $RPM_BUILD_ROOT
93
94  cd build
95
96  make DESTDIR=$RPM_BUILD_ROOT install
97  cd ..
98
99%clean
100  rm -rf $RPM_BUILD_ROOT
101
102%description
103RTEMS operating system for %{rtems_target}
104
105%files
106%defattr(-,root,root)
107
108# broken on the avr
109#%config %{_prefix}/lib/pkgconfig
110%config %{_prefix}/make
111%doc    %{_prefix}/share/man
112
113%{_bindir}
114%{_prefix}/%{rtems_target}
Note: See TracBrowser for help on using the repository browser.