Martin Gansser b01e6e0
%global pname     screenshot
Martin Gansser b01e6e0
Martin Gansser b01e6e0
Name:             vdr-%{pname}
Martin Gansser d55c76b
Version:          0.0.16
96b71c7
Release:          28%{?dist}
Martin Gansser b01e6e0
Summary:          VDR plugin: Takes screenshots
Martin Gansser b01e6e0
License:          GPL+
Martin Gansser d55c76b
URL:              https://github.com/jowi24/vdr-screenshot
Martin Gansser d55c76b
Source:           %{name}-%{version}.tar.gz
7e26054
# https://www.linuxtv.org/pipermail/vdr/2017-June/029280.html
7e26054
Patch0:           %{pname}.fullhd.patch
9337293
82742b6
BuildRequires: make
9337293
BuildRequires:    gcc-c++
Martin Gansser b01e6e0
BuildRequires:    vdr-devel >= 1.6.0-41
Martin Gansser b01e6e0
Requires:         vdr(abi)%{?_isa} = %{vdr_apiversion}
Martin Gansser b01e6e0
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%description
Martin Gansser b01e6e0
With this plugin you can take still images of your screen. After installing
Martin Gansser b01e6e0
the plugin, a new mainmenu entry "Screenshot" will show up. Each time you
Martin Gansser b01e6e0
select this item, a file /var/cache/vdr/screenshot/title-yyyymmdd-hhmmss.jpg
Martin Gansser b01e6e0
will be created, where title is the current transmission or the recording
Martin Gansser b01e6e0
currently replayed.
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%prep
83281ac
%autosetup -n %{name}-%{version}
Martin Gansser b01e6e0
chmod -c -x screenshot.c
Martin Gansser e7bc8c3
# For older VDR versions <=1.7.34
Martin Gansser e7bc8c3
cp Makefile.pre.1.7.34 Makefile
Martin Gansser b01e6e0
Martin Gansser b01e6e0
iconv -f iso-8859-1 -t utf-8 HISTORY > HISTORY.utf8 ; mv HISTORY.utf8 HISTORY
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%build
66ed1d9
%make_build AUTOCONFIG= LIBDIR=. LOCALEDIR=./locale \
Martin Gansser b01e6e0
    VDRDIR=%{_libdir}/vdr all
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%install
Martin Gansser b01e6e0
install -dm 755 $RPM_BUILD_ROOT%{vdr_plugindir}
Martin Gansser b01e6e0
install -dm 755 $RPM_BUILD_ROOT%{vdr_cachedir}/screenshot
Martin Gansser b01e6e0
install -pm 755 libvdr-*.so.%{vdr_apiversion} $RPM_BUILD_ROOT%{vdr_plugindir}
Martin Gansser b01e6e0
Martin Gansser b01e6e0
# Locale
Martin Gansser b01e6e0
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
Martin Gansser b01e6e0
cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
Martin Gansser b01e6e0
%find_lang %{name}
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%files -f %{name}.lang
Martin Gansser d55c76b
%doc HISTORY README
Martin Gansser d55c76b
%license COPYING
Martin Gansser b01e6e0
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
Martin Gansser 04f1c8d
%attr(-,%{vdr_user},root) %dir %{vdr_cachedir}/screenshot/
Martin Gansser b01e6e0
Martin Gansser b01e6e0
%changelog
96b71c7
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-28
96b71c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
96b71c7
1884cba
* Sat Feb 05 2022 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-27
1884cba
- Rebuilt for new VDR API version
1884cba
1e6db38
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-26
1e6db38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1e6db38
66ed1d9
* Thu Dec 30 2021 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-25
66ed1d9
- Rebuilt for new VDR API version
66ed1d9
abe237d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-24
abe237d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
abe237d
0693619
* Wed Apr 28 2021 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-23
0693619
- Rebuilt for new VDR API version
0693619
75e6ceb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-22
75e6ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
75e6ceb
6053702
* Sun Jan 03 2021 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-21
6053702
- Rebuilt for new VDR API version
6053702
cb2b711
* Fri Aug 28 2020 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-20
cb2b711
- Rebuilt for new VDR API version
cb2b711
d505551
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-19
d505551
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d505551
2d39382
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-18
2d39382
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d39382
5f43962
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-17
5f43962
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5f43962
83281ac
* Tue Jun 18 2019 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-16
83281ac
- Rebuilt for new VDR API version
83281ac
0a5615b
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-15
0a5615b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0a5615b
9337293
* Thu Oct 11 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-14
9337293
- Add BR gcc-c++
9337293
fd0806d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-13
fd0806d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fd0806d
bb2d5ae
* Wed Apr 18 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-12
bb2d5ae
- Rebuilt for vdr-2.4.0
bb2d5ae
56854ff
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-11
56854ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
56854ff
0530133
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-10
0530133
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0530133
7461d98
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-9
7461d98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7461d98
7e26054
* Tue Jun 27 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-8
7e26054
- Add screenshot.fullhd.patch
7e26054
- Dropped %%{pname}.patch
7e26054
eb6c17c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-7
eb6c17c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
eb6c17c
Martin Gansser bc336a8
* Sun Mar 27 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-6
Martin Gansser bc336a8
- Rebuilt for rawhide
Martin Gansser bc336a8
5d78e1e
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-5
5d78e1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d78e1e
41d7d01
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-4
41d7d01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41d7d01
50fdd2a
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.0.16-3
50fdd2a
- Rebuilt for GCC 5 C++11 ABI change
50fdd2a
3f4ad85
* Mon Apr 06 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.0.16-2
3f4ad85
- Rebuild (vdr)
3f4ad85
Martin Gansser d55c76b
* Fri Feb 27 2015 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-1
Martin Gansser d55c76b
- rebuild for new release 0.0.16
Martin Gansser d55c76b
- cleanup spec file
Martin Gansser d55c76b
- mark license files as %%license where available
465590f
aa30a0b
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-11
aa30a0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aa30a0b
06da14c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-10
06da14c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06da14c
b48f5c2
* Thu Apr 24 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-9
b48f5c2
- Rebuild
b48f5c2
88623cd
* Sun Mar 23 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-8
88623cd
- Rebuild
88623cd
64ec153
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-7
64ec153
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64ec153
b432147
* Sun Mar 31 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-6
b432147
- Rebuild.
b432147
ac93332
* Sat Mar 16 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-5
ac93332
- Rebuild.
ac93332
b999ae5
* Wed Mar 13 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-4
b999ae5
- Rebuild.
b999ae5
d8ec262
* Sun Mar 03 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-3
d8ec262
- Rebuild.
d8ec262
cf57583
* Mon Feb 18 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-2
cf57583
- Rebuild.
cf57583
Martin Gansser e7bc8c3
* Sat Feb 16 2013 Martin Gansser <martinkg@fedoraproject.org> - 0.0.15-1
Martin Gansser e7bc8c3
- rebuild for new release
7e467c2
7e1950c
* Tue Oct 02 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-8
7e1950c
- Rebuild.
7e1950c
da83483
* Thu Sep 13 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-7
da83483
- Rebuild.
da83483
b8ad7c7
* Thu Jul 19 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-6
b8ad7c7
- Rebuild.
b8ad7c7
02ee0ba
* Wed Jun 27 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-5
02ee0ba
- Rebuild.
02ee0ba
Martin Gansser b01e6e0
* Mon May 21 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-4.fc17
Martin Gansser b01e6e0
- fixed spurious-executable-perm of screenshot.c 
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Tue May 15 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-3.fc17
Martin Gansser b01e6e0
- picture-path and readme patch are merged
Martin Gansser b01e6e0
- more permission cleanups
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Tue May 15 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-2.fc17
Martin Gansser b01e6e0
- added Translation Content-Type charset fixes
Martin Gansser b01e6e0
- added readme patch
Martin Gansser b01e6e0
- fixed correct permissons for vdr_cachedir
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Sun May 13 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-1.fc17
Martin Gansser b01e6e0
- new release
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Sat May 12 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-3.fc17
Martin Gansser b01e6e0
- fixed dependencies
Martin Gansser b01e6e0
- removed strip command and comments out debug_package in rpmmacros
Martin Gansser b01e6e0
- added patch to store images in /var/cache/vdr/screenshot
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Tue May 08 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-2.fc17
Martin Gansser b01e6e0
- solved unstripped-binary-or-object warning and mixed-use-of-spaces-and-tabs
Martin Gansser b01e6e0
- removed unneeded global definitions
Martin Gansser b01e6e0
Martin Gansser b01e6e0
* Mon Apr 30 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-1.fc17
Martin Gansser b01e6e0
- initial release for fc17
Martin Gansser b01e6e0