[c9626644] | 1 | Name: @PACKAGE_NAME@ |
---|
| 2 | Version: @VERSION@ |
---|
| 3 | Release: 0 |
---|
| 4 | Epoch: 0 |
---|
| 5 | |
---|
| 6 | License: GPL |
---|
[f79a10c] | 7 | Source0: @PACKAGE_NAME@-@VERSION@.tar.bz2 |
---|
[c9626644] | 8 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 9 | BuildArch: noarch |
---|
| 10 | |
---|
| 11 | Group: RTEMS |
---|
| 12 | Summary: Apt configuration for RTEMS |
---|
| 13 | %description |
---|
| 14 | Apt configuration files to access the apt repositories at ftp://ftp.rtems.com |
---|
| 15 | |
---|
| 16 | %prep |
---|
| 17 | %setup -q |
---|
| 18 | |
---|
| 19 | %build |
---|
| 20 | %configure |
---|
| 21 | |
---|
| 22 | %install |
---|
| 23 | rm -rf $RPM_BUILD_ROOT |
---|
| 24 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 25 | |
---|
| 26 | %clean |
---|
| 27 | rm -rf $RPM_BUILD_ROOT |
---|
| 28 | |
---|
| 29 | %package -n rtems-4.6-apt-conf |
---|
| 30 | Summary: Apt configuration for RTEMS/4.6 |
---|
| 31 | Group: RTEMS/4.6 |
---|
| 32 | Requires: apt >= 0.5.15cnc1 |
---|
| 33 | |
---|
| 34 | %description -n rtems-4.6-apt-conf |
---|
| 35 | Apt configuration for RTEMS/4.6 |
---|
| 36 | |
---|
| 37 | %files -n rtems-4.6-apt-conf |
---|
| 38 | %defattr(-,root,root,-) |
---|
| 39 | %{_sysconfdir}/apt/gpg |
---|
| 40 | %{_sysconfdir}/apt/sources.list.d/rtems-4.6.list |
---|
| 41 | %{_sysconfdir}/apt/vendors.list.d/rtems.list |
---|
| 42 | |
---|
| 43 | %post -n rtems-4.6-apt-conf |
---|
| 44 | if test -f %{_sysconfdir}/apt/sources.list; then |
---|
| 45 | cp %{_sysconfdir}/apt/sources.list %{_sysconfdir}/apt/sources.list.rpmsave |
---|
| 46 | sed '/rpm.*ftp:\/\/ftp\.rtems\.com.*redhat.*7\.3.*apt.*rtems-4\.6/d' \ |
---|
| 47 | < %{_sysconfdir}/apt/sources.list.rpmsave \ |
---|
| 48 | > %{_sysconfdir}/apt/sources.list |
---|
| 49 | fi |
---|
| 50 | |
---|
| 51 | %package -n rtems-4.7-apt-conf |
---|
| 52 | Summary: Apt configuration for RTEMS/4.7 |
---|
| 53 | Group: RTEMS/4.7 |
---|
| 54 | Requires: apt >= 0.5.15cnc1 |
---|
| 55 | |
---|
| 56 | %description -n rtems-4.7-apt-conf |
---|
| 57 | Apt configuration for RTEMS/4.7 |
---|
| 58 | |
---|
| 59 | %files -n rtems-4.7-apt-conf |
---|
| 60 | %defattr(-,root,root,-) |
---|
| 61 | %{_sysconfdir}/apt/gpg |
---|
| 62 | %{_sysconfdir}/apt/sources.list.d/rtems-4.7.list |
---|
| 63 | %{_sysconfdir}/apt/vendors.list.d/rtems.list |
---|
| 64 | |
---|
| 65 | %post -n rtems-4.7-apt-conf |
---|
| 66 | if test -f %{_sysconfdir}/apt/sources.list; then |
---|
| 67 | cp %{_sysconfdir}/apt/sources.list %{_sysconfdir}/apt/sources.list.rpmsave |
---|
| 68 | sed '/rpm.*ftp:\/\/ftp\.rtems\.com.*redhat.*7\.3.*apt.*rtems-4\.7/d' \ |
---|
| 69 | < %{_sysconfdir}/apt/sources.list.rpmsave \ |
---|
| 70 | > %{_sysconfdir}/apt/sources.list |
---|
| 71 | fi |
---|