Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b5f62bb9e7
!23 [sync] PR-18: 修复编译失败问题
From: @openeuler-sync-bot 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2022-03-11 06:53:56 +00:00
herengui
d9ee175657 fix build issues
Signed-off-by: herengui <herengui@uniontech.com>
(cherry picked from commit 360728b76b81012d8d640013d4d9c741b6a169a4)
2022-03-11 13:34:23 +08:00
openeuler-ci-bot
74021de7ab
!11 rebuild for htslib version updated
Merge pull request !11 from 莫得感情的打包机器人/openEuler-20.03-LTS-SP3
2022-02-09 01:59:04 +00:00
herengui
f1b8816ab4 rebuild for htslib version updated
Signed-off-by: herengui <herengui@uniontech.com>
2022-02-08 17:46:22 +08:00
openeuler-ci-bot
a1bdcee68a !9 [sync] PR-4: 移除多余的编译依赖
From: @openeuler-sync-bot
Reviewed-by: @reganhe_xx
Signed-off-by: @reganhe_xx
2021-11-19 08:42:30 +00:00
He Rengui
4e3d532c44 remove useless buildrequires
Signed-off-by: He Rengui <herengui@uniontech.com>
(cherry picked from commit 2f112642e6a0318419b99d2c8bf8f17afa52cac6)
2021-11-19 15:07:10 +08:00
openeuler-ci-bot
34f497e157 !3 添加devel包
From: @reganhe_xx
Reviewed-by: @yangzhao_kl,@myeuler
Signed-off-by: @myeuler
2021-03-26 23:12:57 +08:00
He Rengui
83cfee1c12 add devel package
Signed-off-by: He Rengui <herengui@uniontech.com>
2021-03-26 10:44:47 +08:00
openeuler-ci-bot
17127068f1 !2 package init 1.12
From: @yangzhao_kl
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-03-20 00:09:35 +08:00
yangzhao_kl
fa39f64505 package init 2021-03-18 16:50:26 +08:00
3 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,40 @@
From e9e8dd148b9454abb5a7704d6f6249f7aa7aeded Mon Sep 17 00:00:00 2001
From: herengui <herengui@uniontech.com>
Date: Thu, 10 Mar 2022 18:14:43 +0800
Subject: [PATCH] Replace Curses mvprintw() with va_list-based equivalent
Instead of allocating a buffer for the formatted string and printing
it with mvprintw() -- which should have a "%s" format argument to guard
against '%' characters in the formatted string, hat tip Andreas Tille --,
use vw_printw() which takes a va_list so can do the formatting itself.
Signed-off-by: herengui <herengui@uniontech.com>
---
bam_tview_curses.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/bam_tview_curses.c b/bam_tview_curses.c
index 11db0da..37fb033 100644
--- a/bam_tview_curses.c
+++ b/bam_tview_curses.c
@@ -78,15 +78,11 @@ static void curses_destroy(tview_t* base) {
*/
static void curses_mvprintw(struct AbstractTview* tv,int y ,int x,const char* fmt,...) {
- unsigned int size=tv->mcol+2;
- char* str=malloc(size);
- if(str==0) exit(EXIT_FAILURE);
va_list argptr;
va_start(argptr, fmt);
- vsnprintf(str,size, fmt, argptr);
+ if (wmove(stdscr, y, x) != ERR)
+ vw_printw(stdscr, fmt, argptr);
va_end(argptr);
- mvprintw(y,x,str);
- free(str);
}
static void curses_mvaddch(struct AbstractTview* tv,int y,int x,int ch) {
--
2.20.1

BIN
samtools-1.12.tar.bz2 Normal file

Binary file not shown.

77
samtools.spec Normal file
View File

@ -0,0 +1,77 @@
Name: samtools
Version: 1.12
Release: 5
Summary: Tools (written in C using htslib) for manipulating next-generation sequencing data
License: MIT and BSD
URL: http://www.htslib.org
Source0: https://github.com/samtools/samtools/archive/%{name}-%{version}.tar.bz2
Patch0: Replace-Curses-mvprintw-with-va_list-based-equivalen.patch
BuildRequires: gcc autoconf automake make zlib-devel htslib-devel ncurses-devel bzip2-devel xz-devel
%description
The original samtools package has been split into three separate but tightly coordinated projects:
htslib: C-library for handling high-throughput sequencing data
samtools: mpileup and other tools for handling SAM, BAM, CRAM
bcftools: calling and other tools for handling VCF, BCF
See also http://github.com/samtools/
%package devel
Summary: Header files and libraries for compiling against %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Header files and libraries for compiling against %{name}
%prep
%autosetup -p1
%build
autoheader
autoconf -Wno-syntax
%configure --prefix=%{_prefix} --libdir=%{_libdir} --with-htslib
%make_build
%install
%make_install
install -d -m 0755 %{buildroot}%{_includedir}/bam
install -p -m 0644 *.h %{buildroot}%{_includedir}/bam
install -D -p -m 0755 libbam.a %{buildroot}%{_libdir}/libbam.a
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%doc README INSTALL doc/ examples/
%{_bindir}/*
%{_mandir}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/bam
%{_libdir}/libbam.a
%changelog
* Thu Mar 10 2022 herengui <herengui@uniontech.com> - 1.12-5
- fix build error
* Tue Feb 08 2022 herengui <herengui@uniontech.com> - 1.12-4
- rebuild for htslib version updated.
* Tue Jul 20 2021 herengui <herengui@uniontech.com> - 1.12-3
- remove useless buildrequires.
- replace tab with space
* Thu Mar 25 2021 herengui <herengui@uniontech.com> - 1.12-2
- Add devel package
* Thu Mar 18 2021 yangzhao <yangzhao1@kylinos.cn> - 1.12-1
- Package init