Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wla70:vdr_2.6.7
vdr
vdr.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vdr.spec of Package vdr
# # spec file for package vdr # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2022 B1 Systems GmbH, Vohburg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # do not build developer documentation by default, it takes long and # most likely nobody is ever going to use that packaged version anyway %bcond_with develdoc Name: vdr %define vdrname vdr %define vdr_apiversion 2.6.7 %define vdr_localedir %{_datadir}/vdr/locale %define vdr_libdir %{_libdir}/vdr %define vdr_includedir %{_includedir}/vdr %define vdr_videodir /var/spool/video %define vdr_sysconfdir /etc/vdr # Url: http://www.tvdr.de/ Version: 2.6.7 Release: 0 Summary: Video Disk Recorder License: GPL-2.0-or-later Group: Hardware/TV ## old ftp://ftp.tvdr.de/vdr/vdr-%%{version}.tar.bz2 ## new http://git.tvdr.de/?p=vdr.git;a=snapshot;h=refs/tags/%%{version};sf=tbz2 ## curl -o vdr-${ver}.tar.bz2 "http://git.tvdr.de/?p=vdr.git;a=snapshot;h=refs/tags/${ver};sf=tbz2" Source: vdr-%{version}.tar.bz2 Source10: vdr.macros Source11: vdr.firewall Source42: msgmerge # generated from wiki page Source90: README.SUSE-vdr.txt Source91: README.SUSE-vdr.html Source92: greenish.css Source95: vdr-doc.desktop # Patch1: vdr-2.3.9-menuselection.patch Patch2: vdr-1.7.21-pluginmissing.patch # from https://www.minidvblinux.de/git/?a=blob&p=vdr&h=59024d30e0063262fb11cda1a632b514ab00c42f&n=16_vdr_wareagleicon.patch Patch3: 16_vdr_wareagleicon.patch Patch4: vdr-2.4.0-gcc7+.diff Patch5: vdr-2.3.9-MainMenuHooks-v1_0_1.patch # wla, 05.02.2024: Abspielbarkeit VDR-Aufnahmen ueber VPN stocken #Patch6: vdr-2.4.7_FADVISE-Enable.patch # "official" patches after release of tarball: # curl ftp://ftp.tvdr.de/vdr/Developer/Patches/vdr-2.4/ | \ # awk '{print "ftp://ftp.tvdr.de/vdr/Developer/Patches/vdr-2.4/"$9}' BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with develdoc} BuildRequires: doxygen BuildRequires: graphviz %endif BuildRequires: fdupes BuildRequires: fontconfig-devel BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: libcap-devel BuildRequires: libjpeg-devel BuildRequires: linux-glibc-devel BuildRequires: ncurses-devel BuildRequires: pkg-config BuildRequires: pkgconfig(libsystemd) Requires(pre): group(video) Requires(pre): /usr/sbin/useradd Provides: user(vdr) Provides: vdr(abi) = %vdr_apiversion Provides: vdrapi = %vdr_apiversion Requires: xorg-x11-fonts-scalable Recommends: runvdr-extreme-systemd %package devel Summary: Header files for the Video Disk Recorder Group: Hardware/TV Requires: pkg-config Requires: vdr = %version %description Version 2.0 of VDR, the Linux Video Disk Recorder provides HDTV support, the Transport Stream recording format, DVB subtitles, ATSC support, and improved Electronic Program Guides handling. %description devel Development files for VDR, needed for building plugins. %if %{with develdoc} %package devel-doc Summary: Developer documentation for the Video Disk Recorder Group: Hardware/TV BuildArch: noarch %description devel-doc API documentation for VDR. %endif %lang_package %prep %autosetup -p1 # cat > Make.config <<EOF ### The C compiler options: CFLAGS = %{optflags} -pie -fPIE -fPIC -Wall CXXFLAGS = %{optflags} -pie -fPIE -fPIC -Wall -Werror=overloaded-virtual -Wno-parentheses # -Wfatal-errors ### The directory environment: PREFIX = %{_prefix} BINDIR = %{_bindir} INCDIR = %{_includedir} LIBDIR = %{vdr_libdir} LOCDIR = %{vdr_localedir} MANDIR = %{_mandir} PCDIR = %{_libdir}/pkgconfig RESDIR = %{_datadir}/vdr VIDEODIR = %{vdr_videodir} CONFDIR = %{vdr_sysconfdir} CACHEDIR = %{_localstatedir}/cache/vdr LIRC_DEVICE = /var/run/lirc/lircd VDR_USER = vdr SDNOTIFY = 1 EOF # APIVERSION=`sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$/\1/p' config.h` if [ "%vdr_apiversion" != "$APIVERSION" ]; then echo "*** APIVERSION must be $APIVERSION, fix definition!" false fi # for some reason, graphviz doesn't like png here sed -i 's|^\(DOT_IMAGE_FORMAT\s\+= \).*$|\1svg|g s|^\(INTERACTIVE_SVG\s\+= \).*$|\1YES|g' Doxyfile # do not include build date in locale files cp -a %{SOURCE42} . chmod 0755 msgmerge %build # to use msgmerge script export PATH=`pwd`:$PATH make %{?jobs:-j%jobs} make plugins %if %{with develdoc} make srcdoc %endif %install %make_install install -m 644 *.conf %{buildroot}%{vdr_sysconfdir} install -m 644 Make.config %{buildroot}%{vdr_includedir} install -d -m 755 %{buildroot}%{_localstatedir}/cache/vdr # create plugins doc dir mkdir plugins for d in PLUGINS/src; do test -d PLUGINS/src/$d && { for f in README HISTORY COPYING; do test -f PLUGINS/src/$d/$f && cp -a PLUGINS/src/$d/$f plugins/$f.$d done } done # # docu # cp %{SOURCE90} README.SUSE cp %{SOURCE91} README.SUSE.html cp %{SOURCE92} . # install -d -m 755 %{buildroot}%{_datadir}/susehelp/meta/Manuals/Productivity install -m 644 %{SOURCE95} %{buildroot}%{_datadir}/susehelp/meta/Manuals/Productivity/vdr.desktop # locale files echo '%%defattr (644, root, root, 755)' > vdr.lang find %{buildroot}%{vdr_localedir} -type f -printf '%%P\n' | while read f; do echo "%%lang(${f%%%%/*}) %{vdr_localedir}/$f" done >> vdr.lang # %if %{with develdoc} # source code docu (installed manually for the sake of fdupes' success) install -d -m 755 %{buildroot}%{_docdir}/%{name}-devel cp -a srcdoc/html %{buildroot}%{_docdir}/%{name}-devel %fdupes %{buildroot}%{_docdir}/%{name}-devel %endif # # rpm macro file install -d -m 755 %{buildroot}/etc/rpm cat > %{buildroot}/etc/rpm/macros.vdr <<EOF %%vdrname %vdrname %%vdr_apiversion %vdr_apiversion %%vdr_localedir %vdr_localedir %%vdr_libdir %vdr_libdir %%vdr_includedir %vdr_includedir %%vdr_videodir %vdr_videodir %%vdr_sysconfdir %vdr_sysconfdir %%vdr_prereq vdr(abi) = %{vdr_apiversion} EOF cat %{SOURCE10} >> %{buildroot}/etc/rpm/macros.vdr # # msgmerge helper for plugins install -m 0755 msgmerge %{buildroot}%{_datadir}/vdr/msgmerge # # firewall config %if 0%{?suse_version} < 1550 install -m 644 -D %{SOURCE11} %{buildroot}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} %endif # # empty directory for plugins install -m 0755 -d %{buildroot}%{vdr_sysconfdir}/plugins %pre getent passwd vdr >/dev/null || /usr/sbin/useradd -r -d %{vdr_videodir} \ -s /bin/false -c "Video Disk Recorder" -U -G video vdr %files %defattr(-,root,root) %doc README.SUSE README.SUSE.html greenish.css %doc %{_datadir}/susehelp %doc README* UPDATE* CONTRIBUTORS HISTORY %doc MANUAL channels.conf.* PLUGINS.html plugins %license COPYING %attr(755,vdr,root) %dir %{vdr_videodir} %attr(755,vdr,root) %dir %{vdr_sysconfdir} %attr(755,vdr,root) %dir %{vdr_sysconfdir}/plugins %attr(755,vdr,root) %dir %{_localstatedir}/cache/vdr %dir %{vdr_libdir} %dir %{_datadir}/vdr %dir %{vdr_localedir} %dir %{vdr_localedir}/* %dir %{vdr_localedir}/*/LC_MESSAGES %attr(-,vdr,root) %config(noreplace) %{vdr_sysconfdir}/* %{_bindir}/* %{vdr_libdir}/* %{_mandir}/man?/* %if 0%{?suse_version} < 1550 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} %endif %files devel %defattr(-,root,root) %config /etc/rpm/macros.vdr %{vdr_includedir} %{_includedir}/libsi %{_libdir}/pkgconfig/* %{_datadir}/vdr/msgmerge %if %{with develdoc} %files devel-doc %defattr(-,root,root) %{_docdir}/%{name}-devel %endif %files lang -f %{name}.lang %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