LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File Reveal.spec of Package Reveal (Project home:llunak:attic)

#
# spec file for package Reveal (Version 1.3)
#
# Copyright 2006 Pavel Nemec <pnemec@suse.cz>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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:           Reveal
Version:        1.3
%define clay_version 2007_08_21
BuildRequires:  zlib-devel libjpeg-devel libtiff-devel
BuildRequires:  libexiv2-devel <= 0.17.1
BuildRequires:  update-desktop-files libqt4-devel gcc-c++ fdupes

URL:            http://albumshaper.sourceforge.net/
Release:        1
License:        GPLv2
Source:         clay_%clay_version.tar.bz2
Source1:        Reveal.desktop
Patch0:         disable-translation.patch
Patch1:		common-ressource_path.patch
Patch2:		Reveal-ressource-dir.patch
Patch3:         common-gcc43.patch
Patch4:         common-qmake-defines.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Productivity/Graphics/Viewers
Autoreqprov:    on
Summary:        EXIF Metadata Viewer

%description
Easy to use, cross platform EXIF metadata viewer with
limited editing capabilities. Reveal was designed to present
as many details about how a photo was taken in a clear and
easy to understand format.

Authors:
--------
    Will Stokes <wstokes@gmail.com>

%prep

%setup -q -n clay_%clay_version
%patch0
%patch1
%patch2
%patch3
%patch4

%build
cd projects
qmake Reveal.pro
make


%install
find . -name "*png" -exec chmod -x '{}' \;
find . -type d -name ".svn" | xargs rm -rf
cd projects    
make INSTALL_ROOT=${RPM_BUILD_ROOT} install

cd resources
cd Reveal
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 0644 Reveal.png $RPM_BUILD_ROOT/usr/share/pixmaps/reveal.png
%suse_update_desktop_file -i Reveal

%fdupes %{buildroot}%{_datadir}/Reveal/exifIcons

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc docs/authors.txt docs/changelog_reveal.txt docs/copying.txt
%{_bindir}/%name
%{_bindir}/reveal
%{_datadir}/Reveal
%{_datadir}/applications/Reveal.desktop
%{_datadir}/pixmaps/reveal.png

%changelog