rpms/jbrout/F-9 jbrout-Makefile, NONE, 1.1 jbrout-usr_bin, NONE, 1.1 jbrout.desktop, NONE, 1.1 jbrout.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matej Cepl (mcepl) fedora-extras-commits at redhat.com
Fri Jun 27 18:32:04 UTC 2008


Author: mcepl

Update of /cvs/extras/rpms/jbrout/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30419

Modified Files:
	.cvsignore sources 
Added Files:
	jbrout-Makefile jbrout-usr_bin jbrout.desktop jbrout.spec 
Log Message:
Initial commit


--- NEW FILE jbrout-Makefile ---
DESTDIR=

all: build

install:
	install -m a+rx,u+w -d $(DESTDIR)/usr/share/jbrout/
	cp -r plugins gfx libs $(DESTDIR)/usr/share/jbrout/
	find po \
		-type d -exec install -m a+rx,u+w \
			-d $(DESTDIR)/usr/share/locale/{} \; \
		-o -name \*.mo -exec \
			install -p -m a+r,u+w {} $(DESTDIR)/usr/share/jbrout/po/{} \;
	chmod -R a+rX,u+w plugins $(DESTDIR)/usr/share/
	install -p -m a+r,u+w -t $(DESTDIR)/usr/share/jbrout/ *.py
	install -p -m a+r,u+w -t $(DESTDIR)/usr/share/jbrout/ gpl.txt
	install -p -m a+r,u+w -t $(DESTDIR)/usr/share/jbrout/ jbrout.glade
	chmod +x $(DESTDIR)/usr/share/jbrout/jbrout.py

build:
	/bin/true


--- NEW FILE jbrout-usr_bin ---
#!/bin/sh
APPPATH=/usr/share/jbrout/jbrout.py

PYTHON=`which python`
if [ $? != 0 ]; then
    echo "jbrout requires Python >= 2.4 to be installed." >/dev/stderr
    exit 1
fi

"$PYTHON" "$APPPATH" "$@"


--- NEW FILE jbrout.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=jBrout
GenericName=Photo Collection Manager
GenericName[cs]=Správce fotografické sbírky
Type=Application
Exec=/usr/bin/jbrout
Icon=/usr/share/jbrout/gfx/jbrout.ico
Terminal=false
StartupNotify=true
Categories=GNOME;GTK;Graphics;Viewer;RasterGraphics;Photography;


--- NEW FILE jbrout.spec ---
Name:           jbrout
Version:        0.2.201
Release:        2%{?dist}
Summary:        Photo manager, written in python/pygtk
Group:          Applications/Multimedia
License:        GPLv2
URL:            http://jbrout.python-hosting.com/wiki
Source0:        http://jbrout.free.fr/download/sources/jbrout-%{version}.sources.tar.gz
Source1:        jbrout-Makefile
Source2:        jbrout.desktop
Source3:        jbrout-usr_bin
BuildArch:      noarch
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires:       python >= 2.4, python-lxml, pygtk2 >= 2.6, python-imaging, fbida, jhead
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, ...) (not implemented
     yet)
   * 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 jbrout
TEMPFILE=$(mktemp %{_tmppath}/jbrout-build.XXXXXX)
find libs plugins -type f \
   | while read FILE ; do \
      cat $FILE | tr -d '\r' >$TEMPFILE
      mv $TEMPFILE $FILE
      if $(head -n1 $FILE | grep '^#!' >/dev/null 2>&1); then
         sed -i -e '1d' $FILE
      fi
      chmod -x $FILE
   done
unset TEMPFILE
sed -i -e '1d' trackertag.py
chmod -x SciTE.properties
install -p %{SOURCE1} Makefile
install -p %{SOURCE2} .

%build

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
install -m a+rx,u+w -d $RPM_BUILD_ROOT%{_bindir}
install -m a+rx,u+w %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/jbrout
install -m a+rx,u+w -d $RPM_BUILD_ROOT%{_datadir}/applications/
install -p -m a+rx,u+w -t $RPM_BUILD_ROOT%{_datadir}/applications/ \
      jbrout.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 readme.txt SciTE.properties
%{_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 Jun 26 2008 Matěj Cepl <mcepl at redhat.com> 0.2.201-2
- Fixing packaging bugs mentioned in the package review.

* Fri Jun 20 2008 Matěj Cepl <mcepl at redhat.com> 0.2.201-1
- New upstream release.

* Wed Jun 27 2007 Matej Cepl <mcepl at redhat.com> - 0.2.182-1
- New upstream version (finally!)

* Wed Jun 13 2007 Matej Cepl <mcepl at redhat.com> - 0.2.114.svn172-3
- Fix locales

* Wed May 23 2007 Matej Cepl <mcepl at 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 at redhat.com> - 0.2.114.svn169-1
- New SVN checkout

* Thu May 10 2007 Matej Cepl <mcepl at redhat.com> - 0.2.114.svn162-1
- New SVN checkout

* Tue Apr  3 2007 Matej Cepl <mcepl at 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 at redhat.com> 0.2.114.svn148-1
- New upstream SVN
- encoding is back again with us

* Tue Dec 19 2006 Matěj Cepl <mcepl at 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 at redhat.com> 0.2.114-0
- Initial build.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/jbrout/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	27 Jun 2008 16:50:35 -0000	1.1
+++ .cvsignore	27 Jun 2008 18:31:19 -0000	1.2
@@ -0,0 +1 @@
+jbrout-0.2.201.sources.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/jbrout/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	27 Jun 2008 16:50:35 -0000	1.1
+++ sources	27 Jun 2008 18:31:19 -0000	1.2
@@ -0,0 +1 @@
+202e2a11517f33d4459e8ef95ee6c559  jbrout-0.2.201.sources.tar.gz




More information about the fedora-extras-commits mailing list