Package Init
This commit is contained in:
parent
3bc6fed66c
commit
eb96f3436a
30
enable-debugging-info.patch
Normal file
30
enable-debugging-info.patch
Normal file
@ -0,0 +1,30 @@
|
||||
diff --git a/configure b/configure
|
||||
index 3c5be95..4dde863 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -2139,8 +2139,8 @@ MYDOCUMENTFILES="COPYING FOSSEXCEPTION ChangeLog doc kyotocabinet.idl"
|
||||
MYPCFILES="kyotocabinet.pc"
|
||||
|
||||
# Building flags
|
||||
-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0 -O2"
|
||||
-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0 -O2"
|
||||
+MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g -O2"
|
||||
+MYCXXFLAGS="-Wall -fPIC -fsigned-char -g -O2"
|
||||
MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include"
|
||||
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1"
|
||||
MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__"
|
||||
diff --git a/configure.in b/configure.in
|
||||
index cf4bd1c..f43d198 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -35,8 +35,8 @@ MYDOCUMENTFILES="COPYING FOSSEXCEPTION ChangeLog doc kyotocabinet.idl"
|
||||
MYPCFILES="kyotocabinet.pc"
|
||||
|
||||
# Building flags
|
||||
-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0 -O2"
|
||||
-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0 -O2"
|
||||
+MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g -O2"
|
||||
+MYCXXFLAGS="-Wall -fPIC -fsigned-char -g -O2"
|
||||
MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include"
|
||||
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1"
|
||||
MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__"
|
||||
BIN
kyotocabinet-1.2.77.tar.gz
Normal file
BIN
kyotocabinet-1.2.77.tar.gz
Normal file
Binary file not shown.
73
kyotocabinet.spec
Normal file
73
kyotocabinet.spec
Normal file
@ -0,0 +1,73 @@
|
||||
Name: kyotocabinet
|
||||
Version: 1.2.77
|
||||
Release: 4
|
||||
Summary: Straightforward implementation of DBM
|
||||
License: GPLv3
|
||||
URL: https://fallabs.com/kyotocabinet/
|
||||
Source: https://fallabs.com/kyotocabinet/pkg/kyotocabinet-%{version}.tar.gz
|
||||
|
||||
Provides: %{name}-libs = %{version}-%{release} %{name}-lib = %{version}-%{release}
|
||||
Obsoletes: %{name}-libs < %{version}-%{release} %{name}-lib < 1.2.76-3
|
||||
BuildRequires: gcc-c++ zlib-devel lzo-devel xz-devel
|
||||
|
||||
Patch0001: enable-debugging-info.patch
|
||||
|
||||
%description
|
||||
The kyotocabinet is a library of routines for managing databases.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for kyotocabinet
|
||||
Requires: %{name} = %{version}-%{release} pkgconfig
|
||||
|
||||
%description devel
|
||||
This package contains libraries and header files for developing applications that use kyotocabinet.
|
||||
|
||||
%package help
|
||||
Summary: Documentation for kyotocabinet
|
||||
BuildArch: noarch
|
||||
Provides: %{name}-api-doc = %{version}-%{release} %{name}-apidocs = %{version}-%{release}
|
||||
Obsoletes: %{name}-api-doc < 1.2.76-3 %{name}-apidocs < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package provides documentation for kyotocabinet.
|
||||
|
||||
%prep
|
||||
%autosetup -n kyotocabinet-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure --disable-opt --enable-lzo --enable-lzma
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -rf %{buildroot}%{_defaultdocdir}
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc ChangeLog COPYING FOSSEXCEPTION LINKEXCEPTION
|
||||
%doc doc/{command.html,common.css,icon16.png}
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libkyotocabinet.so.*
|
||||
%exclude %{_libdir}/libkyotocabinet.a
|
||||
|
||||
%files devel
|
||||
%{_includedir}/*
|
||||
%{_libdir}/libkyotocabinet.so
|
||||
%{_libdir}/pkgconfig/kyotocabinet.pc
|
||||
|
||||
%files help
|
||||
%doc doc/api/* kyotocabinet.idl
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 16 2020 lihao <lihao129@huawei.com> - 1.2.77-4
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user