%define majver %(echo %version|cut -d. -f1-2) Name: midori Version: 9.0 Release: 3mamba Summary: A lightweight web browser Group: Graphical Desktop/Applications/Internet Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.midori-browser.org Source: https://github.com/midori-browser/core.git/v%{version}/core-%{version}.tar.bz2 #Source: http://www.midori-browser.org/downloads/midori_%{version}_all_.tar.bz2 Patch0: midori-0.2.4-docdir.patch Patch1: midori-0.5.0-openmamba_homepage.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: gobject-introspection-devel BuildRequires: ldconfig BuildRequires: libX11-devel BuildRequires: libarchive-devel BuildRequires: libatk-devel BuildRequires: libcairo-devel BuildRequires: libgcr-devel BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel BuildRequires: libgtk-devel BuildRequires: libharfbuzz-devel BuildRequires: libjson-glib-devel BuildRequires: libp11-kit-devel BuildRequires: libpango-devel BuildRequires: libpeas-devel BuildRequires: libsoup-devel BuildRequires: libsqlite-devel BuildRequires: libwebkit2gtk-devel ## AUTOBUILDREQ-END BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: gtk-doc BuildRequires: intltool BuildRequires: libgtksourceview-devel BuildRequires: libidn-devel BuildRequires: libsexy-devel BuildRequires: librsvg BuildRequires: libtool BuildRequires: perl(XML::Parser) #BuildRequires: python-docutils BuildRequires: vala BuildRequires: vala-tools BuildRequires: libzeitgeist-devel BuildRequires: libgranite-devel BuildRequires: libpeas-devel Requires: ca-certificates %description Midori is a lightweight web browser. Features: * Full integration with GTK+ 2 * Fast rendering with WebKit * Tabs, windows and session management * Flexibly configurable Web Search. * User scripts and user styles support. * Straightforward bookmark management. * Customizable and extensible interface. * Extensions such as Adblock, form history, mouse gestures or cookie management. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Midori is a lightweight web browser. This package contains static libraries and header files need for development. %package apidocs Summary: %{name} API documentation Group: Documentation Requires: gtk-doc %description apidocs Midori is a lightweight web browser. This package contains %{name} API documentation. %debug_package %prep %setup -q -n core-%{version} #%patch0 -p1 #%patch1 -p1 for w in $(find . -name "wscript*"); do sed -i 's|#!/usr/bin/python|#!%{__python3}|' $w sed -i 's|#!/usr/bin/env python|#!%{__python3}|' $w sed -i 's|#! /usr/bin/env python|#!%{__python3}|' $w sed -i 's|#!python|#!%{__python3}|' $w sed -i 's|#!/usr/local/bin/python2.1|#!%{__python3}|' $w sed -i 's|#!/usr/local/bin/python|#!%{__python3}|' $w done #sed -i 's|#! /usr/bin/env python|#!%{__python36}|' tools/check-style %build %cmake -d build \ -DCMAKE_C_FLAGS="-lm -lX11 %{optflags}" %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun 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 %defattr(-,root,root) %{_bindir}/midori %{_libdir}/libmidori-core.so %{_libdir}/libmidori-core.so.* %{_libdir}/midori/lib*.so %{_libdir}/girepository-1.0/Midori-*.typelib %dir %{_libdir}/midori %{_libdir}/midori/*.plugin %{_datadir}/applications/org.midori_browser.Midori.desktop %{_datadir}/gir-1.0/Midori-*.gir %{_datadir}/metainfo/org.midori_browser.Midori.appdata.xml %{_datadir}/icons/hicolor/*x*/*/*.png %{_datadir}/icons/hicolor/scalable/*/*.svg %doc COPYING %files apidocs %defattr(-,root,root) %dir %{_docdir}/midori %{_docdir}/midori/* %changelog * Sat Oct 03 2020 Silvan Calarco 9.0-3mamba - rebuilt * Wed Jul 22 2020 Silvan Calarco 9.0-2mamba - rebuilt * Tue Jul 30 2019 Automatic Build System 9.0-1mamba - automatic version update by autodist * Tue Apr 02 2019 Automatic Build System 8.0-1mamba - automatic version update by autodist * Fri Oct 09 2015 Automatic Build System 0.5.11-1mamba - automatic version update by autodist * Sun Apr 26 2015 Automatic Build System 0.5.10-1mamba - automatic version update by autodist * Sun Nov 16 2014 Automatic Build System 0.5.9-1mamba - automatic version update by autodist * Tue Apr 15 2014 Automatic Build System 0.5.8-1mamba - automatic version update by autodist * Sat Jan 18 2014 Automatic Build System 0.5.7-1mamba - automatic version update by autodist * Sun Aug 18 2013 Automatic Build System 0.5.5-1mamba - automatic version update by autodist * Fri Jul 19 2013 Automatic Build System 0.5.4-1mamba - update to 0.5.4 * Sat May 18 2013 Automatic Build System 0.5.2-1mamba - automatic version update by autodist * Fri May 17 2013 Automatic Build System 0.5.1-1mamba - automatic version update by autodist * Mon Apr 08 2013 Automatic Build System 0.5.0-1mamba - automatic version update by autodist * Fri Mar 08 2013 Automatic Build System 0.4.9-1mamba - automatic version update by autodist * Fri Feb 08 2013 Automatic Build System 0.4.8-1mamba - automatic version update by autodist * Fri Sep 21 2012 Automatic Build System 0.4.7-1mamba - automatic update by autodist * Tue May 15 2012 Automatic Build System 0.4.6-1mamba - automatic version update by autodist * Mon Apr 23 2012 Automatic Build System 0.4.5-1mamba - automatic version update by autodist * Fri Mar 09 2012 Automatic Build System 0.4.4-1mamba - automatic version update by autodist * Sun Dec 18 2011 Automatic Build System 0.4.3-1mamba - automatic version update by autodist * Wed Dec 07 2011 Automatic Build System 0.4.2-1mamba - automatic version update by autodist * Thu Aug 04 2011 Automatic Build System 0.4.0-1mamba - automatic version update by autodist * Sat Jun 25 2011 Automatic Build System 0.3.6-1mamba - automatic update by autodist * Sat Feb 26 2011 Silvan Calarco 0.3.2-2mamba - added requirement for ca-certificates * Fri Feb 25 2011 Silvan Calarco 0.3.2-1mamba - update to 0.3.2 * Tue Nov 30 2010 gil 0.2.9-1mamba - update to 0.2.9 * Sat Oct 23 2010 gil 0.2.8-1mamba - package created by autospec