midori/midori.spec

260 lines
7.9 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version|cut -d. -f1-2)
Name: midori
Version: 9.0
Release: 1mamba
Summary: A lightweight web browser
Group: Graphical Desktop/Applications/Internet
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: gtk-doc
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libnotify-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libsoup-devel
BuildRequires: libsqlite-devel
BuildRequires: libunique-devel
BuildRequires: libwebkit-gtk-devel
BuildRequires: libX11-devel
BuildRequires: libxml2-devel
BuildRequires: libXScrnSaver-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
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.
%prep
%setup -q -n core-%{version}
#%patch0 -p1
#%patch1 -p1
for w in $(find . -name "wscript*"); do
sed -i 's|#!/usr/bin/python|#!%{__python36}|' $w
sed -i 's|#!/usr/bin/env python|#!%{__python36}|' $w
sed -i 's|#! /usr/bin/env python|#!%{__python36}|' $w
sed -i 's|#!python|#!%{__python36}|' $w
sed -i 's|#!/usr/local/bin/python2.1|#!%{__python36}|' $w
sed -i 's|#!/usr/local/bin/python|#!%{__python36}|' $w
done
#sed -i 's|#! /usr/bin/env python|#!%{__python36}|' tools/check-style
%build
%cmake -d build \
-DCMAKE_C_FLAGS="-lm -lX11 %{optflags}"
#./configure \
# --prefix=%{_prefix} \
# --enable-gtk3 \
# --enable-granite \
# --enable-apidocs
%make
#./waf \
# --prefix=%{_prefix} \
# --docdir=%{_docdir}/%{name}-%{version} \
# --libdir=%{_libdir} \
# --enable-apidocs \
# configure
#
#./waf %{?_smp_mflags} build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#./waf --destdir=%{buildroot} install
#mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/midori
#install -pm 644 _build/docs/api/midori/html/* %{buildroot}%{_datadir}/gtk-doc/html/midori
%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)
#%{_sysconfdir}/xdg/midori/extensions/adblock/config
#%{_sysconfdir}/xdg/midori/search
%{_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 devel
#%defattr(-,root,root)
#%{_includedir}/midori-%{majver}/extensions/*.h
#%{_datadir}/vala/vapi/*.deps
#%{_datadir}/vala/vapi/*.vapi
%files apidocs
%defattr(-,root,root)
%dir %{_docdir}/midori
%{_docdir}/midori/*
#%{_datadir}/gtk-doc/html/midori/*
#%doc ChangeLog README TODO
%changelog
* Tue Jul 30 2019 Automatic Build System <autodist@mambasoft.it> 9.0-1mamba
- automatic version update by autodist
* Tue Apr 02 2019 Automatic Build System <autodist@mambasoft.it> 8.0-1mamba
- automatic version update by autodist
* Fri Oct 09 2015 Automatic Build System <autodist@mambasoft.it> 0.5.11-1mamba
- automatic version update by autodist
* Sun Apr 26 2015 Automatic Build System <autodist@mambasoft.it> 0.5.10-1mamba
- automatic version update by autodist
* Sun Nov 16 2014 Automatic Build System <autodist@mambasoft.it> 0.5.9-1mamba
- automatic version update by autodist
* Tue Apr 15 2014 Automatic Build System <autodist@mambasoft.it> 0.5.8-1mamba
- automatic version update by autodist
* Sat Jan 18 2014 Automatic Build System <autodist@mambasoft.it> 0.5.7-1mamba
- automatic version update by autodist
* Sun Aug 18 2013 Automatic Build System <autodist@mambasoft.it> 0.5.5-1mamba
- automatic version update by autodist
* Fri Jul 19 2013 Automatic Build System <autodist@mambasoft.it> 0.5.4-1mamba
- update to 0.5.4
* Sat May 18 2013 Automatic Build System <autodist@mambasoft.it> 0.5.2-1mamba
- automatic version update by autodist
* Fri May 17 2013 Automatic Build System <autodist@mambasoft.it> 0.5.1-1mamba
- automatic version update by autodist
* Mon Apr 08 2013 Automatic Build System <autodist@mambasoft.it> 0.5.0-1mamba
- automatic version update by autodist
* Fri Mar 08 2013 Automatic Build System <autodist@mambasoft.it> 0.4.9-1mamba
- automatic version update by autodist
* Fri Feb 08 2013 Automatic Build System <autodist@mambasoft.it> 0.4.8-1mamba
- automatic version update by autodist
* Fri Sep 21 2012 Automatic Build System <autodist@mambasoft.it> 0.4.7-1mamba
- automatic update by autodist
* Tue May 15 2012 Automatic Build System <autodist@mambasoft.it> 0.4.6-1mamba
- automatic version update by autodist
* Mon Apr 23 2012 Automatic Build System <autodist@mambasoft.it> 0.4.5-1mamba
- automatic version update by autodist
* Fri Mar 09 2012 Automatic Build System <autodist@mambasoft.it> 0.4.4-1mamba
- automatic version update by autodist
* Sun Dec 18 2011 Automatic Build System <autodist@mambasoft.it> 0.4.3-1mamba
- automatic version update by autodist
* Wed Dec 07 2011 Automatic Build System <autodist@mambasoft.it> 0.4.2-1mamba
- automatic version update by autodist
* Thu Aug 04 2011 Automatic Build System <autodist@mambasoft.it> 0.4.0-1mamba
- automatic version update by autodist
* Sat Jun 25 2011 Automatic Build System <autodist@mambasoft.it> 0.3.6-1mamba
- automatic update by autodist
* Sat Feb 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2-2mamba
- added requirement for ca-certificates
* Fri Feb 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2-1mamba
- update to 0.3.2
* Tue Nov 30 2010 gil <puntogil@libero.it> 0.2.9-1mamba
- update to 0.2.9
* Sat Oct 23 2010 gil <puntogil@libero.it> 0.2.8-1mamba
- package created by autospec