av-caster.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # spec file for package av-caster
  3. #
  4. # Copyright (c) 2015-2106 bill-auger bill-auger@programmer.net
  5. #
  6. # All modifications and additions to the file contributed by third parties
  7. # remain the property of their copyright owners, unless otherwise agreed
  8. # upon. The license for this file, and modifications and additions to the
  9. # file, is the same license as for the pristine package itself (unless the
  10. # license for the pristine package is not an Open Source License, in which
  11. # case the license is the MIT License). An "Open Source License" is a
  12. # license that conforms to the Open Source Definition (Version 1.9)
  13. # published by the Open Source Initiative.
  14. # Please submit bugfixes or comments via http://bugs.opensuse.org/
  15. #
  16. Name: av-caster
  17. Version: 0.16.004
  18. Release: 1%{?dist}
  19. Summary: A light-weight native gStreamer GUI for screencast, webcam, and audio streaming
  20. License: GPL-3.0
  21. URL: https://github.com/bill-auger/%{name}/
  22. Source0: https://github.com/bill-auger/%{name}/archive/v%{version}.tar.gz
  23. BuildRequires: gcc-c++ libircclient-devel libX11-devel libXcursor-devel libXinerama-devel libXrandr-devel
  24. %if 0%{?sles_version} || 0%{?suse_version}
  25. BuildRequires: freetype2-devel gstreamer-plugins-base-devel update-desktop-files
  26. Requires: gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly libircclient1
  27. %endif
  28. %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version}
  29. BuildRequires: freetype-devel gstreamer1-plugins-base-devel
  30. Requires: gstreamer1-plugins-good gstreamer1-plugins-bad-free gstreamer1-plugins-ugly libircclient
  31. %endif
  32. %define package_bin_dir %{buildroot}%{_bindir}
  33. %define package_apps_dir %{buildroot}%_datadir/applications/
  34. %define package_icons_dir %{buildroot}%_datadir/icons/hicolor/48x48/apps/
  35. %define binary_artefact Builds/Makefile/build/%{name}
  36. %define desktop_file Assets/%{name}.desktop
  37. %define icon_file Assets/avcaster-logo-48.png
  38. %description
  39. AvCaster is a native GNU/Linux application built with the JUCE framework
  40. and using gStreamer as the media backend. The current version capable of
  41. recording to file or streaming to an RTMP server with screen capture,
  42. webcam overlay, and stereo audio. It is moderately configurable,
  43. with a preset configuration for streaming via livecoding.tv, and allows
  44. custom user-defined configurations to be stored as additional presets.
  45. %prep
  46. %autosetup
  47. %build
  48. cd Builds/Makefile/
  49. make %{?_smp_mflags} CONFIG=Release
  50. %install
  51. mkdir -p %{buildroot}%{_bindir}
  52. # mkdir -p %package_apps_dir
  53. # mkdir -p %package_icons_dir
  54. mv %binary_artefact %package_bin_dir/
  55. # mv %desktop_file %package_apps_dir/
  56. # mv %icon_file %package_icons_dir/
  57. %files
  58. %doc
  59. %{_bindir}/%{name}
  60. %post
  61. %if ! 0%{?suse_version}
  62. xdg-desktop-menu forceupdate
  63. %endif
  64. %postun
  65. %if ! 0%{?suse_version}
  66. xdg-desktop-menu forceupdate
  67. %endif
  68. %changelog
  69. * Wed Sep 14 2016 bill-auger
  70. - v0.16.004