Search
SailfishOS Open Build Service
>
Projects
>
home:nielnielsen
>
libstrl0
> libstrl0.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libstrl0.spec of Package libstrl0
# # spec file for package libstrl0 # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013-2014 Szőts Ákos <szotsaki@gmail.com> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _name libstrl Name: libstrl0 Version: 0.5.1 Release: 0 Summary: A C library to provide strlcpy() and strlcat() License: GPL-3.0+ Group: System/Libraries Url: http://ohnopub.net/~ohnobinki/libstrl/ Source: ftp://mirror.ohnopub.net/mirror/%{_name}-%{version}.tar.bz2 BuildRequires: pkgconfig(pkg-config) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libstrl is an attempt to address the strlcpy() problem. BSD systems ship with strlcpy(), strlcat(), wcslcpy(), and wcslcat(); GNU systems ship with strnlen(), wcsnlen(), getline(), and getdelim(). Both the strl* and strn* families of functions have valid uses. This library is meant to discourage developers from bundling their own versions of the respective functions for portability's sake. %package -n %{name}-devel Summary: A C library to provide strlcpy() and strlcat() Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description -n %{name}-devel libstrl is an attempt to address the strlcpy() problem. %prep %setup -q -n %{_name}-%{version} %build %configure --disable-static --docdir=%{_docdir}/%{name}-devel make %{?_smp_mflags} %check make %{?_smp_mflags} check %install make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f -name "*.la" -delete -print %post -n %{name} -p /sbin/ldconfig %postun -n %{name} -p /sbin/ldconfig %files %defattr(-,root,root) %doc README COPYING %{_libdir}/libstrl.so.* %files -n %{name}-devel %defattr(-,root,root) %{_includedir}/strl.h %{_libdir}/pkgconfig/libstrl.pc %{_libdir}/libstrl.so %changelog