File libsecprog.spec of Package libsecprog
#
# spec file for package libsecprog (Version 0.8)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libsecprog
Url: http://www.suse.de/~thomas/projects/secproglib/index.html
Summary: Secure Replacements for Problematic C Functions
Version: 0.8
Release: 89
License: GPL v2 or later
Group: Development/Libraries/C and C++
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}_str-with-n-equal-zero.diff
Patch2: %{name}-%{version}_strliteralcmp.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The "Secure Programming Library" provides several functions that should
serve as a replacement for problematic C functions from glibc. Besides
the replacement functions, there are some helper functions, such as
safe_reopen() or sigprotection(), that can be used for developing
exposed applications.
Authors:
--------
Thomas Biege <thomas@suse.de>
%package devel
Group: Development/Libraries/C and C++
Summary: Secure Replacements for Problematic C Functions
Requires: %{name} = %{version} glibc-devel
%description devel
The "Secure Programming Library" provides several functions that should
serve as a replacement for problematic C functions from glibc. Besides
the replacement functions there are some helper-functions (like:
safe_reopen() or sigprotection()) that can be used for developing
exposed applications.
Authors:
--------
Thomas Biege <thomas@suse.de>
%prep
%setup -q -n libsecprog
%patch1 -p1
%patch2 -p0
%build
autoreconf --install
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%attr(555,root,root) %{_libdir}/libsecprog.so.*
%files devel
%defattr(-,root,root)
%attr(555,root,root) %{_libdir}/libsecprog.so
%attr(444,root,root) /usr/include/secprog.h
%doc %attr(444,root,root) %{_mandir}/man3/secprog.3.*
%exclude %{_libdir}/libsecprog.la
%changelog
* Wed Dec 26 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-* error.
- libsecprog.la has empty dependency_libs and hence has been removed.
- disable static libraries
- -devel package should required base package.
* Tue Jan 09 2007 - thomas@suse.de
- added patch to remove compiler warning (bug #232114)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 13 2005 - thomas@suse.de
- added patch to handle n == 0, thanks to Ilja van Sprundel
* Mon Feb 21 2005 - thomas@suse.de
- removed insecure rm call from spec file
* Thu Apr 22 2004 - thomas@suse.de
- initial packaging version 0.8