Группа :: Разработка/Прочее
Пакет: libguichan05
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires: libglvnd-devel
# END SourceDeps(oneline)
Group: Development/Other
%add_optflags %optflags_shared
%define oldname compat-guichan05
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: libguichan05
Version: 0.5.0
Release: alt1_36
Summary: Compatibility libraries for older guichan versions
License: BSD
URL: http://guichan.sourceforge.net
Source0: http://downloads.sourceforge.net/guichan/guichan-%{version}-src.tar.gz
Patch0: compat-guichan05-configure-c99.patch
Obsoletes: guichan < 0.6.0
BuildRequires: liballegro-devel, libSDL-devel, libSDL_image-devel, libGL-devel
BuildRequires: libfreeglut-devel, gcc-c++
Source44: import.info
Provides: guichan05 = %{version}-%{release}
Patch33: guichan-0.5.0-alt-underlinkage.patch
%set_verify_elf_method unresolved=relaxed
%description
Guichan is a small, efficient C++ GUI library designed for games. It comes
with a standard set of widgets and can use several different objects for
displaying graphics and grabbing user input.
This package contains compatibility libraries for guichan 0.5
%package devel
Group: Development/Other
Summary: Header and libraries for guichan development
Requires: %{name} = %{version}-%{release}
Provides: guichan05-devel = %{version}-%{release}
%description devel
This package includes header and libraries files for development using
guichan, a small and efficient C++ GUI library designed for games. This
package is needed to build programs written using guichan.
%prep
%setup -q -n guichan-%{version}-src
%patch0 -p1
%patch33 -p1
%build
autoreconf -fisv
%configure
%make_build
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Removing Libtool and static archives
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
# Move some things around for the compat package
mkdir -p $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mv $RPM_BUILD_ROOT%{_includedir}/guichan $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mv $RPM_BUILD_ROOT%{_includedir}/guichan.hpp $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mkdir -p $RPM_BUILD_ROOT%{_libdir}/guichan-0.5
for lib in libguichan libguichan_allegro libguichan_glut libguichan_opengl libguichan_sdl ; do
rm -f $RPM_BUILD_ROOT%{_libdir}/${lib}.so
ln -s ../${lib}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/guichan-0.5/${lib}.so
done
%files
%doc --no-dereference COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_libdir}/libguichan.so.*
%{_libdir}/libguichan_allegro.so.*
%{_libdir}/libguichan_glut.so.*
%{_libdir}/libguichan_opengl.so.*
%{_libdir}/libguichan_sdl.so.*
%files devel
%doc docs/html
%{_includedir}/guichan-0.5
%dir %{_libdir}/guichan-0.5
%{_libdir}/guichan-0.5/libguichan.so
%{_libdir}/guichan-0.5/libguichan_allegro.so
%{_libdir}/guichan-0.5/libguichan_glut.so
%{_libdir}/guichan-0.5/libguichan_opengl.so
%{_libdir}/guichan-0.5/libguichan_sdl.so
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires: libglvnd-devel
# END SourceDeps(oneline)
Group: Development/Other
%add_optflags %optflags_shared
%define oldname compat-guichan05
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: libguichan05
Version: 0.5.0
Release: alt1_36
Summary: Compatibility libraries for older guichan versions
License: BSD
URL: http://guichan.sourceforge.net
Source0: http://downloads.sourceforge.net/guichan/guichan-%{version}-src.tar.gz
Patch0: compat-guichan05-configure-c99.patch
Obsoletes: guichan < 0.6.0
BuildRequires: liballegro-devel, libSDL-devel, libSDL_image-devel, libGL-devel
BuildRequires: libfreeglut-devel, gcc-c++
Source44: import.info
Provides: guichan05 = %{version}-%{release}
Patch33: guichan-0.5.0-alt-underlinkage.patch
%set_verify_elf_method unresolved=relaxed
%description
Guichan is a small, efficient C++ GUI library designed for games. It comes
with a standard set of widgets and can use several different objects for
displaying graphics and grabbing user input.
This package contains compatibility libraries for guichan 0.5
%package devel
Group: Development/Other
Summary: Header and libraries for guichan development
Requires: %{name} = %{version}-%{release}
Provides: guichan05-devel = %{version}-%{release}
%description devel
This package includes header and libraries files for development using
guichan, a small and efficient C++ GUI library designed for games. This
package is needed to build programs written using guichan.
%prep
%setup -q -n guichan-%{version}-src
%patch0 -p1
%patch33 -p1
%build
autoreconf -fisv
%configure
%make_build
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Removing Libtool and static archives
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
# Move some things around for the compat package
mkdir -p $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mv $RPM_BUILD_ROOT%{_includedir}/guichan $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mv $RPM_BUILD_ROOT%{_includedir}/guichan.hpp $RPM_BUILD_ROOT%{_includedir}/guichan-0.5
mkdir -p $RPM_BUILD_ROOT%{_libdir}/guichan-0.5
for lib in libguichan libguichan_allegro libguichan_glut libguichan_opengl libguichan_sdl ; do
rm -f $RPM_BUILD_ROOT%{_libdir}/${lib}.so
ln -s ../${lib}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/guichan-0.5/${lib}.so
done
%files
%doc --no-dereference COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_libdir}/libguichan.so.*
%{_libdir}/libguichan_allegro.so.*
%{_libdir}/libguichan_glut.so.*
%{_libdir}/libguichan_opengl.so.*
%{_libdir}/libguichan_sdl.so.*
%files devel
%doc docs/html
%{_includedir}/guichan-0.5
%dir %{_libdir}/guichan-0.5
%{_libdir}/guichan-0.5/libguichan.so
%{_libdir}/guichan-0.5/libguichan_allegro.so
%{_libdir}/guichan-0.5/libguichan_glut.so
%{_libdir}/guichan-0.5/libguichan_opengl.so
%{_libdir}/guichan-0.5/libguichan_sdl.so
%changelog
…
Полный changelog можно просмотреть здесь