# norootforbuild Name: screengrab Version: 0.9.96 Release: 3%{?dist} License: GPLv2 URL: http://screengrab.doomer.org/ Source0: http://screengrab.doomer.org/download/screengrab-0_9_96_/#/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-usercxx.patch Summary: Screen grabber BuildRequires: cmake, pkgconfig(QtGui), libqxt-devel, desktop-file-utils %description This is a crossplatform application designed to quickly get screenshots ScreenGrab created using the Qt Framework. Main features: * Get desktop screenshots * Get active window screenshots * Get secreenshots of desktop selection area * Copy screenshot to clipboard * Saving your image files in formats PNG or JPEG or BMP * Ability to set delay in getting screenshots (from 1 to 90 seconds) * Hiding the main window (with recovery) ScreenGrab at the time of the screenshot * Ability to minimize application to system tray, and control via context menu * Getting screenshots using global shortcuts * Auto-save screenshot when received * Ability to insert the current date and time in filename and save %prep %setup -q %patch0 -p 0 # be assured %{__rm} -rf src/3rdparty %build mkdir build pushd build %cmake -DCMAKE_BUILD_TYPE=release -DSG_USE_SYSTEM_QXT=ON -DBUILD_SHARED_LIBS:BOOL=OFF .. make %{?_smp_mflags} popd %install pushd build make DESTDIR=%{buildroot} install popd desktop-file-validate %{buildroot}/%{_datadir}/applications/screengrab.desktop # hack rm -rf %{buildroot}/%{_datadir}/doc %files %doc docs/* %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name} %changelog * Sat Mar 16 2013 TI_Eugene 0.9.96-3 - User CXXFLAGS patch improved * Sat Mar 08 2013 TI_Eugene 0.9.96-2 - src/3rdparty removed (built-in qxt) * Fri Mar 08 2013 TI_Eugene 0.9.96-1 - next version - 0.9.96 - spec fix: License set to GPLv2 - spec fix: Group tag removed - spec fix: %%description copy/pasted from project home webpage - spec fix: %%install - 'rm buildroot' removed; 'rm' changed to %%{__rm} * Thu Mar 07 2013 TI_Eugene 0.9.1-3 - spec fix: License tag changed to GPL+LGPL+BSD - spec fix: cmake call changed to %%cmake macro with BUILD_SHARED_LIBS=OFF - spec fix: Source0 tag changed to URL - spec fix: previous changelog record expanded * Thu Mar 07 2013 TI_Eugene 0.9.1-2 - spec fix: gcc-c++ removed from BuildRequires - spec fix: description wraped - spec fix: %%clean section removed - spec fix: %%defattr removed - spec fix: desktop-file-validate added - spec fix: Vendor tag removed - spec fix: changelog cutted up to starting in Fedora - spec fix: Source tag changed to non-URL with comments - spec fix: License set to GPLv2 * Thu Mar 07 2013 TI_Eugene 0.9.1-1 - initial packaging for Fedora