source: rtems/contrib/rtemsrpms/rtems.spec.in @ 5428a43e

4.104.114.84.95
Last change on this file since 5428a43e was 0e872e6a, checked in by Chris Johns <chrisj@…>, on Aug 18, 2006 at 11:27:56 AM

Updated the specs file.

  • Property mode set to 100644
File size: 2.4 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_bsp       @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_pkgvers}.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_api}
61   ./bootstrap
62   cd ..
63  fi
64  mkdir -p build
65  cd build
66  bps=""
67  ../rtems-%{rtems_api}/configure \
68    --prefix=%{_prefix} \
69    --target=%rtems_target \
70    --verbose \
71    --enable-maintainer-mode \
72    --disable-multiprocessing \
73    --enable-cxx \
74    --enable-rdbg \
75    --enable-itron \
76    --enable-posix \
77    --enable-networking \
78    --enable-tests=samples \
79    --disable-deprecated \
80    --disable-ada \
81    --disable-expada \
82    --enable-multilib \
83    $optargs
84  make all %{rtems_bsp}
85  cd ..
86
87%install
88  export PATH="%{_bindir}:${PATH}"
89  rm -rf $RPM_BUILD_ROOT
90
91  cd build
92
93  make DESTDIR=$RPM_BUILD_ROOT install
94  cd ..
95
96%clean
97  rm -rf $RPM_BUILD_ROOT
98
99%description
100RTEMS operating system for %{rtems_target}
101
102%files
103%defattr(-,root,root)
104
105%config %{_prefix}/lib/pkgconfig
106%config %{_prefix}/make
107%doc    %{_prefix}/share/man
108
109%{_bindir}
110%{_prefix}/%{rtems_target}
Note: See TracBrowser for help on using the repository browser.