moved all files to the top-level

This commit is contained in:
2022-10-02 19:30:14 +09:00
parent e03b9bd9a9
commit 384925992c
140 changed files with 0 additions and 0 deletions

75
pkgs/hio.spec.in Normal file
View File

@ -0,0 +1,75 @@
%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 \
--enable-ssl=no \
--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
### rm -f $RPM_BUILD_ROOT%{_bindir}/hio-* ## delete binaries from the bin directory.
%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