sstrings/sstrings.spec

Name: sstrings
Summary: Handle C strings in a safe way
Version: 2.0.1
Release: 1
License: GPL
Group: Development/Libraries
URL: http://klingsor.informatik.uni-freiburg.de/projects/sstrings/
Description: Safe Strings is a small C library that handles C strings in a safe way. The functions of this library look at the necessary space for the operations and try to reserve that space (with malloc or realloc). The functions only begin working with their tasks when the memory allocation is successful.

CentOS 7 x86_64

The build could not start because the following file is missing: sstrings-2.0.1.tar.bz2

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: sstrings-2.0.1.tar.bz2

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: pabloy$pcpool,mathematik,uni-freiburg,de

Summary: Handle C strings in a safe way
Name: sstrings
Version: 2.0.1
Release: 1%{?dist}
License: GPL
Group: Development/Libraries
URL: http://klingsor.informatik.uni-freiburg.de/projects/sstrings/

Source: http://klingsor.informatik.uni-freiburg.de/projects/sstrings/sstrings-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: automake, autoconf, gcc-c++

%description
Safe Strings is a small C library that handles C strings in a safe way.
The functions of this library look at the necessary space for the operations
and try to reserve that space (with malloc or realloc). The functions only
begin working with their tasks when the memory allocation is successful.

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

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall

%post
/sbin/ldconfig 2>/dev/null

%postun
/sbin/ldconfig 2>/dev/null

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO
%doc %{_mandir}/man3/ss_string*
%doc %{_mandir}/man3/strrstr*
%doc %{_mandir}/man5/sstrings*
%{_libdir}/libsstrings2.so.*
%{_datadir}/sstrings/

%files devel
%defattr(-, root, root, 0755)
%{_includedir}/sstrings2.h
%{_libdir}/libsstrings2.a
%{_libdir}/libsstrings2.so
%exclude %{_libdir}/*.la

%changelog
* Tue Nov 14 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.1-1
- Update to release 2.0.1.

* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.0.4-1.2
- Rebuild for Fedora Core 5.

* Thu Jul 21 2005 Dries Verachtert <dries@ulyssis.org> - 1.0.4-1
- Update to release 1.0.4.

* Tue Jul 12 2005 Dries Verachtert <dries@ulyssis.org> - 1.0.3-1
- Initial package.