1 Star 0 Fork 7

盼盼/libghttps

forked from zentel/libghttps 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
libghttp.spec 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
zentel 提交于 2016-10-26 09:28 . first upload
%define ver 1.0.9
%define prefix /usr
%define RELEASE 1
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
Summary: GNOME http client library
Name: libghttp
Version: %ver
Release: %rel
Copyright: LGPL
Group: X11/gnome
Source: ftp://ftp.gnome.org/pub/GNOME/libghttp/libghttp-%{ver}.tar.gz
BuildRoot: /var/tmp/ghttp-%{PACKAGE_VERSION}-root
Docdir: %{prefix}/doc
Packager: Christopher Blizzard <blizzard@redhat.com>
URL: http://www.gnome.org/
%description
Library for making HTTP 1.1 requests.
%package devel
Summary: GNOME http client development
Group: X11/gnome
Requires: libghttp
%description devel
Libraries and includes files you can use for libghttp development
%changelog
%prep
%setup
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
fi
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%post
if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
echo "%{prefix}/lib" >> /etc/ld.so.conf
fi
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README doc/ghttp.html
%{prefix}/lib/lib*.so*
%files devel
%defattr(-, root, root)
# %{prefix}/lib/lib*.so
%{prefix}/lib/*a
%{prefix}/include/*
%{prefix}/lib/ghttpConf.sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/pantherfuture/libghttps.git
git@gitee.com:pantherfuture/libghttps.git
pantherfuture
libghttps
libghttps
master

搜索帮助