source: rtems/contrib/repo-conf/rtems-repo-conf.spec.in @ e57739d

4.104.114.84.95
Last change on this file since e57739d was e57739d, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 17, 2007 at 3:39:50 PM

Add .rh clause to extra_arg.

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