Projects
home:pandora:RobinOS23
gdbm
_service:download_src_package:gdbm.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:gdbm.spec of Package gdbm
%define anolis_release 2 %bcond_with largefile Summary: A GNU set of database routines which use extensible hashing Name: gdbm Version: 1.23 Release: %{anolis_release}%{?dist} Epoch: 1 License: GPLv3+ URL: http://www.gnu.org/software/gdbm/ Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz BuildRequires: gcc BuildRequires: libtool BuildRequires: gettext BuildRequires: readline-devel BuildRequires: make # when -libs subpkg was introduced Obsoletes: gdbm < 1:1.14.1-4 Requires: %{name}-libs = %{epoch}:%{version}-%{release} %description Gdbm is a GNU database indexing library, including routines which use extensible hashing. Gdbm works in a similar way to standard UNIX dbm routines. Gdbm is useful for developers who write C applications and need access to a simple and efficient database or who are building C applications which will use such a database. If you're a C developer and your programs need access to simple database routines, you should install gdbm. You'll also need to install gdbm-devel. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package libs Summary: Libraries files for gdbm # when -libs subpkg was introduced Obsoletes: gdbm < 1:1.14.1-4 %description libs Libraries for the Gdbm GNU database indexing library %package devel Summary: Development libraries and header files for the gdbm library Requires: %{name} = %{epoch}:%{version}-%{release} Requires(post): info Requires(preun): info %description devel Gdbm-devel contains the development libraries and header files for gdbm, the GNU database system. These libraries and header files are necessary if you plan to do development using the gdbm database. Install gdbm-devel if you are developing C programs which will use the gdbm database library. You'll also need to install the gdbm package. %prep %setup -q %build %configure \ --disable-static \ %{!?with_largefile: --disable-largefile} \ --disable-rpath \ --enable-libgdbm-compat # get rid of rpath (as per https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath) # currently --disable-rpath doesn't work for gdbm_dump|load, gdbmtool and libgdbm_compat.so.4 # https://puszcza.gnu.org.ua/bugs/index.php?359 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install %make_install %find_lang %{name} # create symlinks for compatibility mkdir -p $RPM_BUILD_ROOT/%{_includedir}/gdbm ln -sf ../gdbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/gdbm.h ln -sf ../ndbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/ndbm.h ln -sf ../dbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/dbm.h # Remove libtool archives find %{buildroot} -type f -name "*.la" -delete rm -f $RPM_BUILD_ROOT/%{_infodir}/dir %generate_compatibility_deps %check export LD_LIBRARY_PATH=`pwd`/src/.libs/:`pwd`/compat/.libs/ make check %ldconfig_scriptlets libs %files -f %{name}.lang %{_bindir}/gdbm* %{abidir}/gdbm*-option.list %{_mandir}/man1/gdbm* %files doc %doc NEWS README THANKS AUTHORS NOTE-WARNING %files libs %dir %{abidir} %license COPYING %{_libdir}/libgdbm.so.6* %{_libdir}/libgdbm_compat.so.4* %{abidir}/libgdbm.dump %{abidir}/libgdbm_compat.dump %files devel %{_libdir}/libgdbm.so %{_libdir}/libgdbm_compat.so %{_includedir}/* %{_infodir}/*.info* %{_mandir}/man3/* %changelog * Thu Oct 27 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 1.23-2 - optimise spec file & add doc package * Tue Mar 8 2022 Liwei Ge <liwei.glw@linux.alibaba.com> - 1.23-1 - Init version from upstream v1.23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2