hio/pkgs/hio.spec.in

76 lines
1.6 KiB
RPMSpec
Raw Normal View History

2021-07-22 08:24:03 +00:00
%define _prefix /usr
%define _sysconfdir /etc
Summary: HIO Interpreter
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
License: Simplified BSD License
Vendor: Chung, Hyung-Hwan
URL: @PACKAGE_URL@
Group: System Environment/Libraries
Source0: %{name}-%{version}.tar.gz
#Requires:
###BuildRequires: mariadb-connector-c
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
HIO Interpreter
%package devel
Summary: Development files for HIO
Group: System Environment/Libraries
Requires: @PACKAGE_NAME@ = %{version}
%description devel
The header files and libraries for developing applications with HIO.
%prep
%setup -q
%build
RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | %{__sed} 's/-O2/-O3/')"
##CFLAGS="${RPM_OPT_FLAGS} -fPIC" CXXFLAGS="${RPM_OPT_FLAGS} -fPIC -std=c++11" ./configure \
CFLAGS="${RPM_OPT_FLAGS} -fPIC" CXXFLAGS="${RPM_OPT_FLAGS} -fPIC" ./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \
--enable-debug=no \
--enable-static=yes \
--enable-shared=no \
--enable-mariadb=yes \
2021-07-23 08:21:22 +00:00
--enable-ssl=no \
2021-07-22 08:24:03 +00:00
--enable-wide-char="yes:2w" \
--enable-libunwind=no
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
2021-07-22 08:28:49 +00:00
### rm -f $RPM_BUILD_ROOT%{_bindir}/hio-* ## delete binaries from the bin directory.
2021-07-22 08:24:03 +00:00
%check
make check
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.a