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

4.104.114.95
Last change on this file since 36c11ad8 was 54457f44, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 22, 2007 at 8:11:04 AM

Add suse

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