283 lines
8.6 KiB
RPMSpec
283 lines
8.6 KiB
RPMSpec
%define majver %(echo %version|cut -d. -f1-2)
|
|
Name: midori
|
|
Version: 0.5.11
|
|
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: 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
|
|
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
|
|
#%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
for w in $(find . -name "wscript*"); do
|
|
sed -i 's|#!/usr/bin/python|#!%{__python}|' $w
|
|
sed -i 's|#!/usr/bin/env python|#!%{__python}|' $w
|
|
sed -i 's|#! /usr/bin/env python|#!%{__python}|' $w
|
|
sed -i 's|#!python|#!%{__python}|' $w
|
|
sed -i 's|#!/usr/local/bin/python2.1|#!%{__python}|' $w
|
|
sed -i 's|#!/usr/local/bin/python|#!%{__python}|' $w
|
|
done
|
|
|
|
sed -i 's|#! /usr/bin/env python|#!%{__python}|' 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/libabout.so
|
|
%{_libdir}/midori/libadblock.so
|
|
%{_libdir}/midori/libaddons.so
|
|
%{_libdir}/midori/libapps.so
|
|
%{_libdir}/midori/libcolorful-tabs.so
|
|
%{_libdir}/midori/libcookie-manager.so
|
|
%{_libdir}/midori/libcookie-permissions.so
|
|
%{_libdir}/midori/libcopy-tabs.so
|
|
%{_libdir}/midori/libdelayed-load.so
|
|
%{_libdir}/midori/libdevpet.so
|
|
%{_libdir}/midori/libdomain-keys.so
|
|
%{_libdir}/midori/libexternal-download-manager.so
|
|
%{_libdir}/midori/libfeed-panel.so
|
|
%{_libdir}/midori/libflummi.so
|
|
%{_libdir}/midori/libformhistory.so
|
|
%{_libdir}/midori/libhistory-list.so
|
|
%{_libdir}/midori/libmouse-gestures.so
|
|
%{_libdir}/midori/libnojs.so
|
|
%{_libdir}/midori/libnotes.so
|
|
%{_libdir}/midori/libnsplugin-manager.so
|
|
#%{_libdir}/midori/libpage-holder.so
|
|
%{_libdir}/midori/libopen-with.so
|
|
%{_libdir}/midori/libshortcuts.so
|
|
%{_libdir}/midori/libstatus-clock.so
|
|
%{_libdir}/midori/libstatusbar-features.so
|
|
%{_libdir}/midori/libtab-panel.so
|
|
%{_libdir}/midori/libtabby.so
|
|
%{_libdir}/midori/libtabs-minimized.so
|
|
%{_libdir}/midori/libtoolbar-editor.so
|
|
%{_libdir}/midori/libtransfers.so
|
|
%{_libdir}/midori/libwebmedia-now-playing.so
|
|
%{_datadir}/appdata/midori.appdata.xml
|
|
%{_datadir}/applications/midori.desktop
|
|
%{_datadir}/applications/midori-private.desktop
|
|
%{_datadir}/icons/hicolor/*x*/*/*.png
|
|
%{_datadir}/icons/hicolor/scalable/*/*.svg
|
|
%{_datadir}/icons/hicolor/*/status/*svg
|
|
%dir %{_datadir}/midori
|
|
%dir %{_datadir}/midori/res
|
|
%{_datadir}/midori/res/*
|
|
%doc AUTHORS 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
|
|
* 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
|