[Bug 479903] gdesklets plug-in, Cycle through a collection of pictures

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 14 12:49:02 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=479903





--- Comment #3 from MERCIER <bioinfornatics at gmail.com>  2009-01-14 07:49:01 EDT ---
The new spec file:

-----------------------------------------------------
Name:  gdesklet-slideshow
Version: 0.9
Release: 1%{?dist}
Summary: Cycle through a collection of pictures
Group:  User Interface/Desktops
License: GPL+
URL:  http://www.gdesklets.de
Source0:
http://http://www.gdesklets.de/files/desklets/SlideShow/SlideShow-%{version}.tar.gz
Source1:
http://www.gdesklets.de/files/controls/ImageSlideShow/ImageSlideShow-0.8.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

%define _appname SlideShow
%define _ctrlname ImageSlideShow

BuildRequires: python

Requires: gdesklets
Requires: python-imaging



%description
Cycle through a collection of pictures. Will display image captions
(IPTC,Jpeg Comment, EXIF) if available.

%prep
%setup -q -n %{_appname}
tar -xf %{SOURCE1} -C ../

%build


%install
rm -rf $RPM_BUILD_ROOT
#need to install the control first
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/gdesklets/Controls/%{_ctrlname}/
install -p -m644 ../%{_ctrlname}/*
$RPM_BUILD_ROOT/%{_datadir}/gdesklets/Controls/%{_ctrlname}/.
#add shebang and execution mode
find $RPM_BUILD_ROOT/%{_datadir}/gdesklets/Controls/%{_ctrlname}/. \( -name
"*.py" \) -exec sed -i '1i\#!/usr/bin/python' {} \;
find $RPM_BUILD_ROOT/%{_datadir}/gdesklets/Controls/%{_ctrlname}/. \( -name
"*.py" \) | xargs chmod a+x

#install the display now
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/gdesklets/Displays/%{_appname}/
cp -rp * $RPM_BUILD_ROOT/%{_datadir}/gdesklets/Displays/%{_appname}/.


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE
#%{_datadir}/gdesklets/
%dir %{_datadir}/gdesklets/Controls/%{_ctrlname}
%dir %{_datadir}/gdesklets/Displays/%{_appname}
%{_datadir}/gdesklets/Controls/%{_ctrlname}/*
%{_datadir}/gdesklets/Displays/%{_appname}/*


%changelog
* Mon Jan 12 2009 Jonathan MERCIER <bioinfornatics at gmail.com> - 0.9-1
- Initial Packaging for Fedora
-----------------------------------------------------

rpmlint:
$ rpmlint rpmbuild/RPMS/noarch/gdesklet-slideshow-0.9-1.fc10.noarch.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

$ rpmlint rpmbuild/SRPMS/gdesklet-slideshow-0.9-1.fc10.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

$ rpmlint rpmbuild/SPECS/gdesklet-slideshow.spec 
0 packages and 1 specfiles checked; 0 errors, 0 warnings.

-----------------------------------------------------

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-package-review mailing list