Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:454
chmsee.openSUSE_11.4_Update
chmsee.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chmsee.spec of Package chmsee.openSUSE_11.4_Update
# # spec file for package chmsee # # Copyright (c) 2012 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/ # Name: chmsee %if %suse_version > 1130 %define xulrunner_version 20 %define xulrunner_version2 2.0 %else %if %suse_version > 1120 %define xulrunner_version 192 %define xulrunner_version2 1.9.2 %else %if %suse_version > 1110 %define xulrunner_version 191 %define xulrunner_version2 1.9.1 %else %define xulrunner_version 190 %define xulrunner_version2 1.9.0 %endif %endif %endif Summary: A Gtk+2 CHM document viewer License: GPL-2.0+ Group: Productivity/Graphics/Viewers Version: 1.3.1.1 Release: 0 Url: http://code.google.com/p/chmsee/ Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-1.3.1.1-fix-toolbar.patch BuildRequires: chmlib-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtk2-devel BuildRequires: intltool BuildRequires: libgcrypt-devel BuildRequires: libglade2-devel BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel BuildRequires: shared-mime-info BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: mozilla-xulrunner%{xulrunner_version} Recommends: %{name}-lang %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. %lang_package %prep %setup -q %patch0 %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 --installa CFLAGS="$RPM_OPT_FLAGS -Wall" \ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_SKIP_RPATH:BOOL=yes make VERBOSE=1 %install export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT VERBOSE=1 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime %find_lang %{name} %{?no_lang_C} %if %suse_version <= 1100 # 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 %endif %suse_update_desktop_file -r -N Chmsee -G "Compressed HTML Viewer" chmsee GNOME GTK Graphics Office Viewer %clean rm -rf %{buildroot} %post /sbin/ldconfig %if 0%{?suse_version} > 1130 %desktop_database_post %icon_theme_cache_post %mime_database_post %else usr/bin/update-mime-database /usr/share/mime >/dev/null || true %endif %postun /sbin/ldconfig %if 0%{?suse_version} > 1130 %desktop_database_postun %icon_theme_cache_postun %mime_database_postun %else usr/bin/update-mime-database /usr/share/mime >/dev/null || true %endif %files %defattr(-, root, root) %doc README COPYING AUTHORS ChangeLog NEWS %{_bindir}/chmsee %if %suse_version <= 1100 %{_libdir}/chmsee %endif %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/mimetypes/chm.* %{_datadir}/chmsee/ %{_datadir}/mime/packages/chmsee.xml %dir %{_datadir}/mime-info %{_datadir}/mime-info/chmsee.mime %{_datadir}/mime-info/chmsee.keys %{_datadir}/pixmaps/chmsee-icon.png %files lang -f %{name}.lang %changelog
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