source: rtems/contrib/apt-conf/rtems-apt-conf.spec.in @ 430c0f6d

4.9
Last change on this file since 430c0f6d was f79a10c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 20, 2004 at 8:48:58 PM

2004-02-20 Ralf Corsepius <corsepiu@…>

  • rtems-apt-conf.spec.in: Add @VERSION@ to Source0.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1Name:           @PACKAGE_NAME@
2Version:        @VERSION@
3Release:        0
4Epoch:          0
5
6License:        GPL
7Source0:        @PACKAGE_NAME@-@VERSION@.tar.bz2
8BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9BuildArch:      noarch
10
11Group:          RTEMS
12Summary:        Apt configuration for RTEMS
13%description
14Apt 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
23rm -rf $RPM_BUILD_ROOT
24make install DESTDIR=$RPM_BUILD_ROOT
25
26%clean
27rm -rf $RPM_BUILD_ROOT
28
29%package -n rtems-4.6-apt-conf
30Summary:        Apt configuration for RTEMS/4.6
31Group:          RTEMS/4.6
32Requires:       apt >= 0.5.15cnc1
33
34%description -n rtems-4.6-apt-conf
35Apt 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
44if 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
49fi
50
51%package -n rtems-4.7-apt-conf
52Summary:        Apt configuration for RTEMS/4.7
53Group:          RTEMS/4.7
54Requires:       apt >= 0.5.15cnc1
55
56%description -n rtems-4.7-apt-conf
57Apt 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
66if 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
71fi
Note: See TracBrowser for help on using the repository browser.