rpmbuild 包名称 ?

2017-01-27 09:54:14 +08:00
 station
最近在学 rpm 构建

http://i1.piimg.com/4851/15443e4ab46f21d3.png



Summary: The compression and decompression library
Name: zlib
Version: 1.2.11
Release: 1%{?dist}
License: zlib and Boost
Group: System Environment/Libraries
URL: http://www.zlib.net/
Source: http://www.zlib.net/zlib-%{version}.tar.xz

#BuildRequires: automake, autoconf, libtool, pkgconfig

%description
Zlib is a general-purpose, patent-free, lossless data compression
library which is used by many different programs.


%package devel
Summary: Header files and libraries for Zlib development
Group: Development/Libraries
Requires: %{name}-%{version}-%{release}

%description devel
The zlib-devel package contains the header files and libraries needed
to develop programs that use the zlib compression and decompression
library.


%prep
%setup -q

%build
export LDFLAGS="$LDFLAGS -Wl,-z,relro"
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} --64
make %{?_smp_mflags}

%check
make test

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/libz.a

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files
%doc README ChangeLog FAQ
%{_libdir}/libz.so.*

%files devel
%doc README doc/algorithm.txt test/example.c
%{_libdir}/libz.so
%{_libdir}/pkgconfig/zlib.pc
%{_includedir}/zlib.h
%{_includedir}/zconf.h
%{_mandir}/man3/zlib.3*

%changelog
2598 次点击
所在节点    Linux
4 条回复
cos
2017-01-27 10:56:34 +08:00
楼主好敬业,大年三十还这么勤奋。。。。
station
2017-01-27 11:02:56 +08:00
@cos 没什么好玩的,只好这样咯
jyf007
2017-01-27 13:50:04 +08:00
偶然间用了一下 我觉得这个比 debian 打包简单多了
mengzhuo
2017-01-27 13:59:14 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/337110

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX