use fedora style pre release versioning
OBS-URL: https://build.opensuse.org/package/show/vdr/lirc?expand=0&rev=22
This commit is contained in:
parent
c627c099ff
commit
b854bc0217
@ -18,21 +18,16 @@
|
||||
# norootforbuild
|
||||
# icecream 0
|
||||
|
||||
%define snapshot 0.8.7-pre3
|
||||
%if 0%{?snapshot:1}
|
||||
%define snapshot_rpmver %{lua: \
|
||||
v=string.gsub(rpm.expand("%snapshot"), "-", "") \
|
||||
print (v) }
|
||||
%endif
|
||||
%define snapshot pre3
|
||||
|
||||
Name: lirc-kernel
|
||||
BuildRequires: kernel-source kernel-syms module-init-tools
|
||||
License: GPLv2+
|
||||
Group: System/Kernel
|
||||
Summary: LIRC kernel modules
|
||||
Version: 0.8.6%{?snapshot:_%snapshot_rpmver}
|
||||
Release: 1
|
||||
Source0: lirc-%{?snapshot}%{!?snapshot:%version}.tar.bz2
|
||||
Version: 0.8.7
|
||||
Release: %{?snapshot:0.}<CI_CNT>.<B_CNT>%{?snapshot:.%snapshot}
|
||||
Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%version/lirc-%version%{?snapshot:-%snapshot}.tar.bz2
|
||||
Source1: Makefile.module
|
||||
Source2: Makefile.modsub
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -57,7 +52,7 @@ receivers for the serial port.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n lirc-%{?snapshot}%{!?snapshot:%version}
|
||||
%setup -q -n lirc-%{version}%{?snapshot:-%snapshot}
|
||||
autoreconf -f -i
|
||||
PYTHON=/usr/bin/python \
|
||||
./configure --with-driver=all
|
||||
|
15
lirc.spec
15
lirc.spec
@ -17,12 +17,7 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define snapshot 0.8.7-pre3
|
||||
%if 0%{?snapshot:1}
|
||||
%define snapshot_rpmver %{lua: \
|
||||
v=string.gsub(rpm.expand("%snapshot"), "-", "") \
|
||||
print (v) }
|
||||
%endif
|
||||
%define snapshot pre3
|
||||
|
||||
Name: lirc
|
||||
BuildRequires: alsa-devel xorg-x11-devel
|
||||
@ -57,11 +52,11 @@ AutoReqProv: on
|
||||
Obsoletes: lirc-64bit
|
||||
%endif
|
||||
#
|
||||
Version: 0.8.6%{?snapshot:_%snapshot_rpmver}
|
||||
Release: 1
|
||||
Version: 0.8.7
|
||||
Release: %{?snapshot:0.}<CI_CNT>.<B_CNT>%{?snapshot:.%snapshot}
|
||||
PreReq: %fillup_prereq %insserv_prereq
|
||||
Summary: Tools for Infrared Receivers
|
||||
Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%version/lirc-%{?snapshot}%{!?snapshot:%version}.tar.bz2
|
||||
Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%version/lirc-%version%{?snapshot:-%snapshot}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
Source4: rc.lirc
|
||||
Source5: sysconfig.lirc
|
||||
@ -129,7 +124,7 @@ the 'lirc' package has to be configured and started.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{?snapshot}%{!?snapshot:%version}
|
||||
%setup -q -n %{name}-%{version}%{?snapshot:-%snapshot}
|
||||
#%patch0 -p1 -b .hw
|
||||
%patch2 -p1
|
||||
cp %{SOURCE8} .
|
||||
|
Loading…
x
Reference in New Issue
Block a user