- Summary: a terse one-line description of hello.
- Name: hello
- Version: 1.0
- Release: 1
- License: Freely redistributable without restriction
- Group: Applications/Productivity
- Source: hello-1.0.tar.gz
- BuildRoot: %{_tmppath}/%{name}-root
- BuildArch: i686
- URL: http://www.hello.org
- PreReq: pam
- Requires: httpd
- BuildRequires: gcc
- %description
- this is a test
- %prep
- %setup -q
- %build
- make
- %install
- rm -rf ${RPM_BUILD_ROOT}
- mkdir -p ${RPM_BUILD_ROOT}/usr/local/{lib,bin,share/man/man1}
- mkdir -p ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
- install libhello.so.1.0 ${RPM_BUILD_ROOT}/usr/local/lib
- install hello ${RPM_BUILD_ROOT}/usr/local/bin
- install hello.1 ${RPM_BUILD_ROOT}/usr/local/share/man/man1
- install hello.conf ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
- %files
- %defattr(-,root,root)
- %config(noreplace) /etc/ld.so.conf.d/hello.conf
- /usr/local/lib/libhello.so.1.0
- /usr/local/bin/hello/
- %doc /usr/local/share/man/man1/hello.1
- %doc README
- %clean
- rm -rf ${RPM_BUILD_ROOT}
- make clean
- %post
- ln -sf libhello.so.1.0 /usr/local/lib/libhello.so.1
- ln -sf libhello.so.1 /usr/local/lib/libhello.so
- /sbin/ldconfig
- %changelog
- * Sat Oct 4 2010 Chen <chen@redhat.com> 1.0-1
- - first build