Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Herbster0815
MediathekView-next
MediathekView-next.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MediathekView-next.spec of Package MediathekView-next
# norootforbuild %define java_version 22 %define jar_version 14.0.1 %define short_name MediathekView Name: MediathekView-next Summary: Searches the online media library Summary(de): Durchsucht verschiedene Mediatheken Group: Productivity/Multimedia/Video/Players Version: 14.0.1 Release: 1.1 URL: https://mediathekview.de/ Source0: https://github.com/mediathekview/MediathekView/archive/%{name}-%{version}.tar.xz Source2: %{name}.desktop Source4: %{name}_maven_build_files.tar.bz2 Source10: %{name}.vmoptions License: GPL-3.0-only BuildRequires: java-devel = %{java_version} BuildRequires: xz BuildRequires: unzip Requires: java = %{java_version} Requires: vlc Requires: rtmpdump BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Obsoletes: MediathekView %description MediathekView searches the online media library of various German tv stations. (ARD, ZDF, Arte, 3Sat, MDR, NDR, ORF, SF), invites contributions with a program of your choice and can create topics as subscriptions and automatically download new contributions. There is also a way to manage and download podcast. %description -l de Das Programm durchsucht die Mediathek verschiedener Sender (ARD, ZDF, Arte, 3Sat, MDR, NDR, ORF, SF), lädt Beiträge mit einem Programm eigener Wahl und kann Themen als Abos anlegen und neue Beiträge automatisch downloaden. Es gibt auch eine Möglichkeit, Podcast zu verwalten und zu downloaden. %prep %setup -q -n %{name}-%{version} # Install maven files as /home/abuild/.m2 tar -xjf %{SOURCE4} -C $HOME # cleanup find -name '*.class' -type f -exec rm -r {} \; # W: wrong-file-end-of-line-encoding sed -i 's/\r$//' res/README.txt %build export CLASSPATH=$(build-classpath) ./mvnw -DskipTests=true package %install export NO_BRP_CHECK_BYTECODE_VERSION=true # app install -d -m 755 %{buildroot}%{_javadir}/%{short_name} install -m 755 target/MediathekView.jar %{buildroot}%{_javadir}/%{short_name}/MediathekView-%{jar_version}.jar pushd %{buildroot}%{_javadir}/%{short_name} ln -sf MediathekView-%{jar_version}.jar MediathekView.jar popd # vmoptions install -d -m 755 %{buildroot}%{_sysconfdir}/%{short_name}/ install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/%{short_name}/%{short_name}.vmoptions # other install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps install -m 644 res/%{short_name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ install -d -m 755 %{buildroot}%{_datadir}/applications/ install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/MediathekView.desktop # Create Startscript cat > MediathekView.sh << EOF #!/bin/bash # use right java version JAVA_HOME=%{_sysconfdir}/alternatives/jre_%{java_version} # set jar-entry-class MAIN_CLASS="mediathek.Main" # source the jpackage helpers and set environment VERBOSE=1 . %{_javadir}-utils/java-functions set_javacmd check_java_env set_jvm_dirs # If the memory run short it can help to use set_options # Xms set the initial and minimum Java heap size, Xmx set the maximum Java heap size # default: Xms (25% of the amount of free physical memory in the system, up to 16 MB and at least 8 MB) # default: Xmx (32bit: 50% of available physical memory up to 1 GB, 64bit: 50% of available physical memory up to 32 GB) # Attention: set_options parameter now in MediathekView.vmoptions file. set_options \$(sed '/#/d' /etc/MediathekView/MediathekView.vmoptions | tr '\n' ' ') CLASSPATH=\`build-classpath MediathekView\` run "\$@" EOF install -D -m755 MediathekView.sh %{buildroot}%{_bindir}/MediathekView.sh %files %attr(755,root,root) %{_bindir}/MediathekView.sh %dir %{_javadir}/%{short_name} %{_javadir}/%{short_name}/%{short_name}-%{jar_version}.jar %{_javadir}/%{short_name}/%{short_name}.jar %attr(644,root,root) %{_datadir}/applications/%{short_name}.desktop %dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable/apps %attr(644,root,root) %{_datadir}/icons/hicolor/scalable/apps/%{short_name}.svg %dir %{_sysconfdir}/%{short_name} %config(noreplace) %{_sysconfdir}/%{short_name}/%{short_name}.vmoptions %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor