# # spec file for package kompozer (Version 0.7.10) # # Copyright (c) 2009 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: kompozer BuildRequires: fdupes gcc-c++ gtk2-devel krb5-devel libgnome-devel libidl-devel mozilla-nspr-devel orbit-devel startup-notification-devel tcsh unzip update-desktop-files zip %define kompozer 1 License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) Version: 0.7.99.0.4 Release: 2 Summary: Web Authoring System Url: http://www.kompozer.net/ Group: Productivity/Publishing/HTML/Editors #Source: %{name}-%{version}dfsg-src.tar.bz2 Source: kompozer-0.8a4-src.tar.bz2 Source1: kompozer.desktop Source2: kompozer.png # # The patchwork bellow is a port from the old nvu/kompozer Patch200: mozilla-freetype218.patch Patch211: unused-includes.patch # # The patchwork bellow is a backport from OBS mozilla firefox2 package # last change: Thu Apr 23 2009 - wr@rosenauer.org # Patches commented with #B are browser only. # Patches commented with #N don't apply, but maybe may be useful. # Patches commented with #X don't compile, but maybe may be useful. # Patches with name kompozer-* required porting. # Patch100 needs to be regenerated from scratch calling autoconf-2.13 from package autoconf213. Patch1: x11-session.patch #NPatch2: rpath.patch Patch3: gcc-undefined-ops.patch Patch4: mozilla-gcc4.3-fixes.patch Patch5: abuild.patch # NSPR bmo #270502 Patch6: nspr-prdtoa.patch Patch7: locale.patch # lockdown infrastructure #BPatch8: firefox-ui-lockdown.patch #BPatch9: gecko-lockdown.patch #BPatch10: gconf-backend.patch Patch11: gnome-vfs.patch Patch12: misc.dif Patch13: nss-opt.patch #BPatch14: credits.patch Patch15: em-356370.patch # bmo #273524 (only for NLD) #NPatch16: gnome-vfs-default.patch # integration #BPatch17: firefox-appname.patch #BPatch18: firefox-no-update.patch #BPatch19: dbus.patch Patch1020: kompozer-path_len.patch # customization Patch22: cjk-postscript-fonts.dif Patch23: startup.patch # bmo #324060 #XPatch24: cups-paper.patch Patch25: system-extensions.patch #NPatch27: system-proxies.patch # bmo #331522 Patch32: postscript.patch Patch33: proxy-dev.patch # integration #NPatch34: skin-selection.patch Patch36: greasemonkey.patch Patch37: firefox-381370.patch Patch40: synaptics-scroll-358863.patch Patch41: firefox-ntlm.patch # gconf-backend.patch dbus.patch startup.patch Patch100: configure.patch %define _use_internal_dependency_generator 0 %define my_provides %{_builddir}/%{?buildsubdir}/my-provides %define my_requires %{_builddir}/%{?buildsubdir}/my-requires BuildRoot: %{_tmppath}/%{name}-%{version}-build # before 11.1: Provides: nvu = 1.0.0.%{version} Obsoletes: nvu < 1.0.0.%{version} %description A complete Web authoring system for Linux Desktop users, similar to Microsoft Windows programs like FrontPage and Dreamweaver. KompoZer is an unofficial branch of Nvu, previously developed by Linspire Inc. It makes managing a Web site a snap. Now anyone can create Web pages and manage a Web site with no technical expertise or HTML knowledge. Features * WYSIWYG editing of pages, making Web creation as easy as typing a letter with your word processor. * Integrated file management via FTP. Simply log in to your Web site and navigate through your files, editing Web pages on the fly, directly from your site. * Reliable HTML code creation that works with today's most popular browsers. * Jump between WYSIWYG editing mode and HTML using tabs. * Tabbed editing to make working on multiple pages a snap. * Powerful support for frames, forms, tables, and templates. Authors: -------- Linspire, Inc. Mozilla Foundation Fabien Cazenave Rudy Kuntz Yves Mairesse Alain Lorieux Anke Lange Charles Cookes Gérard Talbot %prep %setup -q -n mozilla cp composer/config/mozconfig.fedora composer/config/mozconfig.opensuse %patch200 %patch211 %patch1 -p1 #%patch2 %patch3 %patch4 %patch5 -p2 %patch6 %patch7 # lockdown stuff #%patch8 -p1 #%patch9 #%patch10 -p2 %patch11 %patch12 %patch13 #%patch14 %patch15 #%patch17 #%patch18 #%patch19 %patch1020 -p1 %patch22 %patch23 #%patch24 %patch25 #%patch27 #if #nld9 #%patch16 #endif %patch32 %patch33 -p1 #%patch34 %patch36 %patch37 -p2 %patch40 -p0 %patch41 -p2 %patch100 %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %ifarch ppc64 export CFLAGS="$CFLAGS -mminimal-toc" %endif cp composer/config/mozconfig.opensuse .mozconfig echo "ac_add_options --with-system-nspr" >>.mozconfig echo "ac_add_options --enable-startup-notification" >>.mozconfig echo "export CFLAGS=\"$CFLAGS\"" >>.mozconfig echo "export CXXFLAGS=\"$CFLAGS\"" >>.mozconfig echo "export HOST_CFLAGS=\"$CFLAGS\"" >>.mozconfig echo "export HOST_CXXFLAGS=\"$CFLAGS\"" >>.mozconfig # # The configuration bellow is a backport from OBS mozilla firefox2 package # last change: Thu Apr 23 2009 - wr@rosenauer.org cat << EOF >> .mozconfig #mk_add_options MOZILLA_OFFICIAL=1 #mk_add_options BUILD_OFFICIAL=1 mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} #. \$topsrcdir/browser/config/mozconfig #ac_add_options --prefix=%{_prefix} #ac_add_options --libdir=%{_libdir} #ac_add_options --sysconfdir=%{_sysconfdir} #ac_add_options --mandir=%{_mandir} #ac_add_options --includedir=%{_includedir} ac_add_options --enable-optimize="$CFLAGS" ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --with-system-mng ac_add_options --with-system-zlib ac_add_options --enable-default-toolkit=gtk2 #Bac_add_options --enable-gconf ac_add_options --enable-svg ac_add_options --enable-canvas ac_add_options --enable-xft ac_add_options --disable-freetype2 ac_add_options --disable-installer #ac_add_options --enable-static #ac_add_options --disable-shared #ac_add_options --disable-tests #ac_add_options --disable-debug EOF make -f client.mk build_all %install mkdir -p $RPM_BUILD_ROOT/usr/lib/kompozer cp -rL ../obj-kompozer/dist/bin/* $RPM_BUILD_ROOT/usr/lib/kompozer cp -rL ../obj-kompozer/dist/bin/.autoreg $RPM_BUILD_ROOT/usr/lib/kompozer mkdir -p $RPM_BUILD_ROOT/usr/bin ln -s ../lib/kompozer/kompozer $RPM_BUILD_ROOT/usr/bin/kompozer mkdir -p $RPM_BUILD_ROOT/usr/share/applications cp %{S:1} $RPM_BUILD_ROOT/usr/share/applications mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps cp %{S:2} $RPM_BUILD_ROOT/usr/share/pixmaps %suse_update_desktop_file kompozer $RPM_BUILD_ROOT/usr/lib/kompozer/run-mozilla.sh $RPM_BUILD_ROOT/usr/lib/kompozer/regxpcom $RPM_BUILD_ROOT/usr/lib/kompozer/run-mozilla.sh $RPM_BUILD_ROOT/usr/lib/kompozer/kompozer-bin -register sed -i s:$RPM_BUILD_ROOT::g $RPM_BUILD_ROOT/usr/lib/kompozer/components/xpti.dat cat << EOF > %{my_provides} cat > /dev/null #! /bin/sh echo /usr/bin/kompozer EOF cat << EOF > %{my_requires} #! /bin/sh /usr/lib/rpm/find-requires | while read ; do if ! test -e $RPM_BUILD_ROOT/usr/lib/kompozer/\${REPLY%%%%(*} ; then #) echo "\$REPLY" fi done EOF chmod 755 %{my_provides} %{my_requires} %define __find_provides %{my_provides} %define __find_requires %{my_requires} find $RPM_BUILD_ROOT/usr/lib/kompozer -name '*.xpm' -exec chmod -x {} \; chmod -x $RPM_BUILD_ROOT/usr/lib/kompozer/LICENSE %fdupes $RPM_BUILD_ROOT%{_prefix} %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc LEGAL LICENSE README.txt /usr/bin/* /usr/lib/kompozer /usr/share/*/kompozer.* %changelog * Mon Jan 12 2009 olh@suse.de - handle ppc64 in security files * Tue Sep 16 2008 sbrabec@suse.cz - Updated to komposer version 0.7.10, an unofficial bugfix branch (bnc#408677): * Bug fixes, see README.txt for a complete list. * Mon May 19 2008 schwab@suse.de - Remove unused includes. * Wed Apr 30 2008 sbrabec@suse.cz - Set MAXPATHLEN correctly to prevent buffer overflow crash. * Thu Jun 07 2007 sbrabec@suse.cz - Removed invalid desktop Category "Application" (#254654). * Thu May 31 2007 sbrabec@suse.cz - Fixed undefined behavior of code and undefined variables. - Build everything with RPM_OPT_FLAGS. * Thu May 10 2007 ro@suse.de - added unzip to buildrequires * Mon Nov 13 2006 sbrabec@suse.cz - Fixed Requires/Provides correctly (#216100#c14). * Fri Nov 03 2006 sbrabec@suse.cz - Do not provide and require internal libraries (#216100). * Sat Sep 30 2006 aj@suse.de - Cleanup BuildRequires. * Wed Feb 15 2006 stbinner@suse.de - fix GenericName in .desktop file * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 24 2006 mmarek@suse.cz - fix parallel build * Thu Jan 19 2006 sbrabec@suse.cz - Fixed build error (added dumpstack.patch from MozillaFirefox). * Tue Sep 27 2005 ro@suse.de - fix inplicit function declaration * Fri Aug 19 2005 sbrabec@suse.cz - Added gtk.patch from mozilla. * Tue Aug 02 2005 sbrabec@suse.cz - Updated nss-opt.patch from mozilla. * Thu Jun 30 2005 sbrabec@suse.cz - Updated to version 1.0. * Wed May 11 2005 sbrabec@suse.cz - Build with system nspr (#78320). * Tue May 10 2005 sbrabec@suse.cz - Do not require self-provided libraries (#78320). * Fri Apr 22 2005 ro@suse.de - apply mozilla-gcc4.patch * Sat Mar 19 2005 ro@suse.de - try to fix build * Fri Mar 18 2005 sbrabec@suse.cz - Do not provide mozilla libraries (#73619). * Thu Feb 03 2005 sbrabec@suse.cz - Build as separate package. - Updated to version 0.80. * Thu Nov 18 2004 ro@suse.de - use kerberos-devel-packages * Fri Sep 24 2004 stark@suse.de - enabled logging for non-debug builds to be able to get some logfiles for debugging * Thu Sep 23 2004 sbrabec@suse.cz - Fixed desktop file and icon. * Fri Sep 17 2004 stark@suse.de - added security-fix to mozilla source (doesn't affect NVU) * Fri Sep 17 2004 ro@suse.de - one lib64 in path is enough, change progdir * Wed Sep 15 2004 ro@suse.de - use version number directly * Wed Sep 15 2004 sbrabec@suse.cz - New SuSE package, version 0.41.