1 | Name: @PACKAGE_NAME@ |
---|
2 | Version: @VERSION@ |
---|
3 | Release: 1%{?dist} |
---|
4 | Epoch: 0 |
---|
5 | Group: Development/Tools |
---|
6 | License: GPL |
---|
7 | Source0: @PACKAGE_TARNAME@-@VERSION@.tar.bz2 |
---|
8 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
9 | BuildArch: noarch |
---|
10 | |
---|
11 | Summary: Apt/yum configurations for RTEMS |
---|
12 | %description |
---|
13 | Apt/yum configuration files to access the apt/yum repositories at ftp://ftp.rtems.com |
---|
14 | |
---|
15 | %prep |
---|
16 | %setup -q |
---|
17 | |
---|
18 | %build |
---|
19 | case "%{?dist}" in |
---|
20 | .el*) extra_arg=--enable-os-subdir="redhat/el";; |
---|
21 | .fc*) extra_arg=--enable-os-subdir="fedora/";; |
---|
22 | .rh*) extra_arg=--enable-os-subdir="redhat/";; |
---|
23 | .suse*) extra_arg=--enable-os-subdir="suse/";; |
---|
24 | *) extra_arg=--enable-os-subdir="redhat/";; |
---|
25 | esac |
---|
26 | %configure $extra_arg |
---|
27 | |
---|
28 | %install |
---|
29 | rm -rf $RPM_BUILD_ROOT |
---|
30 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
31 | |
---|
32 | %clean |
---|
33 | rm -rf $RPM_BUILD_ROOT |
---|
34 | |
---|
35 | %package -n rtems-@RTEMS_API@-apt-conf |
---|
36 | Summary: Apt-repomd configuration for RTEMS/@RTEMS_API@ |
---|
37 | Group: RTEMS/@RTEMS_API@ |
---|
38 | Requires: apt >= 0.5.15lorg3 |
---|
39 | |
---|
40 | %description -n rtems-@RTEMS_API@-apt-conf |
---|
41 | Apt-repomd configuration for RTEMS/@RTEMS_API@ |
---|
42 | |
---|
43 | %files -n rtems-@RTEMS_API@-apt-conf |
---|
44 | %defattr(-,root,root,-) |
---|
45 | %{_sysconfdir}/apt/gpg |
---|
46 | %config(noreplace) %{_sysconfdir}/apt/sources.list.d/rtems-@RTEMS_API@.list |
---|
47 | %{_sysconfdir}/apt/vendors.list.d/rtems.list |
---|
48 | |
---|
49 | %package -n rtems-@RTEMS_API@-yum-conf |
---|
50 | Summary: yum configuration for RTEMS/@RTEMS_API@ |
---|
51 | Group: RTEMS/@RTEMS_API@ |
---|
52 | Requires: yum > 2.0 |
---|
53 | |
---|
54 | %description -n rtems-@RTEMS_API@-yum-conf |
---|
55 | Yum configuration for RTEMS/@RTEMS_API@ |
---|
56 | |
---|
57 | %files -n rtems-@RTEMS_API@-yum-conf |
---|
58 | %defattr(-,root,root,-) |
---|
59 | %{_sysconfdir}/pki/rpm-gpg/gpg-pubkey* |
---|
60 | %config(noreplace) %{_sysconfdir}/yum.repos.d/*.repo |
---|