File screenie.spec of Package screenie
#
# spec file for package screenie
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# norootforbuild
Name: screenie
Version: 0.1git
Release: 1.0
License: GNU Public License v3
Group: Productivity/Graphics/Other
Url: http://code.google.com/p/screenie/
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A small tool to allow you to compose fancy and stylish screenshots
BuildRequires: update-desktop-files
BuildRequires: libqt4-devel >= 4.4
%description
Screenie a small tool to allow you to compose a fancy and stylish screenshots. It is cross-platform (for Linux, Windows and Mac OS X) and very easy to use. You will have
an impressive screenshot in just one minute!
Authors:
--------
Ariya Hidayat
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
qmake
make
# No install target - copy things manually
%install
install -D -m755 screenie $RPM_BUILD_ROOT/usr/bin/screenie
# desktop entry + icon
%suse_update_desktop_file -r -i screenie Utility DesktopUtility
install -D -m644 resources/screenie.png $RPM_BUILD_ROOT/usr/share/pixmaps/screenie.png
%files
%defattr(-,root,root)
%{_bindir}/screenie
%{_datadir}/applications/screenie.desktop
%{_datadir}/pixmaps/screenie.png
%changelog