LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libfixposix.spec of Package libfixposix (Project home:sionescu)

Name:     libfixposix
Summary:  POSIX syscall wrappers
Version:  0.4.3
Release:  0
License:  BSL-1.0
Group:    Development/Libraries/C and C++
URL:      https://github.com/sionescu/%{name}
Source:   https://github.com/sionescu/%{name}/releases/download/v%{version}/%{name}_%{version}.tar.gz

%define srcdir %{name}

BuildRequires:  check-devel pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Thin wrapper over POSIX syscalls and some replacement functionality, most notably lfp_spawn().

%package -n libfixposix3
Summary:        Shared library for libfixposix
Group:          Development/Libraries/C and C++

%description -n libfixposix3
Thin wrapper over POSIX syscalls.

%package -n libfixposix-devel
Summary:        Development files
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       libfixposix3 = %{version}-%{release}
Provides:       %{name}-static = %{version}-%{release}

%description devel
Header files, static libraries and API documentation for using libfixposix.

%setup -q -n %{srcdir}

%configure --enable-static --with-pic --enable-tests
make %{?_smp_mflags}

make %{?_smp_mflags} check

make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libfixposix3 -p /sbin/ldconfig
%postun -n libfixposix3 -p /sbin/ldconfig

%files -n libfixposix3

%files -n libfixposix-devel