Skip to content

Commit

Permalink
rpm: more spec fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Aug 28, 2020
1 parent c67a2c5 commit 8ecfba5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions rpm/sid.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#%global commit c8e353b0ea2f9d3c2cb719f76934543e8df38a38
#%global shortcommit %(c=%{commit}; echo ${c:0:7})
#%global commitdate 20200828
#global commit c8e353b0ea2f9d3c2cb719f76934543e8df38a38
%{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})}
%{?commit:%global commitdate 20200828}

Name: sid
Version: 0.0.3
Release: 0%{?shortcommit:.%{commitdate}git%{shortcommit}}%{?dist}
Release: 1%{?shortcommit:.%{commitdate}git%{shortcommit}}%{?dist}
Summary: Storage Instantiation Daemon (SID)

License: GPLv2+
URL: http://sid-project.github.io
%if %{defined commit}
Source0: https://github.com/sid-project/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
%else
Source0: https://github.com/sid-project/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/sid-project/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
%endif

BuildRequires: autoconf
Expand Down Expand Up @@ -60,7 +60,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/sid/modules/ubridge-cmd/block/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_libdir}/sid/modules/ubridge-cmd/type/*.{a,la}

%files
%{_bindir}/sid
%{_sbindir}/sid
%{_sysconfdir}/sysconfig/sid.sysconfig
%{_udevrulesdir}/00-sid.rules
%{_unitdir}/sid.socket
Expand Down Expand Up @@ -183,8 +183,7 @@ Requires: %{name}-log-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-iface-libs%{?_isa} = %{version}-%{release}
%description tools
%files tools
%{_bindir}/usid
%{_sbindir}/usid

%changelog
* Wed Aug 26 2020 Peter Rajnoha <[email protected]> - 0.0.3-1
- Initial release.
#* Fri Aug 28 2020 Peter Rajnoha <[email protected]> - 0.0.3-1

0 comments on commit 8ecfba5

Please sign in to comment.