V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX  ›  Linux

rpmbuild 包名称 ?

  •  
  •   station · 2017-01-27 09:54:14 +08:00 · 2599 次点击
    这是一个创建于 2889 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近在学 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
    4 条回复    2017-01-27 13:59:14 +08:00
    cos
        1
    cos  
       2017-01-27 10:56:34 +08:00
    楼主好敬业,大年三十还这么勤奋。。。。
    station
        2
    station  
    OP
       2017-01-27 11:02:56 +08:00
    @cos 没什么好玩的,只好这样咯
    jyf007
        3
    jyf007  
       2017-01-27 13:50:04 +08:00 via Android
    偶然间用了一下 我觉得这个比 debian 打包简单多了
    mengzhuo
        4
    mengzhuo  
       2017-01-27 13:59:14 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3450 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:44 · PVG 08:44 · LAX 16:44 · JFK 19:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.