github.com/cptmikhailov/conmon@v2.0.20+incompatible/contrib/spec/conmon.spec.in (about)

     1  %global debug_package %{nil}
     2  
     3  %global provider github
     4  %global provider_tld com
     5  %global project containers
     6  %global repo conmon
     7  # https://github.com/projectatomic/conmon
     8  %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
     9  %global import_path %{provider_prefix}
    10  %global git0 https://%{import_path}
    11  %global commit0 #COMMIT#
    12  %global shortcommit0 %(c=%{commit0}; echo ${c:0:8})
    13  
    14  Name: %{repo}
    15  Version: 0
    16  Release: #COMMITDATE#.git%{shortcommit0}%{?dist}
    17  Summary: OCI container runtime monitor
    18  License: ASL 2.0
    19  URL: %{git0}
    20  Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
    21  ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64
    22  BuildRequires: gcc
    23  BuildRequires: glib2-devel
    24  BuildRequires: glibc-devel
    25  BuildRequires: git
    26  BuildRequires: pkgconfig
    27  
    28  %description
    29  %{summary}
    30  
    31  %prep
    32  %autosetup -Sgit -n %{name}-%{shortcommit0}
    33  
    34  %build
    35  %{__make} all
    36  
    37  %install
    38  %{__make} PREFIX=%{buildroot}%{_usr} install
    39  
    40  %check
    41  
    42  #define license tag if not already defined
    43  %{!?_licensedir:%global license %doc}
    44  
    45  %files
    46  %license LICENSE
    47  %doc README.md
    48  %{_usr}/bin/%{name}
    49  
    50  %changelog
    51  * Mon Oct 01 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.1.gite7805e2
    52  - new package
    53