Martin Gansser b01e6e
%global pname     screenshot
Martin Gansser b01e6e
Martin Gansser b01e6e
Name:             vdr-%{pname}
Martin Gansser d55c76
Version:          0.0.16
836eab
Release:          8%{?dist}
Martin Gansser b01e6e
Summary:          VDR plugin: Takes screenshots
Martin Gansser b01e6e
License:          GPL+
Martin Gansser d55c76
URL:              https://github.com/jowi24/vdr-screenshot
Martin Gansser d55c76
Source:           %{name}-%{version}.tar.gz
7e2605
# https://www.linuxtv.org/pipermail/vdr/2017-June/029280.html
7e2605
Patch0:           %{pname}.fullhd.patch
Martin Gansser b01e6e
BuildRequires:    vdr-devel >= 1.6.0-41
Martin Gansser b01e6e
Requires:         vdr(abi)%{?_isa} = %{vdr_apiversion}
Martin Gansser b01e6e
Martin Gansser b01e6e
Martin Gansser b01e6e
%description
Martin Gansser b01e6e
With this plugin you can take still images of your screen. After installing
Martin Gansser b01e6e
the plugin, a new mainmenu entry "Screenshot" will show up. Each time you
Martin Gansser b01e6e
select this item, a file /var/cache/vdr/screenshot/title-yyyymmdd-hhmmss.jpg
Martin Gansser b01e6e
will be created, where title is the current transmission or the recording
Martin Gansser b01e6e
currently replayed.
Martin Gansser b01e6e
Martin Gansser b01e6e
%prep
Martin Gansser d55c76
%setup -q -n %{name}-%{version}
Martin Gansser b01e6e
chmod -c -x screenshot.c
Martin Gansser e7bc8c
# For older VDR versions <=1.7.34
Martin Gansser e7bc8c
cp Makefile.pre.1.7.34 Makefile
Martin Gansser b01e6e
%patch0 -p1
Martin Gansser b01e6e
Martin Gansser b01e6e
iconv -f iso-8859-1 -t utf-8 HISTORY > HISTORY.utf8 ; mv HISTORY.utf8 HISTORY
Martin Gansser b01e6e
Martin Gansser b01e6e
%build
Martin Gansser b01e6e
make %{?_smp_mflags} AUTOCONFIG= LIBDIR=. LOCALEDIR=./locale \
Martin Gansser b01e6e
    VDRDIR=%{_libdir}/vdr all
Martin Gansser b01e6e
Martin Gansser b01e6e
%install
Martin Gansser b01e6e
install -dm 755 $RPM_BUILD_ROOT%{vdr_plugindir}
Martin Gansser b01e6e
install -dm 755 $RPM_BUILD_ROOT%{vdr_cachedir}/screenshot
Martin Gansser b01e6e
install -pm 755 libvdr-*.so.%{vdr_apiversion} $RPM_BUILD_ROOT%{vdr_plugindir}
Martin Gansser b01e6e
Martin Gansser b01e6e
# Locale
Martin Gansser b01e6e
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
Martin Gansser b01e6e
cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
Martin Gansser b01e6e
%find_lang %{name}
Martin Gansser b01e6e
Martin Gansser b01e6e
%files -f %{name}.lang
Martin Gansser d55c76
%doc HISTORY README
Martin Gansser d55c76
%license COPYING
Martin Gansser b01e6e
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
Martin Gansser 04f1c8
%attr(-,%{vdr_user},root) %dir %{vdr_cachedir}/screenshot/
Martin Gansser b01e6e
Martin Gansser b01e6e
%changelog
7e2605
* Tue Jun 27 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-8
7e2605
- Add screenshot.fullhd.patch
7e2605
- Dropped %%{pname}.patch
7e2605
eb6c17
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-7
eb6c17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
eb6c17
Martin Gansser bc336a
* Sun Mar 27 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-6
Martin Gansser bc336a
- Rebuilt for rawhide
Martin Gansser bc336a
5d78e1
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.16-5
5d78e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d78e1
41d7d0
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-4
41d7d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41d7d0
50fdd2
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.0.16-3
50fdd2
- Rebuilt for GCC 5 C++11 ABI change
50fdd2
3f4ad8
* Mon Apr 06 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.0.16-2
3f4ad8
- Rebuild (vdr)
3f4ad8
Martin Gansser d55c76
* Fri Feb 27 2015 Martin Gansser <martinkg@fedoraproject.org> - 0.0.16-1
Martin Gansser d55c76
- rebuild for new release 0.0.16
Martin Gansser d55c76
- cleanup spec file
Martin Gansser d55c76
- mark license files as %%license where available
465590
aa30a0
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-11
aa30a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aa30a0
06da14
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-10
06da14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06da14
b48f5c
* Thu Apr 24 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-9
b48f5c
- Rebuild
b48f5c
88623c
* Sun Mar 23 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-8
88623c
- Rebuild
88623c
64ec15
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-7
64ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64ec15
b43214
* Sun Mar 31 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-6
b43214
- Rebuild.
b43214
ac9333
* Sat Mar 16 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-5
ac9333
- Rebuild.
ac9333
b999ae
* Wed Mar 13 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-4
b999ae
- Rebuild.
b999ae
d8ec26
* Sun Mar 03 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-3
d8ec26
- Rebuild.
d8ec26
cf5758
* Mon Feb 18 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.0.15-2
cf5758
- Rebuild.
cf5758
Martin Gansser e7bc8c
* Sat Feb 16 2013 Martin Gansser <martinkg@fedoraproject.org> - 0.0.15-1
Martin Gansser e7bc8c
- rebuild for new release
7e467c
7e1950
* Tue Oct 02 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-8
7e1950
- Rebuild.
7e1950
da8348
* Thu Sep 13 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-7
da8348
- Rebuild.
da8348
b8ad7c
* Thu Jul 19 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-6
b8ad7c
- Rebuild.
b8ad7c
02ee0b
* Wed Jun 27 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.0.14-5
02ee0b
- Rebuild.
02ee0b
Martin Gansser b01e6e
* Mon May 21 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-4.fc17
Martin Gansser b01e6e
- fixed spurious-executable-perm of screenshot.c 
Martin Gansser b01e6e
Martin Gansser b01e6e
* Tue May 15 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-3.fc17
Martin Gansser b01e6e
- picture-path and readme patch are merged
Martin Gansser b01e6e
- more permission cleanups
Martin Gansser b01e6e
Martin Gansser b01e6e
* Tue May 15 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-2.fc17
Martin Gansser b01e6e
- added Translation Content-Type charset fixes
Martin Gansser b01e6e
- added readme patch
Martin Gansser b01e6e
- fixed correct permissons for vdr_cachedir
Martin Gansser b01e6e
Martin Gansser b01e6e
* Sun May 13 2012 Martin Gansser <linux4martin@gmx.de> 0.0.14-1.fc17
Martin Gansser b01e6e
- new release
Martin Gansser b01e6e
Martin Gansser b01e6e
* Sat May 12 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-3.fc17
Martin Gansser b01e6e
- fixed dependencies
Martin Gansser b01e6e
- removed strip command and comments out debug_package in rpmmacros
Martin Gansser b01e6e
- added patch to store images in /var/cache/vdr/screenshot
Martin Gansser b01e6e
Martin Gansser b01e6e
* Tue May 08 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-2.fc17
Martin Gansser b01e6e
- solved unstripped-binary-or-object warning and mixed-use-of-spaces-and-tabs
Martin Gansser b01e6e
- removed unneeded global definitions
Martin Gansser b01e6e
Martin Gansser b01e6e
* Mon Apr 30 2012 Martin Gansser <linux4martin@gmx.de> 0.0.13-1.fc17
Martin Gansser b01e6e
- initial release for fc17
Martin Gansser b01e6e