mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
72 lines
1.9 KiB
RPMSpec
72 lines
1.9 KiB
RPMSpec
Name: @PACKAGE_NAME@
|
|
Version: @VERSION@
|
|
Release: 0
|
|
Epoch: 0
|
|
|
|
License: GPL
|
|
Source0: @PACKAGE_NAME@-@VERSION@.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
|
|
Group: RTEMS
|
|
Summary: Apt configuration for RTEMS
|
|
%description
|
|
Apt configuration files to access the apt repositories at ftp://ftp.rtems.com
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%package -n rtems-4.6-apt-conf
|
|
Summary: Apt configuration for RTEMS/4.6
|
|
Group: RTEMS/4.6
|
|
Requires: apt >= 0.5.15cnc1
|
|
|
|
%description -n rtems-4.6-apt-conf
|
|
Apt configuration for RTEMS/4.6
|
|
|
|
%files -n rtems-4.6-apt-conf
|
|
%defattr(-,root,root,-)
|
|
%{_sysconfdir}/apt/gpg
|
|
%{_sysconfdir}/apt/sources.list.d/rtems-4.6.list
|
|
%{_sysconfdir}/apt/vendors.list.d/rtems.list
|
|
|
|
%post -n rtems-4.6-apt-conf
|
|
if test -f %{_sysconfdir}/apt/sources.list; then
|
|
cp %{_sysconfdir}/apt/sources.list %{_sysconfdir}/apt/sources.list.rpmsave
|
|
sed '/rpm.*ftp:\/\/ftp\.rtems\.com.*redhat.*7\.3.*apt.*rtems-4\.6/d' \
|
|
< %{_sysconfdir}/apt/sources.list.rpmsave \
|
|
> %{_sysconfdir}/apt/sources.list
|
|
fi
|
|
|
|
%package -n rtems-4.7-apt-conf
|
|
Summary: Apt configuration for RTEMS/4.7
|
|
Group: RTEMS/4.7
|
|
Requires: apt >= 0.5.15cnc1
|
|
|
|
%description -n rtems-4.7-apt-conf
|
|
Apt configuration for RTEMS/4.7
|
|
|
|
%files -n rtems-4.7-apt-conf
|
|
%defattr(-,root,root,-)
|
|
%{_sysconfdir}/apt/gpg
|
|
%{_sysconfdir}/apt/sources.list.d/rtems-4.7.list
|
|
%{_sysconfdir}/apt/vendors.list.d/rtems.list
|
|
|
|
%post -n rtems-4.7-apt-conf
|
|
if test -f %{_sysconfdir}/apt/sources.list; then
|
|
cp %{_sysconfdir}/apt/sources.list %{_sysconfdir}/apt/sources.list.rpmsave
|
|
sed '/rpm.*ftp:\/\/ftp\.rtems\.com.*redhat.*7\.3.*apt.*rtems-4\.7/d' \
|
|
< %{_sysconfdir}/apt/sources.list.rpmsave \
|
|
> %{_sysconfdir}/apt/sources.list
|
|
fi
|