!1 add source

Merge pull request !1 from sigui/sgs-refreash
This commit is contained in:
openeuler-ci-bot 2019-12-10 16:31:42 +08:00 committed by Gitee
commit 956fd2e923
3 changed files with 70 additions and 0 deletions

BIN
freeglut-3.0.0.tar.gz Normal file

Binary file not shown.

70
freeglut.spec Normal file
View File

@ -0,0 +1,70 @@
Name: freeglut
Version: 3.0.0
Release: 10
Summary: A freely licensed alternative to the GLUT library
License: MIT
URL: http://freeglut.sourceforge.net
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: https://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
BuildRequires: gcc gcc-c++ cmake libXi-devel libICE-devel
BuildRequires: pkgconfig libGLU-devel libXext-devel libXxf86vm-devel
Provides: glut = 3.7
Obsoletes: glut < 3.7
%description
Freeglut is a free-software/open-source alternative to the OpenGL Utility
Toolkit (GLUT) library. GLUT was originally written to support the sample
programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used
in a wide variety of practical applications because it is simple, widely
available and highly portable.
%package devel
Summary: Freeglut developmental libraries and header files
Requires: %{name} = %{version}-%{release} libGL-devel libGLU-devel
Provides: glut-devel = 3.7
Obsoletes: glut-devel < 3.7
%description devel
This package provides developmental libraries and header files required for
developing or compilingsoftware which links to the freeglut library.
%package help
Summary: Help information and man pages for freeglut
%description help
This package privides man-pages and involved help info for freeglut
%prep
%autosetup -n %{name}-%{version} -a 1 -p1
%build
%{cmake} -DFREEGLUT_BUILD_STATIC_LIBS=OFF .
%make_build
%install
%make_install
install -d $RPM_BUILD_ROOT/%{_mandir}/man3
install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS ChangeLog COPYING
%{_libdir}/libglut.so.3*
%files devel
%{_includedir}/GL/*.h
%{_libdir}/libglut.so
%{_libdir}/pkgconfig/freeglut.pc
%files help
%{_mandir}/man3/*
%doc README doc/*.png doc/*.html
%changelog
* Fri Nov 22 2019 sunguoshuai <sunguoshuai@huawei.com> - 3.0.0-10
- Package init.

BIN
openglut-0.6.3-doc.tar.gz Normal file

Binary file not shown.