auto-import changelog data from libcap-1.10-15.src.rpm

Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
Sat Jan 04 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
- set execute bits on library so that requires are generated.
Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
- Removed %name macro sillyness from package Summary, description text,
    etc.
- Removed archaic Prefix: tag
- lib64 fixes everywhere to use _lib, _libdir, etc
- Removed deletion of RPM_BUILD_DIR from %clean section
- Added -q flag to setup macro
- Severely cleaned up spec file, and removed usage of perl
This commit is contained in:
cvsdist 2004-09-09 07:22:01 +00:00
parent 0eb7206aa7
commit c26ace6f71

View File

@ -1,6 +1,6 @@
Name: libcap
Version: 1.10
Release: 12
Release: 15
Summary: Library for getting and setting POSIX.1e capabilities
Source: ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/%{name}-%{version}.tar.bz2
License: BSD-like and LGPL
@ -9,67 +9,84 @@ Patch1: libcap-1.10-userland.patch
Patch2: libcap-1.10-shared.patch
Patch3: libcap-1.10-alpha.patch
Group: System Environment/Libraries
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.
%package devel
Summary: Development files for %{name}
Summary: Development files for libcap
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files (Headers, libraries for static linking, etc) for %{name}.
Development files (Headers, libraries for static linking, etc) for libcap.
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.
Install %{name}-devel if you want to develop or compile applications using
%{name}.
Install libcap-devel if you want to develop or compile applications using
libcap.
%prep
%setup
%setup -q
# FIXME: Is this really required still?
%patch -p1 -b .ia64
%ifarch alpha
# FIXME: Is this really required still?
%patch3 -p1 -b .alpha
%endif
%patch1 -p1 -b .userland
%patch2 -p1 -b .shared
perl -pi -e "s,^COPTFLAGS=.*,COPTFLAG=$RPM_OPT_FLAGS,g" Make.Rules
perl -pi -e 's,^man_prefix=.*,man_prefix=\$\(prefix)/share,g' Make.Rules
%build
make prefix=/usr
make PREFIX=%{_prefix} LIBDIR=%{_libdir}
%install
rm -rf $RPM_BUILD_ROOT
make install prefix=%{_prefix} FAKEROOT=$RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/lib
mv $RPM_BUILD_ROOT%{_libdir}/* $RPM_BUILD_ROOT/lib
rm -rf $RPM_BUILD_ROOT%{_libdir}
rm -rf ${RPM_BUILD_ROOT}
make install FAKEROOT=${RPM_BUILD_ROOT} \
LIBDIR=${RPM_BUILD_ROOT}/%{_lib} \
SBINDIR=${RPM_BUILD_ROOT}/%{_sbindir} \
INCDIR=${RPM_BUILD_ROOT}/%{_includedir} \
MANDIR=${RPM_BUILD_ROOT}/%{_datadir}/man \
COPTFLAG="$RPM_OPT_FLAGS"
chmod +x ${RPM_BUILD_ROOT}/%{_lib}/*.so.*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/lib/*.so.*
/%{_lib}/*.so.*
%{_sbindir}/*
%files devel
%defattr(-,root,root)
%{_prefix}/include/*
/lib/*.so
%{_includedir}/*
/%{_lib}/*.so
%{_mandir}/man2/*
%{_mandir}/man3/*
%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
rm -rf ${RPM_BUILD_ROOT}
%changelog
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
- set execute bits on library so that requires are generated.
* Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
- Removed %%name macro sillyness from package Summary, description text, etc.
- Removed archaic Prefix: tag
- lib64 fixes everywhere to use _lib, _libdir, etc
- Removed deletion of RPM_BUILD_DIR from %%clean section
- Added -q flag to setup macro
- Severely cleaned up spec file, and removed usage of perl
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
- build with -fpic