Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37824636
en ru br
ALT Linux repos
5.0: 0.3-alt0.3
4.1: 0.3-alt0.3
4.0: 0.3-alt0.2

Group :: System/Libraries
RPM: libixp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libixp
Version: 0.3
Release: alt0.3

Summary: Plan9 file protocol library
License: MIT
Group: System/Libraries

URL: http://www.suckless.org/wiki/libs/libixp
Source: %name-%version-%release.tar

%description
libixp is a stand-alone client/server 9P library.
libixp's server api is based heavily on that of Plan 9's lib9p.

%prep
%setup -q -n %name-%version-%release

%build
%define soname libixp.so.0
cp -p libixp/fcall.h include/ixp_fcall.h
gcc -shared %optflags %optflags_shared -Iinclude libixp/*.c -o %soname -Wl,-soname=%soname,-z,defs
gcc -DVERSION=\"%version-%release\" %optflags -Iinclude cmd/ixpc.c -o ixpc ./%soname

%install
install -pD -m644 include/ixp.h %buildroot%_includedir/ixp.h
install -pD -m644 include/ixp_fcall.h %buildroot%_includedir/ixp_fcall.h
install -pD -m755 %soname %buildroot%_libdir/%soname
ln -s %soname %buildroot%_libdir/libixp.so
install -pD -m755 ixpc %buildroot%_bindir/ixpc
install -pD -m644 man/ixpc.1 %buildroot%_man1dir/ixpc.1

%files
%doc libixp/LICENSE*
%_libdir/%soname

%package devel
Summary: Plan9 file protocol library
Group: Development/C
Requires: %name = %version-%release

%description devel
libixp is a stand-alone client/server 9P library.
libixp's server api is based heavily on that of Plan 9's lib9p.

%files devel
%_libdir/libixp.so
%_includedir/ixp.h
%_includedir/ixp_fcall.h

%package -n ixpc
Summary: Plan9 file protocol client
Group: Networking/File transfer
Requires: %name = %version-%release

%description -n ixpc
ixpc is a client to access a 9P file server from the command line
or from shell scripts.

%files -n ixpc
%_bindir/ixpc
%_man1dir/ixpc.1*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin