Blame nuvolaruntime.spec

681112c
# TODO, maybe later
681112c
# move test service into nuvola-app-test subpackage.
681112c
# package the engine.io.js separately
681112c
681112c
%global unique_name eu.tiliado.Nuvola
681112c
681112c
Name:           nuvolaruntime
2724569
Version:        4.5.0
4886937
Release:        5%{?dist}
681112c
# Nuvola itself is BSD licensed, but the bundled engineio-soup content is MIT.
681112c
License:        BSD and MIT
681112c
Summary:        Tight integration of web apps with your desktop
681112c
URL:            https://github.com/tiliado/nuvolaruntime/
681112c
Source:         https://github.com/tiliado/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
a4a6c89
Patch0:         0001-Revert-Check-whether-VA-API-driver-is-installed.patch
a4a6c89
Patch1:         0002-Revert-Check-whether-VDPAU-driver-is-installed.patch
681112c
17a2a84
# Build is broken on ppc64le 
4886937
#if 0%{?fedora} >= 26
4886937
#ExcludeArch:    ppc64le
4886937
#endif
17a2a84
681112c
BuildRequires:  gcc
681112c
BuildRequires:  desktop-file-utils
681112c
BuildRequires:  pkgconfig(gstreamer-1.0)
2724569
BuildRequires:  pkgconfig(dioriteglib4) >= 4.5.0
681112c
BuildRequires:  pkgconfig(json-glib-1.0)
681112c
BuildRequires:  pkgconfig(libnotify)
681112c
BuildRequires:  pkgconfig(libsoup-2.4)
681112c
BuildRequires:  pkgconfig(libsecret-1)
681112c
BuildRequires:  %{_bindir}/valac
681112c
BuildRequires:  %{_bindir}/waf-3
681112c
BuildRequires:  pkgconfig(uuid)
681112c
BuildRequires:  pkgconfig(webkit2gtk-4.0)
681112c
BuildRequires:  pkgconfig(sqlite3)
681112c
BuildRequires:  libappstream-glib
e3ebf1b
BuildRequires:  libdrm-devel
2724569
BuildRequires:  python3-pyparsing
681112c
# For directory ownership
681112c
Requires:       dbus
681112c
Requires:       diorite >= 4.4.0
681112c
Provides:       bundled(engine.io) = 1.6.9
681112c
Recommends:     gstreamer1-plugin-mpg123
681112c
681112c
# obsoletion of nuvolaplayer
681112c
Obsoletes: nuvolaplayer <= 3.1.3-7
681112c
681112c
%description
681112c
Nuvola Apps is a runtime for semi-sandboxed web apps providing more native
681112c
user experience and tighter integration with Linux desktop environments than
681112c
usual web browsers can offer. It tries to feel and look like a native
681112c
application as much as possible. Nuvola mostly specializes on music
681112c
streaming web apps (e.g. Google Play Music, Spotify, Amazon Music, Deezer, and
681112c
more), but progress is being made to support generic web apps
681112c
(e.g. Google Calendar, Google Keep, etc.).
681112c
681112c
%package        devel
681112c
Summary:        Development package for %{name}
681112c
Requires:       %{name}%{?_isa} = %{version}-%{release}
681112c
681112c
%description    devel
681112c
This package contains development files for %{name}
681112c
681112c
681112c
%prep
681112c
%setup -q
a4a6c89
%patch0 -p1
a4a6c89
%patch1 -p1
681112c
681112c
rm ./waf
681112c
rm -rf ./.waf
681112c
rm branding/default.json
681112c
681112c
# libengineio.so is not a bundled library in the meaning as a copy of an
681112c
# independent library. It just hasn't been separated into and independent
681112c
# library yet. Engineio is used in some experimental features which are not
681112c
# built by default yet but that may change in the future.
681112c
# So we do not ship the library ATM.
681112c
# Ticket: https://github.com/tiliado/nuvolaplayer/issues/334
681112c
681112c
# web_apps/test is a test service to test various features of Nuvola
681112c
# (nuvola -D -a test).
681112c
# It may be helpful when you need provide your users with support.
681112c
# It might go to devel subpackage though.
681112c
# https://github.com/tiliado/nuvolaplayer/issues/334
681112c
681112c
# The mp3 file is used to check that gstreamer can play mp3 files.
681112c
# It is done on Nuvola's start-up automatically.
681112c
# The mp3 file is available, in the Format support dialog.
681112c
# The programm does not crash, if the mp3 file is not delivered with,
681112c
# but format support check does not work then.
681112c
# Ticket: https://github.com/tiliado/nuvolaplayer/issues/334
681112c
681112c
%build
1820761
waf configure --prefix=%{_prefix} \
681112c
              --libdir=%{_libdir}   \
681112c
              --noappindicator      \
681112c
              --nounity
681112c
1820761
waf build --prefix=%{_prefix} \
681112c
            --libdir=%{_libdir}
681112c
681112c
%install
1820761
waf install --prefix=%{_prefix} \
681112c
              --libdir=%{_libdir} \
681112c
              --destdir=%{buildroot}
681112c
681112c
# The unique name has been changed to `eu.tiliado.Nuvola` and \
681112c
# most of the resources (e.g. icons) use this name.
681112c
desktop-file-install                                    \
681112c
--add-category="AudioVideo"                             \
681112c
--delete-original                                       \
681112c
--dir=%{buildroot}%{_datadir}/applications              \
681112c
%{buildroot}%{_datadir}/applications/%{unique_name}.desktop
681112c
681112c
rm %{buildroot}%{_libdir}/libengineio.so
681112c
rm %{buildroot}%{_includedir}/%{name}-1.0/engineio.h
681112c
rm %{buildroot}%{_datadir}/vala/vapi/engineio.*
681112c
681112c
%check
681112c
# test suite
681112c
LD_LIBRARY_PATH=./build ./build/run-nuvolaruntime-tests
681112c
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
681112c
681112c
%post
681112c
/sbin/ldconfig
681112c
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
681112c
681112c
%postun
681112c
/sbin/ldconfig
681112c
if [ $1 -eq 0 ] ; then
681112c
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
681112c
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
681112c
fi
681112c
681112c
%posttrans
681112c
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
681112c
681112c
681112c
%files
681112c
%doc README.md
681112c
%license LICENSE
681112c
%{_bindir}/nuvola*
681112c
%{_datadir}/applications/%{unique_name}.desktop
681112c
%{_datadir}/icons/hicolor/*/apps/%{unique_name}.*
681112c
%dir %{_datadir}/%{name}
681112c
%{_datadir}/%{name}/audio/
681112c
%{_datadir}/%{name}/js/
681112c
%{_datadir}/%{name}/welcome.xml
681112c
%{_datadir}/%{name}/www/
681112c
%dir %{_datadir}/metainfo
681112c
%{_datadir}/*/%{unique_name}.appdata.xml
681112c
%{_libdir}/lib%{name}-*.so
681112c
%{_libdir}/%{name}/
681112c
%dir %{_datadir}/dbus-1/services
681112c
%{_datadir}/dbus-1/services/eu.tiliado.NuvolaOse.service
681112c
681112c
%files devel
681112c
%dir %{_includedir}/%{name}-1.0
681112c
%{_includedir}/%{name}-1.0/*.h
681112c
%dir %{_datadir}/vala
681112c
%dir %{_datadir}/vala/vapi
681112c
%{_datadir}/vala/vapi/%{name}-*
681112c
%{_datadir}/%{name}/web_apps/test/
681112c
%{_datadir}/%{name}/web_apps/testmse/
681112c
%dir %{_datadir}/%{name}/web_apps
681112c
%{_libdir}/pkgconfig/%{name}-*.pc
681112c
681112c
681112c
%changelog
4886937
* Mon Jul 31 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.5.0-5
4886937
- include ppc64le again
4886937
56ef7b2
* Fri Jul 28 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.5.0-4
56ef7b2
- exclude ppc64le due build problem
56ef7b2
4337db9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-3
4337db9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4337db9
c4ee1da
* Mon Jul 24 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.5.0-2
c4ee1da
- include ppc64le again
c4ee1da
a4a6c89
* Thu Jul 20 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.5.0-1
2724569
- update to 4.5.0
a4a6c89
- Add 0001-Revert-Check-whether-VA-API-driver-is-installed.patch
a4a6c89
- Add 0002-Revert-Check-whether-VDPAU-driver-is-installed.patch
2724569
- dropped %%{name}-wscript.patch
17a2a84
- add if condition due ppc64le build problem
2724569
681112c
* Tue Jun 06 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.4.0-3
681112c
- delete space at EOL
681112c
- add configure option --noappindicator
681112c
- remove BR  pkgconfig(appindicator3-0.1)
681112c
- shorten description
681112c
- add test suite
681112c
681112c
* Mon Jun 05 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.4.0-2
681112c
- remove Trademarks in Description
681112c
- add Obsoletes: nuvolaplayer <= 3.1.3-7
681112c
681112c
* Fri Jun 02 2017 Martin Gansser <martinkg@fedoraproject.org> - 4.4.0-1
681112c
- update to 4.4.0
681112c
- add BR pkgconfig(appindicator3-0.1)
681112c
- rename package from nuvolaplayer to nuvolaruntime
681112c
681112c
* Mon May 15 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-6
681112c
- add version to bundled engine.io
681112c
681112c
* Fri May 12 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-5
681112c
- add clarifying comment above the license tag
681112c
- add Provides: bundled(engine.io)
681112c
681112c
* Thu May 11 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-4
681112c
- removed validation of .desktop file
681112c
- add validation of AppData
681112c
- add BR libappstream-glib
681112c
- remove BR xorg-x11-utils
681112c
- remove BR xorg-x11-server-Xvfb
681112c
- move the note about the test suite into the %%check section
681112c
- changed license field to BSD
681112c
- use %%setup -q
681112c
- remove %%{buildroot}%%{_libdir}/libengineio.so
681112c
- remove %%{buildroot}%%{_includedir}/%%{name}3-1.0/engineio.h
681112c
- remove %%{buildroot}%%{_datadir}/vala/vapi/engineio.*
681112c
- add Recommends: gstreamer1-plugin-mpg123
681112c
681112c
* Thu May 04 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-3
681112c
- remove unneeded build dependencies
681112c
- sqlite dependency is not conditional
681112c
- add BR gcc
681112c
- moved %%{_datadir}/vala/vapi/* to -devel subpackage
681112c
- fix directory ownership
681112c
- %%exclude %%{_libdir}/libengineio.so
681112c
- add MIT license
681112c
681112c
* Tue May 02 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-2
681112c
- add BR pkgconfig(sqlite3) for fedora > 26
681112c
- dropped BR pkgconfig(unity)
681112c
- add --nounity configure flag
681112c
681112c
* Mon May 01 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.3-1
681112c
- Update to 3.1.3-1
681112c
- Add BR pkgconfig(unity)
681112c
- Add RR %%{_bindir}/waf-3
681112c
681112c
* Fri Apr 21 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.2-2
681112c
- Use virtual provides for BR
681112c
- Add BR libuuid-devel
681112c
- Add BR %%{_bindir}/waf
681112c
- Add BR %%{_bindir}/valac
681112c
- Use system waf installation
681112c
- Add %%{name}-wscript.patch
681112c
- Add %%{name}-wscript-rawhide.patch
681112c
681112c
* Sun Apr 16 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.1.2-1
681112c
- Update to 3.1.2-1
681112c
681112c
* Tue Jan 17 2017 Martin Gansser <martinkg@fedoraproject.org> - 3.0.4-1
681112c
- Update to 3.0.4
681112c
- use commit revision in source url
681112c
- added BR diorite-devel
681112c
- added BR libarchive-devel
681112c
- added BR webkitgtk4-devel
681112c
681112c
* Wed Oct 15 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.3-3
681112c
- fixed 'if' conditions
681112c
- added configure flag '--debug-symbols' to build with debug infos
681112c
681112c
* Tue Oct 14 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.3-2
681112c
- added 'if' conditions to fix f22 build
681112c
681112c
* Sun Sep 07 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.3-1
681112c
- Update to 2.4.3
681112c
- reenabled lastfm build, because it's fixed in new release
681112c
681112c
* Thu Sep 04 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.2-5
681112c
- added ldconfig back again due of Packaging:Guidelines#Shared_Libraries
681112c
681112c
* Wed Sep 03 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.2-4
681112c
- added license files described in license tag
681112c
- removed ldconfig
681112c
681112c
* Sat Aug 30 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.2-3
681112c
- dropped BR unique
681112c
- disabled lastfm build
681112c
681112c
* Fri Aug 29 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.2-2
681112c
- added BR libsoup
681112c
681112c
* Fri Jul 18 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.2-1
681112c
- Update to 2.4.2
681112c
681112c
* Tue Jul 08 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.1-1
681112c
- Update to 2.4.1
681112c
681112c
* Sun Jun 01 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.4.0-1
681112c
- Update to 2.4.0
681112c
681112c
* Thu May 29 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.3-2
681112c
- replaced %%RPM_BUILD_ROOT by %%{buildroot}
681112c
- delete BR bzr
681112c
- added /sbin/ldconfig calls in %%post and %%postun
681112c
681112c
* Sun May 04 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.3-1
681112c
- Update to 2.3.3
681112c
681112c
* Tue Apr 15 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.2-2
681112c
- added  patch to build with valac 0.24
681112c
- changed to waf-1.7.16
681112c
681112c
* Wed Mar 26 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.2-1
681112c
- Update to 2.3.2
681112c
681112c
* Sat Mar 22 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.1-3
681112c
- added bzr requirement
681112c
681112c
* Sat Mar 22 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.1-2
681112c
- added vala-devel requirement
681112c
681112c
* Fri Mar 21 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.1-1
681112c
- Update to 2.3.1
681112c
- removed requirement vala-compat-devel
681112c
681112c
* Thu Feb 13 2014 Martin Gansser <martinkg@fedoraproject.org> - 2.3.0-1
681112c
- Update to 2.3.0
681112c
- Added patch to use revision 805
681112c
- changed waf version in %%prep section
681112c
681112c
* Sun Dec 15 2013 Martin Gansser <martinkg@fedoraproject.org> - 2.2.0-7
681112c
- add missing license type
681112c
681112c
* Sun Dec 15 2013 Martin Gansser <martinkg@fedoraproject.org> - 2.2.0-6
681112c
- change %%description
681112c
- remove google-music-frame because it's not provided.
681112c
- correct %%RPM_BUILD_ROOT path
681112c
- add Xvfb to build requirement
681112c
- remove skip-tests build option
681112c
- add build option xvfb-run -a to build option
681112c
681112c
* Wed Dec 11 2013 Martin Gansser <martinkg@fedoraproject.org> - 2.2.0-5
681112c
- cleanup build requires
681112c
681112c
* Sun Dec 08 2013 Martin Gansser <martinkg@fedoraproject.org> - 2.2.0-4
681112c
- remove java requirement
681112c
- add tsocks as a run-time requirement
681112c
- remove exclusion of libnuvolaplayerprivate.so
681112c
681112c
* Sun Dec 08 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-3
681112c
- fix directory ownership
681112c
- add requires control-center-filesystem
681112c
- add requires java-1.7.0-openjdk
681112c
- fix dangling-relative-symlink
681112c
681112c
* Sat Dec 07 2013 Martin Gansser <martinkg@fedoraproject.org> - 2.2.0-2
681112c
- rebuild
681112c
681112c
* Sat Dec 07 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-1
681112c
- fix vala build requires
681112c
- add waf build requires
681112c
- add gstreamer1 build requires
681112c
- use external waf to build
681112c
- add libdir to waf commands
681112c
- vailidate desktop file
681112c
- fix source tag
681112c
- remove groups tag
681112c
- remove build tag
681112c
- remove defattr from file section
681112c
- add missing scriptlets