# # spec file for package libbsd # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # Name: libbsd %define lname libbsd0 Version: 0.4.2 Release: 8.25 Summary: Provides useful functions commonly found on BSD systems License: BSD-3-Clause Group: System Environment/Libraries Url: http://libbsd.freedesktop.org/ #Git-Clone: git://anongit.freedesktop.org/git/libbsd #Git-Web: http://cgit.freedesktop.org/libbsd/ Source: http://libbsd.freedesktop.org/releases/%name-%version.tar.gz #BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: i486 %description This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %package -n %lname Summary: Provides useful functions commonly found on BSD systems Group: Development/Libraries %description -n %lname This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %package devel Summary: Development headers and files for libbsd Group: Development/Libraries Requires: glibc-devel Requires: %lname = %{version} %description devel This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %prep %setup -q %build %configure --with-pic make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} rm -f "%buildroot/%_libdir"/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-, root, root) %{_libdir}/libbsd.so.0* %files devel %defattr(-,root,root) %doc ChangeLog %{_includedir}/bsd %{_libdir}/libbsd.so %{_libdir}/libbsd.a %{_mandir}/man3/* %{_libdir}/pkgconfig/*.pc %changelog * Thu Sep 6 2012 jengelh@inai.de - Avoid unnecessary complex install line on Redhatish - Compact file list, add helpful URLs to specfile * Thu Sep 6 2012 idonmez@suse.com - Fix installation on SLE * Mon Aug 20 2012 crrodriguez@opensuse.org - Version 0.4.2, swithes to autoconf build system. * Fri Feb 17 2012 crrodriguez@opensuse.org - Cleanup spec file for factory submission * Wed Feb 1 2012 jengelh@medozas.de - Remove redundant tags/sections per specfile guideline suggestions - Parallel building using %%_smp_mflags * Fri Oct 21 2011 crrodriguez@opensuse.org - Fix missing headers, bug in spec file [bnc#725800] * Tue Aug 2 2011 crrodriguez@opensuse.org - Update to version 0.3.0 * Fri Jul 30 2010 cristian.rodriguez@opensuse.org - update to version 0.2.0 * Tue Sep 15 2009 crrodriguez@suse.de - update to version 0.1.6 * Sun Jan 4 2009 crrodriguez@suse.de - first package version