%global svn_checkout 1 %global revno 338 Name: jbrout Version: 0.3.%{revno} %if 0%{?svn_checkout} Release: 0.4.svn%{revno}%{?dist} %else Release: 1%{?dist} %endif Summary: Photo manager, written in python/pygtk Group: Applications/Multimedia License: GPLv2 URL: http://jbrout.manatlan.com/ %if 0%{?svn_checkout} # svn export -r %{revno} http://jbrout.googlecode.com/svn/trunk/ jbrout # tar cvjf jbrout.tar.bz2 jbrout/ Source0: %{name}.tar.bz2 %else Source0: http://jbrout.free.fr/download/sources/%{name}_%{version}.tar.gz %endif Source1: jbrout-Makefile Source2: jbrout.desktop Source3: jbrout-usr_bin Source4: jbrout-install.sh Source5: jbrout-clean-SVN-checkout.sh # EXPERIMENTAL for now, don't distribute! Patch0: jbrout-purge-no-attribute-attrib.patch # No pyexiv2 warning at all (reverse upstream r331) # Fedora users have no choice about what pyexiv2 to use. # Besides pyexiv2 0.3.* is now officially stable. Patch1: jbrout-no-pyexiv2-warning.patch BuildArch: noarch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires: python >= 2.4, python-lxml, pygtk2 >= 2.6 Requires: python-imaging, pyexiv2 >= 0.1.2, fbida Requires: python-gdata # required due to exiftool Requires: perl-Image-ExifTool BuildRequires: gettext, desktop-file-utils, %description jBrout is able to : * manage albums/photos (= folders/files) * tag photos with IPTC keywords * use internal jpeg thumbnail * comment photos (with jpeg comment) and album (textfile in folder) * rotate loss-less jpeg (and internal jpeg thumbnail) use EXIF info (date, size ..) * search pictures (tags, comment, date, ...) * use plugins (to export to html/gallery, to act like a httpserver, to export pictures to be mailed, ...) * work without database ! (just a xmlfile which can be rebuild from scratch) * handle a lot of photos (jbrout's author claims to have more than 20000 of them) * upload photos to a flickr account * ... %prep %setup -q -n %{name} %patch0 -p1 -b .noAttributeAttrib %patch1 -p1 -b .noPyexiv2Warn sh %{SOURCE5} install -p %{SOURCE1} jbrout/Makefile install -p -m a+rx,u+w %{SOURCE4} jbrout/install-script %build cd %{name} ls make PODIR=po %install rm -rf $RPM_BUILD_ROOT cd %{name} make DESTDIR=$RPM_BUILD_ROOT install install -D -m a+rx,u+w %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name} install -D -p -m a+rx,u+w %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category=X-Fedora \ --delete-original \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/jbrout %doc %{name}/data/gpl.txt %{_datadir}/jbrout/ %exclude %{_datadir}/jbrout/plugins/*/po/*/LC_MESSAGES/plugin.mo %lang(fr) %{_datadir}/jbrout/plugins/*/po/fr/LC_MESSAGES/plugin.mo %lang(it) %{_datadir}/jbrout/plugins/*/po/it/LC_MESSAGES/plugin.mo %{_datadir}/applications/jbrout.desktop %changelog * Thu Oct 27 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.338-0.4.svn338 - fix find cleaning .exe and .dll (closes #749425) * Mon Oct 24 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.338-0.svn338.1.3 - yet another new version of exiv2 library. * Sat Jul 30 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.338-0.svn338.1.2 - Rebuilt against new libraries. * Sat Jul 30 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.338-0.svn338.1.1 - Rebuilt against new libraries. * Sun Jul 10 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.338-0.svn338.1 - New upstream snapshot (GPL version fixed and one more issue resolved) - Eliminate again non-sensical pyexiv2 warning. * Wed Jul 06 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.336-0.svn336.1 - All our patches were applied upstream, new SVN checkout * Tue Jul 05 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.329-3 - remove obsolete jbrout-allow-Exif-Orientation-zero.patch * Tue Jul 05 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.329-2 - new upstream checkout (r329) - refresh eliminate-metadata-exiftool patch (upstream #129) - fix crash with weird iconsize and more recent Gtk (upstream #186) - fix import of tags from Xmp.dc.subject (upstream also #129) - add more diagnostics for investigating weird crash with getParent being None sometimes - use Freedesktop directories instead of ~/.jbrout (upstream #56) * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.323-0.svn323.5.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 05 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.323-0.svn323.5 - Add patch to survive bad thumbnail (upstream #179) * Tue Jan 04 2011 MatÄj Cepl <mcepl@redhat.com> - 0.3.323-0.svn323.4 - Eliminate exiftool for metadata, make more robust (upstream #129) * Mon Dec 20 2010 MatÄj Cepl <mcepl@redhat.com> - 0.3.323-3 - apply patch improving Download plugin (upstream #155) * Mon Dec 11 2010 MatÄj Cepl <mcepl@redhat.com> - 0.3.323-2 - patch for ExifOrientation == 0 (upstream #177) * Sat Dec 11 2010 MatÄj Cepl <mcepl@redhat.com> - 0.3.323-0.svn323.1 - Reapply my patch allowing non-standard values of Exif.Orientation. - Make it configurable whether we build from a checkout or tarball. * Thu Dec 09 2010 MatÄj Cepl <mcepl@redhat.com> - 0.3.284-2 - Fix the build and make AutoQA happy. * Mon Aug 16 2010 MatÄj Cepl <mcepl@redhat.com> - 0.3.284-1 - New upstream release (rhbz#624467) * Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.282-0.3.20100124svn282 - recompiling .py files against Python 2.7 (rhbz#623324) * Sun Jan 24 2010 Peter Lemenkov <lemenkov@gmail.com> 0.3.282-0.2.20100124svn282 - Added BR for exiftool (thanks, Rahul Sundaram <sundaram@fedoraproject.org>) * Sun Jan 24 2010 Peter Lemenkov <lemenkov@gmail.com> 0.3.282-0.1.20100124svn282 - Updated to svn ver. 282 - Fixed #558151 - Added BR python-gdata * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.174-4.0.20090714svn223.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jul 14 2009 MatÄj Cepl <mcepl@redhat.com> 0.3.174-3.0.20090714svn223.1 - Attempt to build a new upstream SVN checkout. Fixes bug 510642 - Remove unneeded files (*.exe, *.c) * Mon Jul 13 2009 MatÄj Cepl <mcepl@redhat.com> - 0.3.174-2 - Use hashlib if possible. * Sat Mar 21 2009 Matej Cepl <mcepl@redhat.com> 0.3.174-1 - New upstream release * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.159-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 17 2009 MatÄj Cepl <mcepl@redhat.com> - 0.3.159-2 - add fbida as Requires * Thu Jan 15 2009 MatÄj Cepl <mcepl@redhat.com> 0.3.159-1 - New upstream release and this should go to Fedora. * Sun Jan 11 2009 MatÄj Cepl <mcepl@redhat.com> 0.3.151-0.5 - Fixed building and installing lang files. * Thu Jan 01 2009 MatÄj Cepl <mcepl@redhat.com> 0.3.131-0.1.f10only - Testing build of the new upstream release (because of broken upgrade build). * Thu Jun 26 2008 MatÄj Cepl <mcepl@redhat.com> 0.2.201-2 - Fixing packaging bugs mentioned in the package review. * Fri Jun 20 2008 MatÄj Cepl <mcepl@redhat.com> 0.2.201-1 - New upstream release. * Wed Jun 27 2007 Matej Cepl <mcepl@redhat.com> - 0.2.182-1 - New upstream version (finally!) * Wed Jun 13 2007 Matej Cepl <mcepl@redhat.com> - 0.2.114.svn172-3 - Fix locales * Wed May 23 2007 Matej Cepl <mcepl@redhat.com> - 0.2.114.svn172-2 - New SVN checkout. - Working on Fedora package review. - We have svn export so no .svn directories, so no need to remove them - Fix Makefile -- DESTDIR should be / per default and don't remove during the installation process - Fixed fixing of file permissions -- we did too much and in too many places; consolidated to %%prep stage. * Mon May 21 2007 Matej Cepl <mcepl@redhat.com> - 0.2.114.svn169-1 - New SVN checkout * Thu May 10 2007 Matej Cepl <mcepl@redhat.com> - 0.2.114.svn162-1 - New SVN checkout * Tue Apr 3 2007 Matej Cepl <mcepl@redhat.com> - 0.2.114.svn148-2 - changed BuildRoot to more sane value, now it is allowed. * Mon Feb 26 2007 MatÄj Cepl <mcepl@redhat.com> 0.2.114.svn148-1 - New upstream SVN - encoding is back again with us * Tue Dec 19 2006 MatÄj Cepl <mcepl@redhat.com> 0.2.114.svn145-1 - Changed to SVN source. - Upstream fixed problems with too many shebang lines and encoding of GPL. * Tue Nov 7 2006 MatÄj Cepl <mcepl@redhat.com> 0.2.114-0 - Initial build.