Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
chmsee
chmsee.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chmsee.spec of Package chmsee
# # spec file for package chmsee (Version 1.0.1) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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: chmsee %if %suse_version < 1100 %define xulrunner_version 181 %define xulrunner_version2 1.8.1 %endif %if %suse_version >= 1100 %define xulrunner_version 190 %define xulrunner_version2 1.9.0 %endif BuildRequires: gcc-c++ gtk2-devel intltool libglade2-devel shared-mime-info update-desktop-files %define prefix /usr %define sysconfdir /etc Summary: A Gtk+2 CHM document viewer Version: 1.0.1 Release: 1 License: GPL v2 or later Group: Productivity/Graphics/Viewers Url: http://chmsee.gro.clinux.org/ Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: On %if %suse_version < 1000 BuildRequires: gecko-sdk Requires: mozilla %endif %if %suse_version > 1000 && %suse_version <= 1010 BuildRequires: gecko-sdk Requires: mozilla-xulrunner %endif %if %suse_version > 1010 BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel Requires: mozilla-xulrunner%{xulrunner_version} %endif PreReq: shared-mime-info BuildRequires: chmlib-devel #Requires: chmlib BuildRequires: openssl-devel BuildRequires: libgcrypt-devel #Requires: openssl %description It uses chmlib to extract files. It uses gecko to display pages. It supports displaying multilingual pages due to gecko. It features bookmarks and tabs. The tabs could be used to jump inside the chm file conveniently. Its UI is clean and handy, also is well localized. It is actively developed and maintained. The author of chmsee is Jungle Ji and several other great people. Authors: -------- zhong <iam_zhong@yahoo.com.cn> -- after version 0.9.6 -- Ji YongGang <jungle@soforge.com> LI Daobing <lidaobing@gmail.com> %prep %setup -q -n chmsee-%{version} %build #rename no nb po/no.* #sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in > configure.in.tmp && \ # mv configure.in.tmp configure.in #autoreconf --force --install CFLAGS="$RPM_OPT_FLAGS -Wall" \ CPPFLAGS=`pkg-config nspr --cflags` \ ./configure \ --prefix=%{prefix} \ --libdir=%{prefix}/%{_lib} \ --sysconfdir=%{sysconfdir} \ --libexecdir=%{prefix}/%{_lib}/chmsee \ --with-gecko=libxul \ --enable-platform-gnome2 make %install export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL %if %suse_version > 910 DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime %endif cd po for gmo in *.gmo ; do install -d $RPM_BUILD_ROOT/usr/share/locale/${gmo%.gmo}/LC_MESSAGES install -m0644 $gmo $RPM_BUILD_ROOT/usr/share/locale/${gmo%.gmo}/LC_MESSAGES/chmsee.mo done cd .. %find_lang %{name} # since xulrunner .pc files don't contain RPATH install -p -m 755 -D $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_libdir}/%{name}/%{name} cat > $RPM_BUILD_ROOT%{prefix}/bin/%{name} <<EOF #!/bin/sh LD_LIBRARY_PATH=%{_libdir}/xulrunner-%{xulrunner_version2} exec %{prefix}/%_lib/%{name}/%{name} "\$@" EOF %suse_update_desktop_file -r -N Chmsee chmsee GNOME GTK Graphics Office Viewer %clean rm -rf %{buildroot} %post %if %suse_version > 910 usr/bin/update-mime-database /usr/share/mime >/dev/null %endif %run_ldconfig %postun %if %suse_version > 910 usr/bin/update-mime-database /usr/share/mime >/dev/null %endif %run_ldconfig %files -f %{name}.lang %defattr(-, root, root) %doc README COPYING AUTHORS ChangeLog NEWS TODO %{_bindir}/chmsee* %{_libdir}/chmsee %{_datadir}/man/man1/chmsee*.1* %{_datadir}/chmsee/ %{_datadir}/applications/*.desktop %{_datadir}/mime-info %{_datadir}/mime-info/chmsee.mime %{_datadir}/mime-info/chmsee.keys %{_datadir}/pixmaps/chmsee-icon.png %{_datadir}/mime/packages/chmsee.xml %changelog * Mon Sep 01 2008 pwu@suse.de - update version to 1.0.1. and switch to xulrunner-190. * Wed Nov 07 2007 pwu@suse.de - update version from 1.0.0-beta2 to 1.0.0 * Fri Aug 10 2007 pwu@suse.de - move chmsee from /opt/gnome to /usr * Wed Aug 01 2007 pwu@suse.de - new package chmsee,version 1.0.0beta2.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor