ALT Linux repositórios
Group :: Sistema/Bibliotecas
RPM: libjsw
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: libjsw
Version: 1.5.5
Release: alt1
Summary: UNIX joystick driver wrapper library
License: GPL
Group: System/Libraries
Url: http://wolfpack.twu.net/libjsw/index.html
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://wolfpack.twu.net/users/wolfpack/%name-%version.tar.bz2
# Automatically added by buildreq on Fri Feb 18 2005
BuildRequires: gcc-c++ glib-devel gtk+-devel libstdc++-devel xorg-x11-devel xorg-x11-libs
Provides: %name.so
%description
The UNIX Joystick Driver Wrapper Library and Calibrator (aka libjsw) provides
the programmer with the assistance to easily code applications that need to
use the joystick driver and a convience to users by storing the calibration
information in a .joystick calibration file
%package devel
Summary: Headers for developing programs that will use %name
Group: Development/C
Requires: %name = %version
%description devel
This package contains the headers that programmers will need to develop
applications which will use %name.
%package calibrator
Summary: Joystick calibrator
Group: Development/C
Requires: %name = %version
%description calibrator
Joystick calibrator itself
%prep
%setup -q
DIRS="jscalibrator libjsw"
for DIR in $DIRS; do
subst 's|^PREFIX = /usr|PREFIX = \$(RPM_BUILD_ROOT)%prefix|g' $DIR/Makefile
subst 's|^CFLAGS = [^\\]*|CFLAGS = \$(RPM_OPT_FLAGS) -fPIC|g' $DIR/Makefile.Linux
done
subst 's|^LIB_DIRS =|LIB_DIRS = -L../libjsw|g' jscalibrator/Makefile
subst 's|<jsw.h>|"../include/jsw.h"|' jscalibrator/jc*.*
%build
cd libjsw
make -f Makefile.Linux
ln -s libjsw.so.* libjsw.so
cd -
cd jscalibrator
make
cd -
%install
cd libjsw
%makeinstall JSW_MAN_DIR=$RPM_BUILD_ROOT%_mandir/man3
cd -
cd jscalibrator
%makeinstall MAN_DIR=$RPM_BUILD_ROOT%_mandir/man1
cd -
%post
%post_ldconfig
%postun
%postun_ldconfig
%files
%doc AUTHORS INSTALL LICENSE README jswdemos
%_libdir/lib*.so.*
# Strange so loading?
%_libdir/*.so
%files devel
%_includedir/*
%_man3dir/*
%files calibrator
%_bindir/*
%_man1dir/*
%_datadir/icons/*
%_datadir/libjsw
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.5.5
Release: alt1
Summary: UNIX joystick driver wrapper library
License: GPL
Group: System/Libraries
Url: http://wolfpack.twu.net/libjsw/index.html
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://wolfpack.twu.net/users/wolfpack/%name-%version.tar.bz2
# Automatically added by buildreq on Fri Feb 18 2005
BuildRequires: gcc-c++ glib-devel gtk+-devel libstdc++-devel xorg-x11-devel xorg-x11-libs
Provides: %name.so
%description
The UNIX Joystick Driver Wrapper Library and Calibrator (aka libjsw) provides
the programmer with the assistance to easily code applications that need to
use the joystick driver and a convience to users by storing the calibration
information in a .joystick calibration file
%package devel
Summary: Headers for developing programs that will use %name
Group: Development/C
Requires: %name = %version
%description devel
This package contains the headers that programmers will need to develop
applications which will use %name.
%package calibrator
Summary: Joystick calibrator
Group: Development/C
Requires: %name = %version
%description calibrator
Joystick calibrator itself
%prep
%setup -q
DIRS="jscalibrator libjsw"
for DIR in $DIRS; do
subst 's|^PREFIX = /usr|PREFIX = \$(RPM_BUILD_ROOT)%prefix|g' $DIR/Makefile
subst 's|^CFLAGS = [^\\]*|CFLAGS = \$(RPM_OPT_FLAGS) -fPIC|g' $DIR/Makefile.Linux
done
subst 's|^LIB_DIRS =|LIB_DIRS = -L../libjsw|g' jscalibrator/Makefile
subst 's|<jsw.h>|"../include/jsw.h"|' jscalibrator/jc*.*
%build
cd libjsw
make -f Makefile.Linux
ln -s libjsw.so.* libjsw.so
cd -
cd jscalibrator
make
cd -
%install
cd libjsw
%makeinstall JSW_MAN_DIR=$RPM_BUILD_ROOT%_mandir/man3
cd -
cd jscalibrator
%makeinstall MAN_DIR=$RPM_BUILD_ROOT%_mandir/man1
cd -
%post
%post_ldconfig
%postun
%postun_ldconfig
%files
%doc AUTHORS INSTALL LICENSE README jswdemos
%_libdir/lib*.so.*
# Strange so loading?
%_libdir/*.so
%files devel
%_includedir/*
%_man3dir/*
%files calibrator
%_bindir/*
%_man1dir/*
%_datadir/icons/*
%_datadir/libjsw
%changelog
…
Todas as alterações você pod ver aqui