]> git.pld-linux.org Git - packages/apt-dater.git/commitdiff
match pld kernel-longterm packages
authorElan Ruusamäe <glen@delfi.ee>
Mon, 9 Sep 2013 21:39:26 +0000 (00:39 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 9 Sep 2013 21:39:26 +0000 (00:39 +0300)
apt-dater.spec
kernel-pld-longterm.patch [new file with mode: 0644]

index 8684f01e0704ea89c097252c3028305f81008f4d..65df1a0f6087e97789754546fe2699a56f99ae50 100644 (file)
@@ -6,6 +6,7 @@ License:        GPL v2
 Group:         Applications/System
 Source0:       http://downloads.sourceforge.net/apt-dater/%{name}-%{version}.tar.gz
 # Source0-md5: a8ac240ddfb7d4c500505f9d5d821185
 Group:         Applications/System
 Source0:       http://downloads.sourceforge.net/apt-dater/%{name}-%{version}.tar.gz
 # Source0-md5: a8ac240ddfb7d4c500505f9d5d821185
+Patch0:                kernel-pld-longterm.patch
 URL:           http://www.ibh.de/apt-dater/
 BuildRequires: gettext-devel
 BuildRequires: glib2-devel
 URL:           http://www.ibh.de/apt-dater/
 BuildRequires: gettext-devel
 BuildRequires: glib2-devel
@@ -34,7 +35,6 @@ Group:                Applications/System
 Requires:      lsb-release
 Requires:      openssh-server
 Suggests:      imvirt
 Requires:      lsb-release
 Requires:      openssh-server
 Suggests:      imvirt
-Suggests:      perl-imvirt
 Suggests:      sudo
 %if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
 Suggests:      sudo
 %if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
@@ -51,6 +51,7 @@ be installed on every apt-dater managed host.
 
 %prep
 %setup -q
 
 %prep
 %setup -q
+%patch0 -p1
 
 sed -i "s/manhdir = .*$/manhdir = @docdir@/" man/Makefile.in
 
 
 sed -i "s/manhdir = .*$/manhdir = @docdir@/" man/Makefile.in
 
diff --git a/kernel-pld-longterm.patch b/kernel-pld-longterm.patch
new file mode 100644 (file)
index 0000000..f2674eb
--- /dev/null
@@ -0,0 +1,14 @@
+patch to find "-longterm" from "3.4.51.longterm-1"
+
+--- apt-dater-0.9.0/clients/rpm/apt-dater-host 2012-05-28 23:33:34.000000000 +0300
++++ apt-dater-0.9.0/clients/rpm/apt-dater-host 2013-09-10 00:37:00.000000000 +0300
+@@ -155,8 +155,8 @@
+     my $ver = $version;
+     my $rel = '';
+     my $add = '';
+-    $add = $1 if($version =~ /([a-z]+)$/);
++    $add = $1 if($version =~ /([a-z]+)(?:-\d+)?$/);
+     ($ver, $rel) = ($1, $2) if($version =~ /(.+)-([^-]+)$add$/);
+     $add = "-$add" if($add);
This page took 0.065163 seconds and 4 git commands to generate.