Mercurial > geeqie
changeset 418:4043254aee5b
improved spec file
author | nadvornik |
---|---|
date | Sat, 19 Apr 2008 09:49:14 +0000 |
parents | 440979320308 |
children | ce5316d2e2d0 |
files | geeqie.spec.in |
diffstat | 1 files changed, 58 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/geeqie.spec.in Sat Apr 19 09:36:30 2008 +0000 +++ b/geeqie.spec.in Sat Apr 19 09:49:14 2008 +0000 @@ -1,18 +1,39 @@ -Summary: Graphics file browser utility. -Summary(fr): Explorateur de fichiers graphiques -Summary(es): Navegador de archivos gráficos -Summary(it): Visualizzatore di archivi grafici -Name: geeqie -Version: @VERSION@ -Release: 1 -License: GPL -Group: Applications/Multimedia -Source: http://prdownloads.sourceforge.net/geeqie/geeqie-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root +# norootforbuild -URL: http://geeqie.sourceforge.net +BuildRequires: gtk2-devel gcc-c++ +%if 0%{?suse_version} +BuildRequires: liblcms-devel +%if %suse_version < 1030 +%define _prefix /opt/gnome +%define _sysconfdir /etc%{prefix} +# workaround for gtk2 include conflicts on older SUSE versions: +%define _includedir %{_usr} +%endif +%else +BuildRequires: lcms-devel +%endif +%if 0%{?suse_version} > 1010 +BuildRequires: libexiv2-devel +%endif +%if 0%{?fedora_version} +BuildRequires: exiv2-devel +%endif +%if 0%{?mandriva_version} > 2007 +BuildRequires: libexiv2-devel +%endif -Requires: gtk2 >= 2.4.0 + +Summary: Graphics file browser utility. +Summary(fr): Explorateur de fichiers graphiques +Summary(es): Navegador de archivos gráficos +Summary(it): Visualizzatore di archivi grafici +Name: geeqie +Version: @VERSION@ +Release: 0 +License: GNU General Public License version 2 or later (GPL v2 or later) +Group: Productivity/Graphics/Viewers +Source: geeqie-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Geeqie is a browser for graphics files. @@ -23,54 +44,51 @@ %description -l fr Geeqie est un explorateur de fichiers graphiques. Il permet d'un simple clic l'affichage de vos fichiers graphiques. -Les capacités suivantes sont incluses: vue d'imagettes, zoom, -filtres et support d'éditeurs externes. +Les capacités suivantes sont incluses: vue d'imagettes, zoom, +filtres et support d'éditeurs externes. %description -l es -Geeqie es un navegador de archivos gráficos. -Ofrece visualizar sus archivos gráficos con sólo hacer un clic. -Incluye visualización de miniaturas, zoom, filtros y soporte para +Geeqie es un navegador de archivos gráficos. +Ofrece visualizar sus archivos gráficos con sólo hacer un clic. +Incluye visualización de miniaturas, zoom, filtros y soporte para editores externos. %description -l it -Geeqie è un visualizzatore di archivi grafici. -Offre la possibilità di visualizzare i tuoi files grafici grazie ad un singolo +Geeqie è un visualizzatore di archivi grafici. +Offre la possibilità di visualizzare i tuoi files grafici grazie ad un singolo click. Include la rappresentazione tramite miniature e gli strumenti di zoom e filtraggio. Supporta anche l'uso di editor grafici esterni. %prep -%setup +%setup -q %build -if [ ! -f configure ]; then - CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%{_prefix} -else - CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} -fi +rename no nb po/no.* +%__sed -i "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in configure +%configure -make - -mkdir html -cp doc/*.html doc/*.txt html/. +%__make %{?jobs:-j%{jobs}} \ + helpdir="%{_docdir}/%{name}/html" \ + readmedir="%{_docdir}/%{name}" %install -rm -rf $RPM_BUILD_ROOT +make install DESTDIR=%{buildroot} \ + helpdir="%{_docdir}/%{name}/html" \ + readmedir="%{_docdir}/%{name}" -make mandir=$RPM_BUILD_ROOT%{_mandir} bindir=$RPM_BUILD_ROOT%{_bindir} \ - prefix=$RPM_BUILD_ROOT%{_prefix} install +%__install AUTHORS COPYING ChangeLog README "%{buildroot}/%{_docdir}/%{name}/" %clean -rm -rf $RPM_BUILD_ROOT +%__rm -rf "%{buildroot}" -%files -%defattr(-, root, root) - -%doc README COPYING TODO html +%files +%defattr(-,root,root) +%doc %{_docdir}/%{name} %{_bindir}/geeqie -%{_datadir}/locale/*/*/* +%{_datadir}/locale/*/LC_MESSAGES/*.mo %{_datadir}/applications/geeqie.desktop %{_datadir}/pixmaps/geeqie.png -%{_mandir}/man?/* +%{_mandir}/man1/geeqie*