File glcapture-pulse.spec of Package glcapture-pulse

Name: glcapture-pulse
Summary: OpenGL screen capture tools
Version: 0.5.8
Release: 1
License: GPL
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2


BuildRoot: %{_tmppath}/build-root-%{name}
Distribution: openSUSE 12.1
Prefix: /usr
Url: http://nullkey.ath.cx/projects/glc

BuildRequires:  Mesa Mesa-devel
BuildRequires:  xorg-x11-libX11-devel xorg-x11-devel
BuildRequires:  alsa-devel libpng-devel pulseaudio-devel
BuildRequires:  libpacketstream0-devel libelfhacks0-devel
BuildRequires:  yasm cmake gcc-c++
BuildRequires:	libpacketstream0 libelfhacks0
Requires:	libpacketstream0 libelfhacks0
Obsoletes:	glcapture
Provides:	glcapture
Requires:	libglcapturepulse0 = %{version}


%description
glc is an ALSA & OpenGL capture tool for Linux. It consists of a generic video capture, playback and processing library and a set of tools built around that library. glc should be able to capture any application that uses ALSA for sound and OpenGL for drawing. It is still a relatively new project but already has a long list of features.
This package contains a version with pulseaudio support.

%debug_package

%package devel
Summary: OpenGL screen capture tools, include files
Group: System/Libraries
%description devel
glc is an ALSA & OpenGL capture tool for Linux. It consists of a generic video capture, playback and processing library and a set of tools built around that library. glc should be able to capture any application that uses ALSA for sound and OpenGL for drawing. It is still a relatively new project but already has a long list of features.
openGL screen capture, include files

%package -n libglcapturepulse0
Summary: OpenGL screen capture tools, dynamic libraries
Group: System/Libraries
Obsoletes:  libglcapture0
Provides:   libglcapture0
%description -n libglcapturepulse0
glc is an ALSA & OpenGL capture tool for Linux. It consists of a generic video capture, playback and processing library and a set of tools built around that library. glc should be able to capture any application that uses ALSA for sound and OpenGL for drawing. It is still a relatively new project but already has a long list of features.
openGL screen capture, dynamic libraries

%prep

%setup -q

%build
%ifarch x86_64
MLIBDIR=lib64
%else
MLIBDIR=lib
%endif

CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
cmake . \
         -DCMAKE_INSTALL_PREFIX:PATH="%{prefix}" \
         -DCMAKE_BUILD_TYPE:STRING="Release" \
         -DCMAKE_C_FLAGS_RELEASE_RELEASE:STRING="${CFLAGS}" \
	 -DMLIBDIR="${MLIBDIR}"

make -j 2

%install
make DESTDIR=$RPM_BUILD_ROOT install

cd $RPM_BUILD_ROOT



%clean
rm -rf $RPM_BUILD_ROOT

%post -n libglcapturepulse0 -p /sbin/ldconfig
%postun -n libglcapturepulse0 -p /sbin/ldconfig

%files 
%defattr(-,root,root,0755)

/usr/bin/glc-capture                      
/usr/bin/glc-play                         

%files devel
%defattr(-,root,root,0755)
%dir /usr/include/glc
%dir /usr/include/glc/capture
%dir /usr/include/glc/common
%dir /usr/include/glc/core
%dir /usr/include/glc/export
%dir /usr/include/glc/play
/usr/include/glc/capture/alsa_capture.h   
/usr/include/glc/capture/alsa_hook.h      
/usr/include/glc/capture/audio_capture.h  
/usr/include/glc/capture/gl_capture.h     
/usr/include/glc/common/core.h
/usr/include/glc/common/glc.h
/usr/include/glc/common/log.h
/usr/include/glc/common/state.h
/usr/include/glc/common/thread.h
/usr/include/glc/common/util.h
/usr/include/glc/common/version.h
/usr/include/glc/core/color.h
/usr/include/glc/core/copy.h
/usr/include/glc/core/file.h
/usr/include/glc/core/info.h
/usr/include/glc/core/pack.h
/usr/include/glc/core/rgb.h
/usr/include/glc/core/scale.h
/usr/include/glc/core/tracker.h
/usr/include/glc/core/ycbcr.h
/usr/include/glc/export/img.h
/usr/include/glc/export/wav.h
/usr/include/glc/export/yuv4mpeg.h
/usr/include/glc/play/alsa_play.h
/usr/include/glc/play/demux.h
/usr/include/glc/play/gl_play.h

%files -n libglcapturepulse0
%defattr(-,root,root,0755)
%{_libdir}/libglc-capture.so
%{_libdir}/libglc-core.so
%{_libdir}/libglc-core.so.0
%{_libdir}/libglc-export.so
%{_libdir}/libglc-hook.so
%{_libdir}/libglc-play.so
%{_libdir}/libglc-capture.so.0
%{_libdir}/libglc-capture.so.%{version}
%{_libdir}/libglc-core.so.%{version}
%{_libdir}/libglc-export.so.0
%{_libdir}/libglc-export.so.%{version}
%{_libdir}/libglc-hook.so.0
%{_libdir}/libglc-hook.so.%{version}
%{_libdir}/libglc-play.so.0
%{_libdir}/libglc-play.so.%{version}

%changelog