github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/rpm/SPECS/git-lfs-repo-release.spec (about)

     1  Name:           git-lfs-repo-release
     2  Version:        1
     3  Release:        1%{?dist}
     4  Summary:        Packges for git-lfs for Enterprise Linux repository configuration
     5  
     6  Group:          System Environment/Base
     7  License:        MIT
     8  %if 0%{?fedora} 
     9  URL:            https://git-lfs.github.com/fedora/%{fedora}/
    10  %elseif 0%{?rhel}
    11  URL:            https://git-lfs.github.com/centos/%{rhel}/
    12  %endif
    13  Source0:        RPM-GPG-KEY-GITLFS
    14  Source1:        git-lfs.repo
    15  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    16  
    17  BuildArch:      noarch
    18  
    19  %description
    20  This package contains the Extra Packages for Enterprise Linux (EPEL) repository
    21  GPG key as well as configuration for yum.
    22  
    23  %prep
    24  %setup -q -c -T
    25  
    26  %build
    27  
    28  
    29  %install
    30  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    31  
    32  #GPG Key
    33  install -Dpm 644 %{SOURCE0} \
    34      $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-GITLFS
    35  
    36  # yum
    37  install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
    38  install -pm 644 %{SOURCE1}  \
    39      $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
    40  
    41  %clean
    42  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    43  
    44  %files
    45  %defattr(-,root,root,-)
    46  %config(noreplace) /etc/yum.repos.d/*
    47  /etc/pki/rpm-gpg/*