added pkgs/hio.spec.in
This commit is contained in:
parent
60ae20fe08
commit
6e52fbb16e
@ -8,3 +8,14 @@ DIST_SUBDIRS = $(SUBDIRS)
|
|||||||
|
|
||||||
distclean-local:
|
distclean-local:
|
||||||
$(RM) -r $(top_srcdir)/autom4te.cache
|
$(RM) -r $(top_srcdir)/autom4te.cache
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
rpm: dist-gzip
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/BUILD"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/SOURCES"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/SRPMS"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/RPMS"
|
||||||
|
cp @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz "@abs_builddir@/pkgs/RPM/SOURCES"
|
||||||
|
rpmbuild --define "_topdir @abs_builddir@/pkgs/RPM" -ba @abs_builddir@/pkgs/hio.spec --target=@build_cpu@
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
|||||||
configure.lineno config.status.lineno
|
configure.lineno config.status.lineno
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
CONFIG_HEADER = $(top_builddir)/lib/hio-cfg.h
|
CONFIG_HEADER = $(top_builddir)/lib/hio-cfg.h
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES = pkgs/hio.spec
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
AM_V_P = $(am__v_P_@AM_V@)
|
AM_V_P = $(am__v_P_@AM_V@)
|
||||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||||
@ -163,9 +163,10 @@ CSCOPE = cscope
|
|||||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \
|
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \
|
||||||
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
|
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
|
||||||
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
|
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
|
||||||
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \
|
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing \
|
||||||
ac/compile ac/config.guess ac/config.sub ac/install-sh \
|
$(top_srcdir)/pkgs/hio.spec.in ac/ar-lib ac/compile \
|
||||||
ac/ltmain.sh ac/missing
|
ac/config.guess ac/config.sub ac/install-sh ac/ltmain.sh \
|
||||||
|
ac/missing
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
top_distdir = $(distdir)
|
top_distdir = $(distdir)
|
||||||
@ -387,6 +388,8 @@ $(top_srcdir)/configure: $(am__configure_deps)
|
|||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
pkgs/hio.spec: $(top_builddir)/config.status $(top_srcdir)/pkgs/hio.spec.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
|
|
||||||
mostlyclean-libtool:
|
mostlyclean-libtool:
|
||||||
-rm -f *.lo
|
-rm -f *.lo
|
||||||
@ -830,6 +833,16 @@ uninstall-am:
|
|||||||
distclean-local:
|
distclean-local:
|
||||||
$(RM) -r $(top_srcdir)/autom4te.cache
|
$(RM) -r $(top_srcdir)/autom4te.cache
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
rpm: dist-gzip
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/BUILD"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/SOURCES"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/SRPMS"
|
||||||
|
mkdir -p "@abs_builddir@/pkgs/RPM/RPMS"
|
||||||
|
cp @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz "@abs_builddir@/pkgs/RPM/SOURCES"
|
||||||
|
rpmbuild --define "_topdir @abs_builddir@/pkgs/RPM" -ba @abs_builddir@/pkgs/hio.spec --target=@build_cpu@
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
|
3
hio/configure
vendored
3
hio/configure
vendored
@ -18963,7 +18963,7 @@ HIO_PROJECT_AUTHOR="${PACKAGE_BUGREPORT}"
|
|||||||
HIO_PROJECT_URL="${PACKAGE_URL}"
|
HIO_PROJECT_URL="${PACKAGE_URL}"
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile lib/Makefile bin/Makefile t/Makefile"
|
ac_config_files="$ac_config_files Makefile lib/Makefile bin/Makefile t/Makefile pkgs/hio.spec"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@ -20006,6 +20006,7 @@ do
|
|||||||
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
||||||
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
|
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
|
||||||
"t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
|
"t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
|
||||||
|
"pkgs/hio.spec") CONFIG_FILES="$CONFIG_FILES pkgs/hio.spec" ;;
|
||||||
|
|
||||||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||||
esac
|
esac
|
||||||
|
@ -812,6 +812,7 @@ AC_CONFIG_FILES([
|
|||||||
lib/Makefile
|
lib/Makefile
|
||||||
bin/Makefile
|
bin/Makefile
|
||||||
t/Makefile
|
t/Makefile
|
||||||
|
pkgs/hio.spec
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
75
hio/pkgs/hio.spec.in
Normal file
75
hio/pkgs/hio.spec.in
Normal 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=yes \
|
||||||
|
--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[0-9][0-9] ## delete binaries from the samples 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
|
Loading…
Reference in New Issue
Block a user