# Review request: https://bugzilla.redhat.com/show_bug.cgi?id=819184 %{?filter_setup: %filter_provides_in %{_libdir}/%{name}/.*\.so$ %filter_from_provides /libQupZilla.so.*/d %filter_from_requires /libQupZilla.so.*/d %filter_setup } Name: qupzilla Version: 1.3.5 Release: 1%{?dist} Summary: Modern web browser Group: Applications/Internet License: GPLv3+ and BSD URL: http://www.qupzilla.com/ #VCS git:git://github.com/QupZilla/qupzilla.git Source0: https://github.com/downloads/QupZilla/qupzilla/QupZilla-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel >= 4.7 BuildRequires: qtwebkit-devel BuildRequires: desktop-file-utils %description QupZilla is modern web browser based on WebKit core and Qt Framework. It is designed to be lightweight and fast and offers advanced functions such as - an integrated advertisement blocker, - a search engine manager, - a SSL certificate manager, - speed dial - theming support, and - seamless integration into your desktop environment. %prep %setup -qn QupZilla-%{version} # remove BUILDTIME usage from build sed '/static const QString BUILDTIME/d' -i src/lib/app/qupzilla.h sed '/QupZilla::BUILDTIME/d' -i \ src/lib/app/commandlineoptions.cpp \ src/lib/app/qupzilla.cpp \ src/lib/network/schemehandlers/qupzillaschemehandler.cpp \ src/lib/other/aboutdialog.cpp # convert DOS line endings to Unix for file in COPYRIGHT README.md; do sed "s|\r||g" $file > $file.new && \ touch -r $file $file.new && \ mv $file.new $file done %build # set proper paths export QUPZILLA_PREFIX="%{_prefix}/" # beware, trailing slash required! export USE_LIBPATH="%{_libdir}" # enable better oxygen icons in Preferences export KDE="true" # enable WebGL export USE_WEBGL="true" # enable geolocalization export USE_QTWEBKIT_2_2="true" # debug option is needed for -debuginfo qmake-qt4 CONFIG+=debug QMAKE_CXXFLAGS="%{optflags}" make %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot} %find_lang %{name} --all-name --with-qt desktop-file-install \ --add-mime-type="x-scheme-handler/http;x-scheme-handler/https;" \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/%{name}.desktop # remove useless plugin rm -f %{buildroot}%{_libdir}/qupzilla/libTestPlugin.so # as long as we have no -devel package, we remove this one, too rm -f %{buildroot}%{_libdir}/libQupZilla.so %post /sbin/ldconfig touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %doc AUTHORS COPYRIGHT FAQ GPLv3 README.md TODO %{_bindir}/%{name} %{_libdir}/libQupZilla.so.* %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/icons/hicolor/*/*/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/themes %changelog * Sat Oct 06 2012 Christoph Wickert - 1.3.5-1 - Update to 1.3.5 - Enable WebGL (USE_WEBGL) - Enable geolocation and notifications API (USE_QTWEBKIT_2_2) - Change icense tag to "GPLv3+ and BSD" (some plugins are BSD licensed) - Add x-scheme-handlers so qupzilla can be set as default browser - Filter out private requires and provides - Include README.md in %%doc * Mon Apr 30 2011 Christoph Wickert - 1.2.0-1 - Initial package