switch Source0 to github and optimize patch file

1) remove unnecessary patch file
2) add back necessary patch file
3) update yaml file
This commit is contained in:
maminjie 2020-11-26 12:01:48 +08:00
parent ff43dc74f8
commit 3bfd0f8b71
5 changed files with 16 additions and 21 deletions

View File

@ -1,13 +0,0 @@
diff -up cdrdao-1.2.3/dao/ScsiIf-linux.cc.stat cdrdao-1.2.3/dao/ScsiIf-linux.cc
--- cdrdao-1.2.3/dao/ScsiIf-linux.cc.stat 2010-01-20 20:11:36.000000000 +0100
+++ cdrdao-1.2.3/dao/ScsiIf-linux.cc 2010-01-20 20:14:07.000000000 +0100
@@ -19,6 +19,9 @@
#include <config.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>

Binary file not shown.

BIN
cdrdao-1.2.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,16 +1,17 @@
%global bname rel_1_2_3
Summary: Records audio or data CD-Rs in disk-at-once (DAO) mode
Name: cdrdao
Version: 1.2.3
Release: 36
Release: 37
License: GPLv2+
URL: http://cdrdao.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source0: https://github.com/cdrdao/%{name}/archive/%{bname}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++ gcc libsigc++20-devel libao-devel
BuildRequires: libvorbis-devel >= 1.0 libmad-devel
BuildRequires: lame-devel autoconf GConf2-devel
Patch1: cdrdao-1.2.3-stat.patch
Patch1: cdrdao-1.2.3-helpmansync.patch
Patch2: cdrdao-1.2.3-format_security.patch
Patch3: cdrdao-1.2.3-narrowing.patch
Patch4: cdrdao-1.2.3-lame-3.100.patch
@ -22,7 +23,11 @@ on a textual description of the CD contents (toc-file).
%package_help
%prep
%autosetup -p 1
%autosetup -n %{name}-%{bname} -p 1
if [ -e autogen.sh ]; then
sed -i '/autoreconf/d' autogen.sh
./autogen.sh
fi
%build
autoreconf -v -f -i -I.
@ -49,6 +54,9 @@ autoreconf -v -f -i -I.
%{_mandir}/man1
%changelog
* Thu Nov 26 2020 maminjie <maminjie1@huawei.com> - 1.2.3-37
- switch Source0 to github and optimize patch file
* Thu Jan 16 2020 fengbing <fengbing7@huawei.com> - 1.2.3-36
- Type:N/A
- ID:N/A

View File

@ -1,4 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA
version_control: github
src_repo: cdrdao/cdrdao
tag_prefix: "rel_"
separator: "_"