Mageia Bugzilla – Attachment 13209 Details for
Bug 27088
vdhcoapp: NEW PKG REQUEST. Video Downloadhelper is a companion application for the Firefox addon called Video DownloadHelper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
New proposal spec for the latest version 1.6.3
vdhcoapp.spec (text/x-matlab), 2.55 KB, created by
Kristoffer Grundström
on 2022-03-28 21:59:56 CEST
(
hide
)
Description:
New proposal spec for the latest version 1.6.3
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2022-03-28 21:59:56 CEST
Size:
2.55 KB
patch
obsolete
>%global debug_package %{nil} ># workaround debug-id conflicts (with fx_cast) >%global _build_id_links none >%global __os_install_post /usr/lib/rpm/brp-compress %{nil} >%global __provides_exclude_from %{_datadir}/%{name} >%global __requires_exclude_from %{_datadir}/%{name} > >%global commit0 5a430c0c2221b27afe68711ac63df44cfaaea0ea >%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) >%global gver .git%{shortcommit0} > ># Put here new versions of yarn >#https://github.com/yarnpkg/yarn/releases >%global y_ver 1.22.18 > ># We need said to gulp our Machine >%ifarch x86_64 >%global platform 64 >%else >%global platform 32 >%endif > >Name: vdhcoapp >Summary: Companion application for Video DownloadHelper browser add-on >Group: Applications/Internet >URL: https://github.com/mi-g/vdhcoapp >Version: 1.6.3 >Release: %mkrel 1 >License: GPLv2 >Source0: https://github.com/mi-g/vdhcoapp/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz >Patch: vdhcoapp.patch >#------------------------------------- >BuildRequires: git >BuildRequires: wget >Requires: ffmpeg > >%description >Companion application for Video DownloadHelper browser add-on. > >%prep >%autosetup -n %{name}-%{commit0} -p1 > >%build > ># get yarn >wget -c https://github.com/yarnpkg/yarn/releases/download/v%{y_ver}/yarn-v%{y_ver}.tar.gz >tar xmzvf yarn-v%{y_ver}.tar.gz -C ~ > ># activate yarn >echo "export PATH=$PATH:~/yarn-v%{y_ver}/bin/:~/yarn-v%{y_ver}/lib/" >> ~/.bashrc > ># get nvm > >git clone https://github.com/creationix/nvm.git ~/nvm > ># activate nvm > >echo "source ~/nvm/nvm.sh" >> ~/.bashrc > >source ~/.bashrc >nvm install 17.8.0 >nvm use 17.8.0 > ># Begin the build >XCFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" XLDFLAGS="-Wl,-z,relro" > >~/yarn-v%{y_ver}/bin/yarn install >#~/yarn-v%{y_ver}/bin/yarn add brunch >#npm install > ># Our Firefox multilib path >%ifarch x86_64 >sed -i 's|/usr/lib|/usr/lib64|g' gulpfile.js >sed -i 's|/usr/lib|/usr/lib64|g' app/native-autoinstall.js >sed -i 's|lib/x86_64-linux-gnu|lib64|g' converter/build-apps.sh >%endif > ># We need said a npm/yarn the path of binaries already installed... >export PATH=$PATH:/usr/bin/:$PWD/node_modules/.bin/ > ># Now the installation >gulp build-linux-%{platform} > > >%install > >install -Dm755 bin/net.downloadhelper.coapp-* %{buildroot}/%{_bindir}/vdhcoapp >install -Dm644 config.json %{buildroot}/%{_datadir}/vdhcoapp/config.json > >%pre > >if [ -f /usr/bin/vdhcoapp ]; then >/usr/bin/vdhcoapp uninstall --system >else >echo 'New installation of vdhcoapp' >fi > >%post >/usr/bin/vdhcoapp install --system > > >%files >%license LICENSE.txt >%{_bindir}/%{name} >%{_datadir}/%{name}/config.json
%global debug_package %{nil} # workaround debug-id conflicts (with fx_cast) %global _build_id_links none %global __os_install_post /usr/lib/rpm/brp-compress %{nil} %global __provides_exclude_from %{_datadir}/%{name} %global __requires_exclude_from %{_datadir}/%{name} %global commit0 5a430c0c2221b27afe68711ac63df44cfaaea0ea %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global gver .git%{shortcommit0} # Put here new versions of yarn #https://github.com/yarnpkg/yarn/releases %global y_ver 1.22.18 # We need said to gulp our Machine %ifarch x86_64 %global platform 64 %else %global platform 32 %endif Name: vdhcoapp Summary: Companion application for Video DownloadHelper browser add-on Group: Applications/Internet URL: https://github.com/mi-g/vdhcoapp Version: 1.6.3 Release: %mkrel 1 License: GPLv2 Source0: https://github.com/mi-g/vdhcoapp/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz Patch: vdhcoapp.patch #------------------------------------- BuildRequires: git BuildRequires: wget Requires: ffmpeg %description Companion application for Video DownloadHelper browser add-on. %prep %autosetup -n %{name}-%{commit0} -p1 %build # get yarn wget -c https://github.com/yarnpkg/yarn/releases/download/v%{y_ver}/yarn-v%{y_ver}.tar.gz tar xmzvf yarn-v%{y_ver}.tar.gz -C ~ # activate yarn echo "export PATH=$PATH:~/yarn-v%{y_ver}/bin/:~/yarn-v%{y_ver}/lib/" >> ~/.bashrc # get nvm git clone https://github.com/creationix/nvm.git ~/nvm # activate nvm echo "source ~/nvm/nvm.sh" >> ~/.bashrc source ~/.bashrc nvm install 17.8.0 nvm use 17.8.0 # Begin the build XCFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" XLDFLAGS="-Wl,-z,relro" ~/yarn-v%{y_ver}/bin/yarn install #~/yarn-v%{y_ver}/bin/yarn add brunch #npm install # Our Firefox multilib path %ifarch x86_64 sed -i 's|/usr/lib|/usr/lib64|g' gulpfile.js sed -i 's|/usr/lib|/usr/lib64|g' app/native-autoinstall.js sed -i 's|lib/x86_64-linux-gnu|lib64|g' converter/build-apps.sh %endif # We need said a npm/yarn the path of binaries already installed... export PATH=$PATH:/usr/bin/:$PWD/node_modules/.bin/ # Now the installation gulp build-linux-%{platform} %install install -Dm755 bin/net.downloadhelper.coapp-* %{buildroot}/%{_bindir}/vdhcoapp install -Dm644 config.json %{buildroot}/%{_datadir}/vdhcoapp/config.json %pre if [ -f /usr/bin/vdhcoapp ]; then /usr/bin/vdhcoapp uninstall --system else echo 'New installation of vdhcoapp' fi %post /usr/bin/vdhcoapp install --system %files %license LICENSE.txt %{_bindir}/%{name} %{_datadir}/%{name}/config.json
View Attachment As Raw
Actions:
View
Attachments on
bug 27088
:
11799
|
11800
| 13209