jellyfin.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. %global debug_package %{nil}
  2. # Set the dotnet runtime
  3. %if 0%{?fedora}
  4. %global dotnet_runtime fedora-x64
  5. %else
  6. %global dotnet_runtime centos-x64
  7. %endif
  8. Name: jellyfin
  9. Version: 10.2.2
  10. Release: 1%{?dist}
  11. Summary: The Free Software Media Browser
  12. License: GPLv2
  13. URL: https://jellyfin.media
  14. Source0: %{name}-%{version}.tar.gz
  15. Source1: jellyfin.service
  16. Source2: jellyfin.env
  17. Source3: jellyfin.sudoers
  18. Source4: restart.sh
  19. Source5: jellyfin.override.conf
  20. Source6: jellyfin-firewalld.xml
  21. %{?systemd_requires}
  22. BuildRequires: systemd
  23. Requires(pre): shadow-utils
  24. BuildRequires: libcurl-devel, fontconfig-devel, freetype-devel, openssl-devel, glibc-devel, libicu-devel
  25. Requires: libcurl, fontconfig, freetype, openssl, glibc libicu
  26. # Requirements not packaged in main repos
  27. # COPR @dotnet-sig/dotnet
  28. BuildRequires: dotnet-runtime-2.2, dotnet-sdk-2.2
  29. # RPMfusion free
  30. Requires: ffmpeg
  31. # Fedora has openssl1.1 which is incompatible with dotnet
  32. %{?fedora:Requires: compat-openssl10}
  33. # Disable Automatic Dependency Processing
  34. AutoReqProv: no
  35. %description
  36. Jellyfin is a free software media system that puts you in control of managing and streaming your media.
  37. %prep
  38. %autosetup -n %{name}-%{version}
  39. %build
  40. %install
  41. export DOTNET_CLI_TELEMETRY_OPTOUT=1
  42. export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
  43. dotnet publish --configuration Release --output='%{buildroot}%{_libdir}/jellyfin' --self-contained --runtime %{dotnet_runtime} \
  44. "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Server
  45. %{__install} -D -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
  46. %{__install} -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/override.conf
  47. %{__install} -D -m 0644 Jellyfin.Server/Resources/Configuration/logging.json %{buildroot}%{_sysconfdir}/%{name}/logging.json
  48. %{__mkdir} -p %{buildroot}%{_bindir}
  49. tee %{buildroot}%{_bindir}/jellyfin << EOF
  50. #!/bin/sh
  51. exec %{_libdir}/%{name}/%{name} \${@}
  52. EOF
  53. %{__mkdir} -p %{buildroot}%{_sharedstatedir}/jellyfin
  54. %{__mkdir} -p %{buildroot}%{_sysconfdir}/%{name}
  55. %{__mkdir} -p %{buildroot}%{_var}/log/jellyfin
  56. %{__mkdir} -p %{buildroot}%{_var}/cache/jellyfin
  57. %{__install} -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
  58. %{__install} -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
  59. %{__install} -D -m 0600 %{SOURCE3} %{buildroot}%{_sysconfdir}/sudoers.d/%{name}-sudoers
  60. %{__install} -D -m 0755 %{SOURCE4} %{buildroot}%{_libexecdir}/%{name}/restart.sh
  61. %{__install} -D -m 0644 %{SOURCE6} %{buildroot}%{_prefix}/lib/firewalld/service/%{name}.xml
  62. %files
  63. %{_libdir}/%{name}/jellyfin-web/*
  64. %attr(755,root,root) %{_bindir}/%{name}
  65. %{_libdir}/%{name}/*.json
  66. %{_libdir}/%{name}/*.dll
  67. %{_libdir}/%{name}/*.so
  68. %{_libdir}/%{name}/*.a
  69. %{_libdir}/%{name}/createdump
  70. # Needs 755 else only root can run it since binary build by dotnet is 722
  71. %attr(755,root,root) %{_libdir}/%{name}/jellyfin
  72. %{_libdir}/%{name}/sosdocsunix.txt
  73. %{_unitdir}/%{name}.service
  74. %{_libexecdir}/%{name}/restart.sh
  75. %{_prefix}/lib/firewalld/service/%{name}.xml
  76. %attr(755,jellyfin,jellyfin) %dir %{_sysconfdir}/%{name}
  77. %config %{_sysconfdir}/sysconfig/%{name}
  78. %config(noreplace) %attr(600,root,root) %{_sysconfdir}/sudoers.d/%{name}-sudoers
  79. %config(noreplace) %{_sysconfdir}/systemd/system/%{name}.service.d/override.conf
  80. %config(noreplace) %attr(644,jellyfin,jellyfin) %{_sysconfdir}/%{name}/logging.json
  81. %attr(750,jellyfin,jellyfin) %dir %{_sharedstatedir}/jellyfin
  82. %attr(-,jellyfin,jellyfin) %dir %{_var}/log/jellyfin
  83. %attr(750,jellyfin,jellyfin) %dir %{_var}/cache/jellyfin
  84. %if 0%{?fedora}
  85. %license LICENSE
  86. %else
  87. %{_datadir}/licenses/%{name}/LICENSE
  88. %endif
  89. %pre
  90. getent group jellyfin >/dev/null || groupadd -r jellyfin
  91. getent passwd jellyfin >/dev/null || \
  92. useradd -r -g jellyfin -d %{_sharedstatedir}/jellyfin -s /sbin/nologin \
  93. -c "Jellyfin default user" jellyfin
  94. exit 0
  95. %post
  96. # Move existing configuration cache and logs to their new locations and symlink them.
  97. if [ $1 -gt 1 ] ; then
  98. service_state=$(systemctl is-active jellyfin.service)
  99. if [ "${service_state}" = "active" ]; then
  100. systemctl stop jellyfin.service
  101. fi
  102. if [ ! -L %{_sharedstatedir}/%{name}/config ]; then
  103. mv %{_sharedstatedir}/%{name}/config/* %{_sysconfdir}/%{name}/
  104. rmdir %{_sharedstatedir}/%{name}/config
  105. ln -sf %{_sysconfdir}/%{name} %{_sharedstatedir}/%{name}/config
  106. fi
  107. if [ ! -L %{_sharedstatedir}/%{name}/logs ]; then
  108. mv %{_sharedstatedir}/%{name}/logs/* %{_var}/log/jellyfin
  109. rmdir %{_sharedstatedir}/%{name}/logs
  110. ln -sf %{_var}/log/jellyfin %{_sharedstatedir}/%{name}/logs
  111. fi
  112. if [ ! -L %{_sharedstatedir}/%{name}/cache ]; then
  113. mv %{_sharedstatedir}/%{name}/cache/* %{_var}/cache/jellyfin
  114. rmdir %{_sharedstatedir}/%{name}/cache
  115. ln -sf %{_var}/cache/jellyfin %{_sharedstatedir}/%{name}/cache
  116. fi
  117. if [ "${service_state}" = "active" ]; then
  118. systemctl start jellyfin.service
  119. fi
  120. fi
  121. %systemd_post jellyfin.service
  122. %preun
  123. %systemd_preun jellyfin.service
  124. %postun
  125. %systemd_postun_with_restart jellyfin.service
  126. %changelog
  127. * Thu Feb 28 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
  128. - jellyfin:
  129. - PR968 Release 10.2.z copr autobuild
  130. - PR964 Install the dotnet runtime package in Fedora build
  131. - PR979 Build Package releases without debug turned on
  132. - PR990 Fix slow local image validation
  133. - PR991 Fix the ffmpeg compatibility
  134. - PR992 Add Debian armhf (Raspberry Pi) build plus crossbuild
  135. - PR998 Set EnableRaisingEvents to true for processes that require it
  136. - PR1017 Set ffmpeg+ffprobe paths in Docker container
  137. - jellyfin-web:
  138. - PR152 Go back on Media stop
  139. - PR156 Fix volume slider not working on nowplayingbar
  140. * Wed Feb 20 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
  141. - jellyfin:
  142. - PR920 Fix cachedir missing from Docker container
  143. - PR924 Use the movie name instead of folder name
  144. - PR933 Semi-revert to prefer old movie grouping behaviour
  145. - PR948 Revert movie matching (supercedes PR933, PR924, PR739)
  146. - PR960 Use jellyfin/ffmpeg image
  147. - jellyfin-web:
  148. - PR136 Re-add OpenSubtitles configuration page
  149. - PR137 Replace HeaderEmbyServer with HeaderJellyfinServer on plugincatalog
  150. - PR138 Remove left-over JS for Customize Home Screen
  151. - PR141 Exit fullscreen automatically after video playback ends
  152. * Fri Feb 15 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
  153. - jellyfin:
  154. - PR452 Use EF Core for Activity database
  155. - PR535 Clean up streambuilder
  156. - PR655 Support trying local branches in submodule
  157. - PR656 Do some logging in MediaInfoService
  158. - PR657 Remove conditions that are always true/false
  159. - PR661 Fix NullRef from progress report
  160. - PR663 Use TagLibSharp Nuget package
  161. - PR664 Revert "Fix segment_time_delta for ffmpeg 4.1"
  162. - PR666 Add cross-platform build for arm64
  163. - PR668 Return Audio objects from MusicAlbum.Tracks
  164. - PR671 Set EnableRaisingEvents correctly
  165. - PR672 Remove unconditional caching, modified since header and use ETags
  166. - PR677 Fix arm32 Docker
  167. - PR681 Fix Windows build script errors + pin ffmpeg to 4.0
  168. - PR686 Disable some StyleCop warnings
  169. - PR687 Fix some analyzer warnings
  170. - PR689 Fix RPM package build for fedora
  171. - PR702 Fix debug build on windows
  172. - PR706 Make another docker layer reusable
  173. - PR709 Fix always null expressions
  174. - PR710 Fix a spelling mistake
  175. - PR711 Remove remnants of system events
  176. - PR713 Fix empty statement in DidlBuilder.cs
  177. - PR716 Remove more compile time warnings
  178. - PR721 Change image dimentions from double to int
  179. - PR723 Minor improvements to db code
  180. - PR724 Move Skia back into it's own project
  181. - PR726 Clean up IFileSystem wrappers around stdlib.
  182. - PR727 Change default aspect ratio to 2/3 from 0
  183. - PR728 Use ffmpeg from jrottenberg/ffmpeg
  184. - PR732 Reworked LocalizationManager to load data async
  185. - PR733 Remove unused function
  186. - PR734 Fix more analyzer warnings
  187. - PR736 Start startup tasks async
  188. - PR737 Add AssemblyInfo for Jellyfin.Drawing.Skia
  189. - PR739 Change multi version logic for movies
  190. - PR740 Remove code for pre-installed plugins & properly check if file exists
  191. - PR756 Make cache dir configurable
  192. - PR757 Fix default aspect ratio
  193. - PR758 Add password field to initial setup
  194. - PR764 Remove dead code, made some functions properly async
  195. - PR769 Fix conditions where the ! was swallowed in #726
  196. - PR774 reimplement support for plugin repository
  197. - PR782 Remove commented file MediaBrowser.LocalMetadata.Savers.PersonXmlSaver
  198. - PR783 Update builds to use #749 and #756
  199. - PR788 Fix more warnings
  200. - PR794 Remove MoreLINQ
  201. - PR797 Fix all warnings
  202. - PR798 Cleanup around the api endpoints
  203. - PR800 Add CentOS and update rpm spec for the cachedir option
  204. - PR802 Fix build error
  205. - PR804 Handle new option parser properly
  206. - PR805 Add weblate translation status to README
  207. - PR807 Fix restart script in OS packages
  208. - PR810 Fix loading of rating files
  209. - PR812 Fix up the explicit docs links in the README
  210. - PR819 Some small changes in Device.cs and DidlBuilder.cs
  211. - PR822 Complete rename ImageSize -> ImageDimensions
  212. - PR824 Improved Docker pkgbuild
  213. - PR831 Move some arrays to generics
  214. - PR833 Add await to GetCountries in LocalizationService
  215. - PR834 Add donation badge and reorganize badges
  216. - PR838 Quick style fix
  217. - PR840 Fix more warnings
  218. - PR841 Fix OC badge to all and add forum badge
  219. - PR842 Use VAAPI-enabled ffmpeg
  220. - PR852 Use SQLitePCL.pretty.netstandard on NuGet
  221. - PR853 Fix poor handling of cache directories
  222. - PR864 Add support for ZIP plugin archives
  223. - PR868 Fix audio streaming via BaseProgressiveStreamingService
  224. - PR869 Remove DLL support and require all packages/plugins to be zip archives
  225. - PR872 Fix potential NullReferenceException
  226. - PR899: DLNA: Fix race condition leading to missing device names
  227. - PR890 Drop ETag and use Last-Modified header
  228. - PR892: Add jellyfin-ffmpeg and versioning to package deps
  229. - PR901: Properly dispose HttpWebResponse when the request failed to avoid 'too many open files'
  230. - PR909: Fix docker arm builds
  231. - PR910: Enhance Dockerfiles
  232. - PR911: Checkout submodules in Docker Hub hook
  233. - jellyfin-web:
  234. - PR51 remove more code for sync and camera roll
  235. - PR56 Use English for fallback translations and clean up language files
  236. - PR58 Css slider fixes
  237. - PR62 remove BOM markers
  238. - PR65 Fix profile image not being shown on profile page
  239. - PR73 Dev sync
  240. - PR74 Add download menu option to media items
  241. - PR75 User profile fixes
  242. - PR76 Fix syntax error caused by deminification
  243. - PR79 Remove unused Connect related from the frontend
  244. - PR80 Remove games
  245. - PR92 Added frontend support for a password field on setup
  246. - PR94 Update british strings
  247. - PR95 add display language option back
  248. - PR112 Removed seasonal theme support
  249. - PR116 Consolidate all strings into a single file per language
  250. - PR117 Fix volume slider behavior
  251. - PR118 Enable and fix PiP for Safari
  252. - PR119 Make the toggle track visible on all themes
  253. - PR121 Fix syntax error in site.js
  254. - PR127 Change sharedcomponents module to core
  255. - PR135 Make sure fallback culture is always available
  256. * Sun Jan 20 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
  257. - jellyfin:
  258. - PR335 Build scripts and build system consolidation.
  259. - PR424 add jellyfin-web as submodule
  260. - PR455 Cleanup some small things
  261. - PR458 Clean up several minor issues and add TODOs
  262. - PR506 Removing tabs and trailing whitespace
  263. - PR508 Update internal versioning and user agents.
  264. - PR516 Remove useless properties from IEnvironmentInfo
  265. - PR520 Fix potential bug where aspect ratio would be incorrectly calculated
  266. - PR534 Add linux-arm and linux-arm64 native NuGet dependency.
  267. - PR540 Update Emby API keys to our own
  268. - PR541 Change ItemId to Guid in ProviderManager
  269. - PR556 Fix "Password Reset by PIN" page
  270. - PR562 Fix error with uppercase photo extension and fix typo in a log line
  271. - PR563 Update dev from master
  272. - PR566 Avoid printing stacktrace when bind to port 1900 fails
  273. - PR567 Shutdown gracefully when recieving a termination signal
  274. - PR571 Add more NuGet metadata properties
  275. - PR575 Reformat all C# server code to conform with code standards
  276. - PR576 Add code analysers for debug builds
  277. - PR580 Fix Docker build
  278. - PR582 Replace custom image parser with Skia
  279. - PR587 Add nuget info to Emby.Naming
  280. - PR589 Ensure config and log folders exist
  281. - PR596 Fix indentation for xml files
  282. - PR598 Remove MediaBrowser.Text for license violations and hackiness
  283. - PR606 Slim down docker image
  284. - PR613 Update MediaEncoding
  285. - PR616 Add Swagger documentation
  286. - PR619 Really slim down Docker container
  287. - PR621 Minor improvements to library scan code
  288. - PR622 Add unified build script and bump_version script
  289. - PR623 Replaced injections of ILogger with ILoggerFactory
  290. - PR625 Update taglib-sharp
  291. - PR626 Fix extra type name in parameter, add out keyword
  292. - PR627 Use string for ApplicationVersion
  293. - PR628 Update Product Name (User-Agent)
  294. - PR629 Fix subtitle converter misinterpreting 0 valued endTimeTicks
  295. - PR631 Cleanup ImageProcessor and SkiaEncoder
  296. - PR634 Replace our TVDB key with @drakus72's which is V1
  297. - PR636 Allow subtitle extraction and conversion in direct streaming
  298. - PR637 Remove unused font
  299. - PR638 Removed XmlTv testfiles and nuget install
  300. - PR646: Fix infinite loop bug on subtitle.m3u8 request
  301. - PR655: Support trying local branches in submodule
  302. - PR661: Fix NullRef from progress report
  303. - PR666: Add cross-platform build for arm64
  304. - jellyfin-web:
  305. - PR1: Change webcomponents to non-minified version
  306. - PR4: Fix user profile regression
  307. - PR6: Make icon into proper ico and large PNG
  308. - PR7: Fix firefox failing to set password for users with no password set
  309. - PR8: Remove premiere stuff and fix crashes caused by earlier removals
  310. - PR12: Fix return from PIN reset to index.html
  311. - PR13: Send android clients to select server before login
  312. - PR14: Reimplement page to add server
  313. - PR16: Fix spinning circle at the end of config wizard
  314. - PR17: Fix directorybrower not resetting scroll
  315. - PR19: Set union merge for CONTRIBUTORS.md
  316. - PR20: Show album thumbnail and artist image in page itemdetail
  317. - PR26: Make the card titles clickable
  318. - PR27: Stop pagination and adding a library from being able to trigger multiple times
  319. - PR28: Add transparent nav bar to BlueRadiance theme CSS
  320. - PR29: Clean up imageuploader
  321. - PR30: Remove iap and simplify registrationservices
  322. - PR36: Open videos in fullscreen on android devices
  323. - PR37: Remove broken features from web interface
  324. - PR38: Fix inconsistent UI coloring around settings drawer
  325. - PR39: Remove back button from dashboard and metadata manager
  326. - PR42: Fix Home backdrop not loading
  327. - PR43: Filter videos by audio stream language
  328. - PR44: Remove filter from library collection type options
  329. - PR45: Fix data-backbutton logic
  330. - PR46: Minor changes to navbar elements
  331. - PR48: Remove Sync code
  332. - PR52: Fix progress color
  333. - PR53: Fix user tabs color
  334. - PR54: Add back button to server dashboard
  335. * Fri Jan 11 2019 Thomas Büttner <thomas@vergesslicher.tech> - 10.0.2-1
  336. - TODO Changelog for 10.0.2