[SOLVED] Re: Kompozer 0.83b Install error on Centos 5.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 Feb 2011, Keith Roberts wrote:

To: General discussion about the RPM package manager <rpm-list@xxxxxxxxxxxxx>
From: Keith Roberts <keith@xxxxxxxxxxxx>
Subject: Re: Kompozer 0.83b Install error on Centos 5.5

On Sun, 6 Feb 2011, Panu Matilainen wrote:

...snip...

 Um, what errors? I dont see any, that's all just regular rpm build
 output spew. With -bi --short-circuit it's just not going to generate
 any packages, try rpmbuild -bb now that the desktop-related problem is
 gone.

There seemed to be a duplicate entry for the kompozer.desktop file in the spec file.

Here's the relevant pieces from the kompozer.spec file:

#TODO: gnome/tango integration

...

Name:           kompozer
%global upstream_version 0.8b3
Version:        0.8
Release:        0.4.b3%{?dist}
Epoch:          1
Summary:        Web Authoring System

Group:          Applications/Publishing
License:        GPLv2+ or LGPLv2+ or MPLv1.1
URL:            http://www.kompozer.net/
Source0:        %{name}-%{upstream_version}-src.tar.bz2
Source1:        kompozer-debian-manpage

...

#Menu entry
install -d -m755 %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=KompoZer
Encoding=UTF-8
GenericName=Web Authoring System
Comment=Create Web Pages
Categories=Development;WebDevelopment;
TryExec=%{name}
Exec=%{name} %u
Icon=%{_libdir}/kompozer/icons/mozicon50.xpm
Terminal=false
MimeType=text/html;text/xml;text/css;text/x-javascript;text/javascript;application/x-php;text/x-php;application/xhtml+xml;
Type=Application
EOF

...

## installing kompozer.desktop
# desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{buildroot}%{_datadir}/applications/%{name}.desktop

...


%files
%defattr(-,root,root,-)
%doc mozilla/LEGAL mozilla/LICENSE mozilla/README.txt
%dir %{_libdir}/kompozer
%{_bindir}/*
%{_libdir}/kompozer/*
%{_mandir}/man1/kompozer.1.gz
#%{_datadir}/myspell
%{_datadir}/applications/kompozer.desktop

I started again with the original kompozer.spec file, and edited it like this:

1) commented out the call to desktop-file-install.

2) added the Encoding=UTF-8 to kompozer.desktop

I don't really need the call to desktop-file-install as:

[a] I validated the kompozer.desktop file from the command line seperately from the spec file - so I know it's a valid desktop file.

[b] the kompozer.desktop file is mentioned in the %files section of the spec file, so I don't need to use desktop-file-install to install it.

So that fixed the build problem, and a new build overnight from clean using the new spec file gives me:

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFiles
HavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/kompozer-0.8-0.4.b3.el5-root-rpmbuilder

Wrote: /home/rpmbuilder/rpm-packages/SRPMS/kompozer-0.8-0.4.b3.el5.src.rpm

Wrote: /home/rpmbuilder/rpm-packages/RPMS/i386/kompozer-0.8-0.4.b3.el5.i386.
rpm

Wrote: /home/rpmbuilder/rpm-packages/RPMS/i386/kompozer-debuginfo-0.8-0.4.b3
.el5.i386.rpm

Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.14714
+ umask 022
+ cd /home/rpmbuilder/rpm-packages/BUILD
+ cd kompozer-0.8
+ rm -rf /var/tmp/kompozer-0.8-0.4.b3.el5-root-rpmbuilder
+ exit 0


The package installation then had dependency failures:

[root@karsites i386]# yum --nogpgcheck localinstall kompozer-0.8-0.4.b3.el5.i386.rpm

Loaded plugins: fastestmirror, filter-data, keys, list-data, priorities
Setting up Local Package Process

Examining kompozer-0.8-0.4.b3.el5.i386.rpm: 1:kompozer-0.8-0.4.b3.el5.i386
Marking kompozer-0.8-0.4.b3.el5.i386.rpm to be installed

Loading mirror speeds from cached hostfile
 * addons: anorien.csc.warwick.ac.uk
 * base: anorien.csc.warwick.ac.uk
 * epel: www.mirrorservice.org
 * extras: anorien.csc.warwick.ac.uk
 * rpmforge: apt.sw.be
 * updates: anorien.csc.warwick.ac.uk
1419 packages excluded due to repository priority protections

Resolving Dependencies
--> Running transaction check
---> Package kompozer.i386 1:0.8-0.4.b3.el5 set to be updated
--> Processing Dependency: hunspell for package: kompozer
--> Processing Dependency: mozilla-filesystem for package: kompozer
--> Finished Dependency Resolution
1:kompozer-0.8-0.4.b3.el5.i386 from /kompozer-0.8-0.4.b3.el5.i386 has depsolv
ing problems
--> Missing Dependency: hunspell is needed by package 1:kompozer-0.8-0.4.b3.el5.i386 (/kompozer-0.8-0.4.b3.el5.i386)
1:kompozer-0.8-0.4.b3.el5.i386 from /kompozer-0.8-0.4.b3.el5.i386 has depsolv
ing problems
--> Missing Dependency: mozilla-filesystem is needed by package 1:kompozer-0.8-0.4.b3.el5.i386 (/kompozer-0.8-0.4.b3.el5.i386)

Error: Missing Dependency: hunspell is needed by package 1:kompozer-0.8-0.4.b3.el5.i386 (/kompozer-0.8-0.4.b3.el5.i386)

Error: Missing Dependency: mozilla-filesystem is needed by package 1:kompozer-0.8-0.4.b3.el5.i386 (/kompozer-0.8-0.4.b3.el5.i386)

So I fixed these dependency problems by installing those two missing packages from:


hunspell:

http://pkgs.org/centos-5-rhel-5/atomic-i386/hunspell-1.2.9-2.el5.art.i386.rpm.html
http://pkgs.org/download/centos-5-rhel-5/atomic-i386/hunspell-1.2.9-2.el5.art.i386.rpm.html

mozilla-filesystem:

http://www.tuxbrothers.net/rpms/centos/el5/i386/RPMS/
http://www.tuxbrothers.net/rpms/centos/el5/i386/RPMS/mozilla-filesystem-1.9-5.1.tb.el5.i386.rpm

I now have version 0.8b3 built and installed nicely on Centos 5.5 !

Thanks for all your help.

Kind Regards,

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux