source: rtems/contrib/rtemsrpms/rtems.specs.in @ 01f1b60c

4.104.114.84.95
Last change on this file since 01f1b60c was 01f1b60c, checked in by Chris Johns <chrisj@…>, on Aug 17, 2006 at 5:43:00 AM

Add the rtemsrpms package to RTEMS.

  • Property mode set to 100644
File size: 2.5 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_RELEASE@ | sed -e 's,-.*,,')}
23%define rtems_rpmvers   %{expand:%(echo @RTEMS_API@ | tr - _ )}
24
25%define rtems_bsps      @RTEMS_BSPS@
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}gcc-common
45BuildRequires:  %{rpmprefix}%{rtems_target}-gcc
46
47Source0:        ftp://ftp.rtems.org/pub/rtems/%{rtems_api}/rtems-%{rtems_api}-%{rtems_pkgvers}.tar.bz2
48%{?_without_sources:NoSource:   0}
49
50%description
51RTEMS Libraries for %{rtems_target}.
52
53%prep
54%setup -c -T -n %{name}-%{version}
55
56%setup -q -T -D -n %{name}-%{version} -a0
57%{?PATCH0:%patch0 -p0}
58
59%build
60  if [ "%{rtems_bootstrap}" = "yes" ]; then
61   cd rtems-%{rtems_api}
62   ./bootstrap
63   cd ..
64  fi
65  mkdir -p build
66  cd build
67  bps=""
68  ../rtems-%{rtems_api}/configure \
69    --prefix=%{_prefix} \
70    --target=%rtems_target \
71    --verbose \
72    --enable-maintainer-mode \
73    --disable-multiprocessing \
74    --enable-cxx \
75    --enable-rdbg \
76    --enable-itron \
77    --enable-posix \
78    --enable-networking \
79    --enable-tests=samples \
80    --disable-deprecated \
81    --disable-ada \
82    --disable-expada \
83    --enable-multilib \
84    $optargs
85  make all %{rtems_bsps}
86  cd ..
87
88%install
89  export PATH="%{_bindir}:${PATH}"
90  rm -rf $RPM_BUILD_ROOT
91
92  cd build
93
94  make DESTDIR=$RPM_BUILD_ROOT install
95  cd ..
96
97%clean
98  rm -rf $RPM_BUILD_ROOT
99
100%description
101RTEMS operating system for %{rtems_target}
102
103%files
104%defattr(-,root,root)
105
106%config %{_prefix}/lib/pkgconfig
107%config %{_prefix}/make
108%doc    %{_prefix}/share/man
109
110%{_bindir}
111%{_prefix}/%{rtems_target}
Note: See TracBrowser for help on using the repository browser.