Mageia Bugzilla – Attachment 11097 Details for
Bug 22689
Wire - An encrypted web based chat client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
New spec file to build the latest wire-desktop
wire-desktop.spec (text/x-matlab), 2.66 KB, created by
Kristoffer Grundström
on 2019-06-16 02:40:18 CEST
(
hide
)
Description:
New spec file to build the latest wire-desktop
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2019-06-16 02:40:18 CEST
Size:
2.66 KB
patch
obsolete
>%global __provides_exclude_from %{_libdir}/%{name}/.*\\.so >%global privlibs libffmpeg|libnode >%global __requires_exclude ^(%{privlibs})\\.so|lodash.some|commander|glob|uglify-js > ># Oh, it fetch some binaries. Fucking nodejs >%global debug_package %{nil} > >Summary: Modern communication, full privacy >Name: wire-desktop >Version: 3.9.2895 >Release: %mkrel 1 >License: GPLv3 >URL: https://wire.com >Source0: https://github.com/wireapp/%{name}/archive/release/%{version}.tar.gz#/%{name}-linux-%{version}.tar.gz >Source1: %{name}.desktop >BuildRequires: desktop-file-utils >BuildRequires: gcc-c++ >BuildRequires: git >BuildRequires: hicolor-icon-theme >BuildRequires: npm >= 3.10.0 > >##Install yarn from it's website as it's not recommended to install it via NPM >##BuildRequires: yarn > >%if 0%{?fedora} >= 25 >BuildRequires: python2 >%endif > >%description >Wire is an open source, cross-platform, encrypted instant messaging client. It >uses the Internet to make voice and video calls; send text messages, files, >images, videos, audio files and user drawings depending on the clients used. It >can be used on any of the available clients, requiring a phone number or email >for registration. > >%prep >%autosetup -n %{name}-linux-%{version} >yarn > >%build >yarn install >%ifarch x86_64 >yarn build:linux --arch=x64 --target=rpm linux-other >%else >yarn build:linux --arch=ia32 --target=rpm linux-other >%endif > >%install >mkdir -p %{buildroot}%{_libdir}/%{name} >cp -r wrap/dist/linux*unpacked/* \ > %{buildroot}%{_libdir}/%{name}/ > >mkdir -p %{buildroot}%{_datadir}/applications >install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop > >desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop > >mkdir -p %{buildroot}%{_bindir} >for size in 32 256; do > mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps > install -m644 resources/icons/${size}x${size}.png \ > %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png >done > >cd %{buildroot}%{_bindir} >ln -s ../%{_lib}/%{name}/wire-desktop >cd - > >%post >update-desktop-database &> /dev/null || : >touch --no-create /usr/share/icons/hicolor &>/dev/null || : >if [ -x /usr/bin/gtk-update-icon-cache ]; then > /usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor || : >fi > >%postun >if [ $1 -eq 0 ] ; then > touch --no-create /usr/share/icons/hicolor &>/dev/null > gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || : >fi >update-desktop-database &> /dev/null || : > >%posttrans >gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || : > >%files >%license LICENSE >%doc README.md >%{_bindir}/%{name} >%dir %{_libdir}/%{name} >%{_libdir}/%{name}/* >%{_datadir}/icons/hicolor/*/apps/%{name}.png >%{_datadir}/applications/%{name}.desktop
%global __provides_exclude_from %{_libdir}/%{name}/.*\\.so %global privlibs libffmpeg|libnode %global __requires_exclude ^(%{privlibs})\\.so|lodash.some|commander|glob|uglify-js # Oh, it fetch some binaries. Fucking nodejs %global debug_package %{nil} Summary: Modern communication, full privacy Name: wire-desktop Version: 3.9.2895 Release: %mkrel 1 License: GPLv3 URL: https://wire.com Source0: https://github.com/wireapp/%{name}/archive/release/%{version}.tar.gz#/%{name}-linux-%{version}.tar.gz Source1: %{name}.desktop BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: git BuildRequires: hicolor-icon-theme BuildRequires: npm >= 3.10.0 ##Install yarn from it's website as it's not recommended to install it via NPM ##BuildRequires: yarn %if 0%{?fedora} >= 25 BuildRequires: python2 %endif %description Wire is an open source, cross-platform, encrypted instant messaging client. It uses the Internet to make voice and video calls; send text messages, files, images, videos, audio files and user drawings depending on the clients used. It can be used on any of the available clients, requiring a phone number or email for registration. %prep %autosetup -n %{name}-linux-%{version} yarn %build yarn install %ifarch x86_64 yarn build:linux --arch=x64 --target=rpm linux-other %else yarn build:linux --arch=ia32 --target=rpm linux-other %endif %install mkdir -p %{buildroot}%{_libdir}/%{name} cp -r wrap/dist/linux*unpacked/* \ %{buildroot}%{_libdir}/%{name}/ mkdir -p %{buildroot}%{_datadir}/applications install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop mkdir -p %{buildroot}%{_bindir} for size in 32 256; do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps install -m644 resources/icons/${size}x${size}.png \ %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png done cd %{buildroot}%{_bindir} ln -s ../%{_lib}/%{name}/wire-desktop cd - %post update-desktop-database &> /dev/null || : touch --no-create /usr/share/icons/hicolor &>/dev/null || : if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor || : fi %postun if [ $1 -eq 0 ] ; then touch --no-create /usr/share/icons/hicolor &>/dev/null gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || : fi update-desktop-database &> /dev/null || : %posttrans gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || : %files %license LICENSE %doc README.md %{_bindir}/%{name} %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/applications/%{name}.desktop
View Attachment As Raw
Actions:
View
Attachments on
bug 22689
:
10013
|
10014
|
10040
| 11097 |
11098