av-caster.spec.xdg.nfg 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.003
  18. Release: 1%{?dist}
  19. Summary: A light-weight native gStreamer GUI for screencast, webcam, and audio recording and 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: freetype2-devel gcc-c++ libircclient-devel libX11-devel libXcursor-devel libXinerama-devel libXrandr-devel
  24. Requires: libircclient1
  25. %if 0%{?sles_version} || 0%{?suse_version}
  26. BuildRequires: gstreamer-plugins-base-devel update-desktop-files
  27. Requires: gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly
  28. %endif
  29. %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version}
  30. BuildRequires: gstreamer1-plugins-base-devel
  31. Requires: gstreamer1-plugins-good gstreamer1-plugins-bad-free gstreamer1-plugins-ugly
  32. %endif
  33. %define package_bin_dir %{buildroot}%{_bindir}
  34. %define binary_artefact Builds/Makefile/build/%{name}
  35. %define desktop_file Assets/%{name}.desktop
  36. %define icon_file Assets/avcaster-logo-48.png
  37. # %define package_bin_dir %{buildroot}%{_bindir}
  38. # %define package_apps_dir %{buildroot}%_datadir/applications/
  39. # %define package_icons_dir %{buildroot}%_datadir/icons/hicolor/48x48/apps/
  40. # %define binary_artefact Builds/Makefile/build/%{name}
  41. # %define desktop_file Assets/%{name}.desktop
  42. # %define icon_file Assets/avcaster-logo-48.png
  43. %description
  44. AvCaster is a native GNU/Linux application built with the JUCE framework
  45. and using gStreamer as the media backend. The current version capable of
  46. recording to file or streaming to an RTMP server with screen capture,
  47. webcam overlay, and stereo audio. It is moderately configurable,
  48. with a preset configuration for streaming via livecoding.tv, and allows
  49. custom user-defined configurations to be stored as additional presets.
  50. %prep
  51. %autosetup
  52. %build
  53. cd Builds/Makefile/
  54. # make %{?_smp_mflags} CONFIG=Release
  55. %install
  56. mkdir -p %package_bin_dir
  57. # mv %binary_artefact %package_bin_dir/
  58. %if 0%{?sles_version} || 0%{?suse_version}
  59. # ls -l %{buildroot}/../../
  60. # mkdir -p %package_apps_dir
  61. # mkdir -p %package_icons_dir
  62. # cp %desktop_file %{buildroot}/../../BUILDROOT
  63. # cp %icon_file %{buildroot}/../../BUILDROOT
  64. # cp %desktop_file %{buildroot}/../../BUILD
  65. # cp %icon_file %{buildroot}/../../BUILD
  66. # cp %desktop_file %{buildroot}/../../SOURCES
  67. # cp %icon_file %{buildroot}/../../SOURCES
  68. # cp %desktop_file %{buildroot}/../../
  69. # cp %icon_file %{buildroot}/../../
  70. # cp %desktop_file %{buildroot}/../
  71. # cp %icon_file %{buildroot}/../
  72. # cp %desktop_file %{buildroot}/
  73. # cp %icon_file %{buildroot}/
  74. # %suse_update_desktop_file -i %{name}.desktop
  75. %suse_update_desktop_file -i %desktop_file
  76. # %suse_update_desktop_file -i WTF
  77. %endif
  78. %files
  79. %doc
  80. %{_bindir}/%{name}
  81. %desktop_file
  82. %icon_file
  83. %post
  84. %if 0%{?sles_version} || 0%{?suse_version}
  85. # %desktop_database_post
  86. %else
  87. xdg-icon-resource install --size 48 %icon_file %{name}
  88. xdg-desktop-menu install %desktop_file
  89. %endif
  90. %postun
  91. %if 0%{?sles_version} || 0%{?suse_version}
  92. # %desktop_database_postun
  93. %else
  94. xdg-icon-resource uninstall %{name}
  95. xdg-desktop-menu uninstall %{name}.desktop
  96. %endif
  97. %changelog
  98. * Sun May 15 2016 bill-auger
  99. - v0.16.003