4.9
Line | |
---|
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-osname="centos-%{rhel}";; |
---|
21 | .fc*) extra_arg=--enable-osname="fedora-%{fedora}";; |
---|
22 | .suse*) extra_arg=--enable-osname="suse-%{suse}";; |
---|
23 | esac |
---|
24 | %configure $extra_arg |
---|
25 | |
---|
26 | %install |
---|
27 | rm -rf $RPM_BUILD_ROOT |
---|
28 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
29 | |
---|
30 | %clean |
---|
31 | rm -rf $RPM_BUILD_ROOT |
---|
32 | |
---|
33 | %package -n rtems-@RTEMS_API@-apt-conf |
---|
34 | Summary: Apt-repomd configuration for RTEMS/@RTEMS_API@ |
---|
35 | Group: RTEMS/@RTEMS_API@ |
---|
36 | Requires: apt >= 0.5.15lorg3 |
---|
37 | |
---|
38 | %description -n rtems-@RTEMS_API@-apt-conf |
---|
39 | Apt-repomd configuration for RTEMS/@RTEMS_API@ |
---|
40 | |
---|
41 | %files -n rtems-@RTEMS_API@-apt-conf |
---|
42 | %defattr(-,root,root,-) |
---|
43 | %{_sysconfdir}/apt/gpg |
---|
44 | %config(noreplace) %{_sysconfdir}/apt/sources.list.d/rtems-@RTEMS_API@.list |
---|
45 | %{_sysconfdir}/apt/vendors.list.d/rtems.list |
---|
46 | |
---|
47 | %package -n rtems-@RTEMS_API@-yum-conf |
---|
48 | Summary: yum configuration for RTEMS/@RTEMS_API@ |
---|
49 | Group: RTEMS/@RTEMS_API@ |
---|
50 | Requires: yum > 2.0 |
---|
51 | |
---|
52 | %description -n rtems-@RTEMS_API@-yum-conf |
---|
53 | Yum configuration for RTEMS/@RTEMS_API@ |
---|
54 | |
---|
55 | %files -n rtems-@RTEMS_API@-yum-conf |
---|
56 | %defattr(-,root,root,-) |
---|
57 | %{_sysconfdir}/pki/rpm-gpg/gpg-pubkey* |
---|
58 | %config(noreplace) %{_sysconfdir}/yum.repos.d/*.repo |
---|
Note: See
TracBrowser
for help on using the repository browser.