Group :: Sistema/Bibliotecas
RPM: CQRlib
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: CQRlib
Version: 1.1.2
Release: alt2
Summary: ANSI C API for quaternion arithmetic and rotation
License: LGPLv2+
Group: System/Libraries
Url: http://cqrlib.sourceforge.net/
Source: http://downloads.sourceforge.net/project/cqrlib/cqrlib/CQRlib-%version/CQRlib-%version.tar.gz
Patch: CQRlib-1.1.2-alt-debian-makefile.patch
Packager: Michael Shigorin <mike at altlinux.org>
# Automatically added by buildreq on Fri Sep 23 2011
# optimized out: libstdc++-devel
BuildRequires: gcc-c++
%description
CQRlib is an ANSI C implementation of a utility library for quaternion
arithmetic and quaternion rotation math.
%package -n lib%name
Summary: Shared library for CQRlib
Group: System/Libraries
%description -n lib%name
This package includes the shared library files
for running applications that use CQRlib.
%package -n lib%name-devel
Summary: Development tools for compiling programs using CQRlib
Group: Development/C++
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package includes the header and library files
for developing applications that use CQRlib.
%prep
%setup
%patch -p1
%build
%make_build all CFLAGS="%optflags"
%install
%make_install install INSTALLDIR="%buildroot%prefix"
%if %_lib != lib
mv %buildroot%_usr/{lib,%_lib}
%endif
find %buildroot -name '*.la' -exec rm -f {} ';'
find %buildroot -name '*.a' -exec rm -f {} ';'
%check
make tests
%files -n lib%name
%doc README_CQRlib.html README_CQRlib.txt lgpl.txt
%_libdir/libCQRlib.so.*
%files -n lib%name-devel
%_includedir/cqrlib.h
%_libdir/libCQRlib.so
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.1.2
Release: alt2
Summary: ANSI C API for quaternion arithmetic and rotation
License: LGPLv2+
Group: System/Libraries
Url: http://cqrlib.sourceforge.net/
Source: http://downloads.sourceforge.net/project/cqrlib/cqrlib/CQRlib-%version/CQRlib-%version.tar.gz
Patch: CQRlib-1.1.2-alt-debian-makefile.patch
Packager: Michael Shigorin <mike at altlinux.org>
# Automatically added by buildreq on Fri Sep 23 2011
# optimized out: libstdc++-devel
BuildRequires: gcc-c++
%description
CQRlib is an ANSI C implementation of a utility library for quaternion
arithmetic and quaternion rotation math.
%package -n lib%name
Summary: Shared library for CQRlib
Group: System/Libraries
%description -n lib%name
This package includes the shared library files
for running applications that use CQRlib.
%package -n lib%name-devel
Summary: Development tools for compiling programs using CQRlib
Group: Development/C++
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package includes the header and library files
for developing applications that use CQRlib.
%prep
%setup
%patch -p1
%build
%make_build all CFLAGS="%optflags"
%install
%make_install install INSTALLDIR="%buildroot%prefix"
%if %_lib != lib
mv %buildroot%_usr/{lib,%_lib}
%endif
find %buildroot -name '*.la' -exec rm -f {} ';'
find %buildroot -name '*.a' -exec rm -f {} ';'
%check
make tests
%files -n lib%name
%doc README_CQRlib.html README_CQRlib.txt lgpl.txt
%_libdir/libCQRlib.so.*
%files -n lib%name-devel
%_includedir/cqrlib.h
%_libdir/libCQRlib.so
%changelog
…
Todas as alterações você pod ver aqui