rpms/gphotoframe/F-13 gphotoframe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Mamoru Tasaka
mtasaka at fedoraproject.org
Tue Jul 27 00:40:31 UTC 2010
- Previous message: rpms/gphotoframe/F-12 gphotoframe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/gphotoframe/devel gphotoframe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mtasaka
Update of /cvs/extras/rpms/gphotoframe/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv24980/F-13
Modified Files:
.cvsignore sources
Added Files:
gphotoframe.spec
Log Message:
Initial import
--- NEW FILE gphotoframe.spec ---
# Please check again if someone wants to import
# this also to EPEL.
%if ! (0%{?fedora} > 12)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: gphotoframe
Version: 1.0
Release: 2%{?dist}
Summary: Photo Frame Gadget for the GNOME Desktop
Group: Amusements/Graphics
# GPLv3 seems safer than GPLv3+
# Some image files are under GPLv2+
License: GPLv3 and GPLv2+
URL: http://code.google.com/p/gphotoframe/
Source0: http://gphotoframe.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires: GConf2
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: python2-devel
BuildRequires: python-distutils-extra
# Mandatory
Requires: pygtk2
Requires: python-exif
Requires: python-twisted-web
Requires: pyxdg
# Optional
Requires: libproxy-python
Requires: gnome-python2-gnomekeyring
# For now kill two below
# Does not seem to work with clutter-gtk
#Requires: pyclutter
#Requires: pyclutter-gtk
Requires: python-feedparser
# Scriptlets
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
BuildArch: noarch
%description
Gnome Photo Frame is a photo frame gadget for the GNOME Desktop.
%package gss
Summary: Compatibility package of %{name} for gnome-screensaver
Group: Amusements/Graphics
Requires: %{name} = %{version}-%{release}
Requires: gnome-screensaver
%description gss
This package contains scripts and desktop files of %{name}
for gnome-screensaver compatibility.
%prep
%setup -q
# Remove unneeded shebangs
grep -rl '^#![ \t]*%{_bindir}' lib/ | \
xargs sed -i -e '\@^#![ \t]*%{_bindir}@d'
# Explicitly don't use clutter-gtk for now
grep -rl 'import clutter' lib/ | \
xargs sed -i -e 's|import clutter|import dont_use_clutter|'
# Use system-wide EXIF
rm lib/utils/EXIF.py
sed -i -e 's|from ..utils.EXIF|from EXIF|' \
lib/plugins/base.py
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
%{__python} setup.py install \
--skip-build \
--root %{buildroot}
# GConf schemas
mkdir -p %{buildroot}%{_sysconfdir}/gconf/schemas
install -cpm 0644 ./build/share/gconf/schemas/%{name}.schemas \
%{buildroot}%{_sysconfdir}/gconf/schemas/
# Install desktop
mkdir -p \
%{buildroot}%{_datadir}/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
build/share/applications/gphotoframe.desktop
# gnome-screensver related
# FIXME: I don't use gnome-screensaver...
mkdir -p \
%{buildroot}%{_libexecdir}/gnome-screensaver \
%{buildroot}%{_datadir}/applications/screensavers
install -cpm 0644 \
./build/share/applications/screensavers/gphotoframe-screensaver.desktop \
%{buildroot}%{_datadir}/applications/screensavers/
# ignore failure (if any) for screensaver desktop
desktop-file-validate \
%{buildroot}%{_datadir}/applications/screensavers/gphotoframe-screensaver.desktop || true
# lib/ is hardcoded in setup.py
mv %{buildroot}%{_prefix}/lib/gnome-screensaver/gnome-screensaver/gphotoframe-screensaver \
%{buildroot}%{_libexecdir}/gnome-screensaver/
%clean
rm -rf %{buildroot}
%pre
%gconf_schema_prepare %{name}
exit 0
%post
%gconf_schema_upgrade %{name}
exit 0
%preun
%gconf_schema_remove %{name}
exit 0
%files
%defattr(-,root,root,-)
%doc COPYING
%doc GPL
%doc README
%doc changelog
%{_bindir}/%{name}
%{python_sitelib}/%{name}-*.egg-info
%{python_sitelib}/%{name}/
%{_datadir}/%{name}/
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_datadir}/applications/%{name}.desktop
%files gss
%defattr(-,root,root,-)
%{_libexecdir}/gnome-screensaver/%{name}-screensaver
%{_datadir}/applications/screensavers/%{name}-screensaver.desktop
%changelog
* Sun Jul 25 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.0-2
- Fix license tag
- Remove unneeded macro definition
* Sat Jul 24 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.0-1
- Initial packaging
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/gphotoframe/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 26 Jul 2010 22:40:48 -0000 1.1
+++ .cvsignore 27 Jul 2010 00:40:31 -0000 1.2
@@ -0,0 +1 @@
+gphotoframe-1.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/gphotoframe/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 26 Jul 2010 22:40:49 -0000 1.1
+++ sources 27 Jul 2010 00:40:31 -0000 1.2
@@ -0,0 +1 @@
+0b4b36d7e5d6d66961178e0117756e53 gphotoframe-1.0.tar.gz
- Previous message: rpms/gphotoframe/F-12 gphotoframe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/gphotoframe/devel gphotoframe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list