Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > a60c18d40c70371854d38f58f4bb2853 > files > 3

icc_examin-0.47-2.fc13.src.rpm

Name:           icc_examin
Version:        0.47
Release:        2%{?dist}
Summary:        ICC profile viewer and color visualization

Group:          Applications/Multimedia
License:        GPLv2+
URL:            http://www.behrmann.name
Source0:        http://downloads.sourceforge.net/oyranos/icc_examin-%{version}.tar.gz
Patch0:         icc_examin-0.47-fixes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  desktop-file-utils
BuildRequires:  gettext

BuildRequires:  OpenEXR-devel
BuildRequires:  elektra-devel >= 0.7.0
BuildRequires:  ftgl-devel
BuildRequires:  fltk-devel
BuildRequires:  lcms-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libtiff-devel
BuildRequires:  libpng-devel
BuildRequires:  libxml2-devel
BuildRequires:  oyranos-devel >= 0.1.10

BuildRequires:  libXpm-devel

Requires:       oyranos >= 0.1.10
Requires:       dejavu-sans-fonts



%description
ICC Examin is a small utility (Unix name: iccexamin) for the
purpose of watching the internals of ICC profiles, measurement
data (CGATS), color samples (named color profiles), gamut 
visualizations (vrml), video card gamma tables.


%prep
%setup -q
%patch0 -p1 -b .fixes


%build
%configure
make 
#{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

#Remove bundled fonts
rm -rf $RPM_BUILD_ROOT%{_datadir}/fonts/FreeSans.ttf

#Missplaced file
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/hicolor/scalable/iccexamin.png \
 $RPM_BUILD_ROOT%{_datadir}/pixmaps

#This will avoid problem when registering mime type
mv $RPM_BUILD_ROOT%{_datadir}/applications/iccexamin.desktop \
 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

desktop-file-install --vendor "" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --delete-original \
  --mode 644 \
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%post
update-desktop-database &> /dev/null  || :

%postun
update-desktop-database &> /dev/null  || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS BUGS README TODO
%{_bindir}/iccexamin
%{_datadir}/pixmaps/iccexamin.png
%{_datadir}/pixmaps/hicolor/scalable/iccexamin.svg
%{_datadir}/applications/icc_examin.desktop


%changelog
* Sun Aug 22 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.47-2
- Update to 0.47
- Fix description and desktop

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.46-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Fri May 22 2009 kwizart < kwizart at gmail.com > - 0.46-2
- Rebuild for ftgl (#501323)

* Fri Feb 13 2009 kwizart < kwizart at gmail.com > - 0.46-1
- initial spec for Fedora.