Mageia Bugzilla – Attachment 6730 Details for
Bug 16107
[WISH] Add Popcorn Time to official repos
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Here's the proper spec-file to build your own version
popcorntime.spec (text/x-rpm-spec), 5.27 KB, created by
Kristoffer Grundström
on 2015-06-11 03:13:15 CEST
(
hide
)
Description:
Here's the proper spec-file to build your own version
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2015-06-11 03:13:15 CEST
Size:
5.27 KB
patch
obsolete
>AutoReqProv: no >%{?nodejs_find_provides_and_requires} >%global _enable_debug_package 0 >%global debug_package %{nil} >%global __os_install_post /usr/lib/rpm/brp-compress %{nil} > >%ifarch x86_64 >%global platform linux64 >%else >%global platform linux32 >%endif > >Name: popcorntime >Summary: Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch. >Group: Video >URL: https://popcorntime.io/ >Version: 0.3.7.2 >Release: 1 >License: GPLv3 >#Source 0: with popcorntime-snapshot.sh includes git submodules ># src/app/language and src/app/styl/third_party/ >Source0: popcorntime-%{version}.tar.bz2 >#Source 1: after npm install >#cd /var/lib/mock/fedora-20-x86_64/root/builddir/build/BUILD/popcorntime-0.3.5.4/ >#tar zcvf node_modules.tgz node_modules/ && cp node_modules.tgz ~/rpmbuild/popcorntime/ >#Source1: node_modules.tgz >Source2: popcorntime.png >Source3: popcorntime-snapshot.sh >#TODO also cache node-webkit-v0.9.2 >#Source5: node-webkit-v0.9.2-linux-ia32.tar.gz >#Source6: node-webkit-v0.9.2-linux-x64.tar.gz >#------------------------------------- >BuildRequires: git >BuildRequires: nodejs >BuildRequires: ruby-compass >BuildRequires: nodejs-inherits >BuildRequires: nodejs-abbrev >BuildRequires: nodejs-glob >BuildRequires: nodejs-minimatch >BuildRequires: nodejs-sigmund >BuildRequires: binutils >BuildRequires: nodejs-grunt >BuildRequires: nodejs-grunt-cli >BuildRequires: nodejs-packaging >BuildRequires: nodejs-underscore >BuildRequires: unzip >BuildRequires: tar >#------------------------------------- ># Requires for nodewebkit >BuildRequires: libnss-devel >BuildRequires: libalsa2-devel >#------------------------------------- > >Requires: GConf2 >Requires: gtk+2.0 >Requires: nodejs >Requires: ruby-compass >Requires: tar >Requires: net-tools >Requires: nss > >%description >Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch. > >%prep >%setup -q >#%setup -q -D -T -a1 > >npm cache clean >npm config set registry http://registry.npmjs.org/ >npm install > >%build > >#http://discuss.popcorntime.io/t/warning-unable-to-read-git-head/3441 ># we could use grunt build --force but this way is more correct > >grunt css >grunt stylus:third_party >grunt bower_clean >grunt nodewebkit > >%install > >install -dm 755 %{buildroot}/%{_datadir}/%{name} >install -dm 755 %{buildroot}/%{_datadir}/pixmaps >install -dm 755 %{buildroot}/%{_bindir} >install -dm 755 %{buildroot}/%{_datadir}/applications > >install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps/ >install -m 0644 %{_builddir}/%{name}-%{version}/build/releases/Popcorn-Time/%{platform}/Popcorn-Time/* %{buildroot}/%{_datadir}/%{name} >chmod 755 %{buildroot}/%{_datadir}/%{name}/Popcorn-Time >ln -sf %{_datadir}/%{name}/Popcorn-Time %{buildroot}/%{_bindir}/popcorntime > >cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF >[Desktop Entry] >Name=Popcorn Time >Comment=Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch >Exec=/usr/bin/popcorntime >Icon=/usr/share/pixmaps/popcorntime.png >Type=Application >Categories=AudioVideo; >StartupNotify=true >EOF > >%files >%{_bindir}/popcorntime >%{_datadir}/%{name}/ >%{_datadir}/applications/%{name}.desktop >%{_datadir}/pixmaps/popcorntime.png > >%changelog > >* Thu Jun 11 2015 Kristoffer Grundström <kristoffer.grundstrom1983@gmail.com> - 0.3.7.2-1mga5 >- Initial port from Fedora to Mageia >- Release > >* Wed Apr 29 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150429-ddee0b5-2 >- Rebuild for F22 > >* Thu Apr 16 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150416-ddee0b5-1 >- Update to 0.3.7.2-20150416-ddee0b5 > >* Tue Mar 03 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150303-736eca1 >- Update to popcorntime-0.3.7.2-20150303-736eca1 > >* Fri Jan 16 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.1-0.1.20150116git3bdf262 >- Update to popcorntime-0.3.7.1-20150116-3bdf262 > >* Tue Dec 30 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.6-0.1.20141229git88ac669 >- Update to popcorntime-0.3.6-20141229-88ac669 >- Changed icon > >* Sun Dec 21 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.5.20141221git6f42270 >- Update to popcorntime-0.3.5.4-20141221-6f42270 > >* Sat Dec 20 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.4.20141220git267a7a4 >- Update to popcorntime-0.3.5.4-20141220-267a7a4 > >* Mon Dec 08 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.2.20141208git83e51cc >- Update to popcorn-app-0.3.5.4-20141208-83e51cc >- Added themes also tip from archlinux. >- Snapshot now includes sub modules src/app/styl/third_party and src/app/language (popcorn-app/.gitmodules). > >* Sun Dec 07 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.1 >- Update to 0.3.5-4 >- Build with pre-downloaded node_modules.tgz > >* Tue Nov 25 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.2-1 >- add Some tips imported from archlinux https://aur.archlinux.org/packages/popcorntime >- try build with pre-downloaded node_modules.tgz to stablize builds and makes not > depend on net but did not worked. > >* Mon Oct 13 2014 Sérgio Basto <sergio@serjux.com> - 0.3.4-1 >- New upstream release . > >* Thu Aug 07 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.2-1 >- Updated to 0.3.2 >- Changed repository > >* Fri Jul 25 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.2.8-2 >- Changed to local path > >* Mon Mar 10 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.2.8-1 >- initial build
AutoReqProv: no %{?nodejs_find_provides_and_requires} %global _enable_debug_package 0 %global debug_package %{nil} %global __os_install_post /usr/lib/rpm/brp-compress %{nil} %ifarch x86_64 %global platform linux64 %else %global platform linux32 %endif Name: popcorntime Summary: Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch. Group: Video URL: https://popcorntime.io/ Version: 0.3.7.2 Release: 1 License: GPLv3 #Source 0: with popcorntime-snapshot.sh includes git submodules # src/app/language and src/app/styl/third_party/ Source0: popcorntime-%{version}.tar.bz2 #Source 1: after npm install #cd /var/lib/mock/fedora-20-x86_64/root/builddir/build/BUILD/popcorntime-0.3.5.4/ #tar zcvf node_modules.tgz node_modules/ && cp node_modules.tgz ~/rpmbuild/popcorntime/ #Source1: node_modules.tgz Source2: popcorntime.png Source3: popcorntime-snapshot.sh #TODO also cache node-webkit-v0.9.2 #Source5: node-webkit-v0.9.2-linux-ia32.tar.gz #Source6: node-webkit-v0.9.2-linux-x64.tar.gz #------------------------------------- BuildRequires: git BuildRequires: nodejs BuildRequires: ruby-compass BuildRequires: nodejs-inherits BuildRequires: nodejs-abbrev BuildRequires: nodejs-glob BuildRequires: nodejs-minimatch BuildRequires: nodejs-sigmund BuildRequires: binutils BuildRequires: nodejs-grunt BuildRequires: nodejs-grunt-cli BuildRequires: nodejs-packaging BuildRequires: nodejs-underscore BuildRequires: unzip BuildRequires: tar #------------------------------------- # Requires for nodewebkit BuildRequires: libnss-devel BuildRequires: libalsa2-devel #------------------------------------- Requires: GConf2 Requires: gtk+2.0 Requires: nodejs Requires: ruby-compass Requires: tar Requires: net-tools Requires: nss %description Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch. %prep %setup -q #%setup -q -D -T -a1 npm cache clean npm config set registry http://registry.npmjs.org/ npm install %build #http://discuss.popcorntime.io/t/warning-unable-to-read-git-head/3441 # we could use grunt build --force but this way is more correct grunt css grunt stylus:third_party grunt bower_clean grunt nodewebkit %install install -dm 755 %{buildroot}/%{_datadir}/%{name} install -dm 755 %{buildroot}/%{_datadir}/pixmaps install -dm 755 %{buildroot}/%{_bindir} install -dm 755 %{buildroot}/%{_datadir}/applications install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps/ install -m 0644 %{_builddir}/%{name}-%{version}/build/releases/Popcorn-Time/%{platform}/Popcorn-Time/* %{buildroot}/%{_datadir}/%{name} chmod 755 %{buildroot}/%{_datadir}/%{name}/Popcorn-Time ln -sf %{_datadir}/%{name}/Popcorn-Time %{buildroot}/%{_bindir}/popcorntime cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Name=Popcorn Time Comment=Popcorn Time streams movies from torrents. Skip the downloads. Launch, click, watch Exec=/usr/bin/popcorntime Icon=/usr/share/pixmaps/popcorntime.png Type=Application Categories=AudioVideo; StartupNotify=true EOF %files %{_bindir}/popcorntime %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/popcorntime.png %changelog * Thu Jun 11 2015 Kristoffer Grundström <kristoffer.grundstrom1983@gmail.com> - 0.3.7.2-1mga5 - Initial port from Fedora to Mageia - Release * Wed Apr 29 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150429-ddee0b5-2 - Rebuild for F22 * Thu Apr 16 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150416-ddee0b5-1 - Update to 0.3.7.2-20150416-ddee0b5 * Tue Mar 03 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.2-20150303-736eca1 - Update to popcorntime-0.3.7.2-20150303-736eca1 * Fri Jan 16 2015 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.7.1-0.1.20150116git3bdf262 - Update to popcorntime-0.3.7.1-20150116-3bdf262 * Tue Dec 30 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.6-0.1.20141229git88ac669 - Update to popcorntime-0.3.6-20141229-88ac669 - Changed icon * Sun Dec 21 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.5.20141221git6f42270 - Update to popcorntime-0.3.5.4-20141221-6f42270 * Sat Dec 20 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.4.20141220git267a7a4 - Update to popcorntime-0.3.5.4-20141220-267a7a4 * Mon Dec 08 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.2.20141208git83e51cc - Update to popcorn-app-0.3.5.4-20141208-83e51cc - Added themes also tip from archlinux. - Snapshot now includes sub modules src/app/styl/third_party and src/app/language (popcorn-app/.gitmodules). * Sun Dec 07 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.4-0.1 - Update to 0.3.5-4 - Build with pre-downloaded node_modules.tgz * Tue Nov 25 2014 Sérgio Basto <sergio@serjux.com> - 0.3.5.2-1 - add Some tips imported from archlinux https://aur.archlinux.org/packages/popcorntime - try build with pre-downloaded node_modules.tgz to stablize builds and makes not depend on net but did not worked. * Mon Oct 13 2014 Sérgio Basto <sergio@serjux.com> - 0.3.4-1 - New upstream release . * Thu Aug 07 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.3.2-1 - Updated to 0.3.2 - Changed repository * Fri Jul 25 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.2.8-2 - Changed to local path * Mon Mar 10 2014 David Vásquez <davidjeremias82 AT gmail DOT com> - 0.2.8-1 - initial build
View Attachment As Raw
Actions:
View
Attachments on
bug 16107
: 6730