Second File List

"Sascha 'saigkill' Manns" <[email protected]> Fri, 17 Jul 2009 11:19:56 +0200
Newsgroups gmane.linux.suse.programming
Organization openSUSE Marketing Team
Message-ID <[email protected]>
Salut Freunde,

den Fehler hatte ich zwar schon mal, aber ich komme nicht mehr auf die 
Lösung. Ich packe bleachbit 0.5.4 und habe ein neues -lang Package 
eingebaut. Jetzt meckert er, das eine zweite Filelist angelegt wurde. 
Das war irgendeine Kleinigkeit gewesen, aber ich komm nicht drauf. 
Die Spec habe ich mal angehangem. Vielleicht weiß jemand, was los ist 
:-)
-- 
Sincerely yours

Sascha Manns
openSUSE Ambassador
openSUSE Marketing Team
openSUSE Build Service
Web: http://saschamanns.gulli.to
Project-Blog: http://lizards.opensuse.org/author/saigkill
Private-Blog: http://saschasbacktrace.blogspot.com
bleachbit.spec (text/x-rpm-spec, 2.6 KB)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 
# Packaged by: <[email protected]>
# 
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# # norootforbuild

Name:           bleachbit
Version:        0.5.4
Release:        1
Summary:        Remove unnecessary files, free space, and maintain privacy
License:        GPLv3
BuildRequires:  make python-devel update-desktop-files fdupes  
Requires:       python-gnome python-gtk >= 2.6 xdg-utils
Source0:        %{name}-%{version}.tar.bz2
Group:		Productivity/File utilities
BuildArch:      noarch
URL:            http://bleachbit.sourceforge.net/download_source.php  
BuildRoot:      %{_tmppath}/build-root-%{name}   
%py_requires
%lang_package

%description
BleachBit deletes unnecessary files to free valuable disk space and
maintain privacy. Rid your system of old junk including broken
menu entries, cache, cookies, localizations, and temporary files.
Designed for Linux  systems, it wipes clean Bash, Beagle, Epiphany,
Firefox, Flash, GNOME, Java, KDE, OpenOffice.org, Opera, RealPlayer,
VIM, XChat, and more.

%prep
%setup -q -n %{name}-%{version}
%__sed -i -e 's|/usr/bin/env python|/usr/bin/python|g' \
	bleachbit/GUI.py

%build
make -C po local 
%{__python} setup.py build

%install
make DESTDIR=%{buildroot} install \
	prefix=%{_prefix}

# create root desktop-file and change exec
%__cp %{name}.desktop %{name}-root.desktop
%__sed -i -e 's/Name=BleachBit$/Name=BleachBit as Administrator/g' \
	%{name}-root.desktop
%__sed -i -e 's/^Exec=bleachbit$/Exec=xdg-su -c bleachbit/g' \
	%{name}-root.desktop
# installing .desktop Files
%suse_update_desktop_file -n    %{name}      Utility Filesystem
%suse_update_desktop_file -n -i %{name}-root Utility Filesystem

%find_lang %{name}
%fdupes -s $RPM_BUILD_ROOT

%__rm %{buildroot}%{_datadir}/%{name}/*.py[co]

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-root.desktop
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%doc COPYING README

%files -f %{name}.lang
%defattr(-,root,root,-)

%changelog
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkpgQj0ACgkQvBb8uodyeZRxDACfRrotVDHQtQ1WM4tb5tOqsuMu
KrsAn0kWEvbNx9PerYVw9J7odzfR4ou9
=nQSk
-----END PGP SIGNATURE-----