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