##%define mainver %(echo %{version} | sed -e "s/[a-z]*//g") Name: devede Version: 3.22.0 Release: %mkrel 2 Summary: Graphical frontend to create video DVDs/(S)VCDs License: GPLv3+ Group: Graphical desktop/Other URL: http://www.rastersoft.com/programas/devede.html Source0: http://www.rastersoft.com/descargas/%{name}-%{version}.tar.bz2 # Created from upstream .svg icon by GIMP - ImageMagick does not do well # at converting .svg on the fly - AdamW 2007/09 Source1: devede-16.png Source2: devede-32.png Source3: devede-48.png BuildArch: noarch BuildRequires: bash BuildRequires: coreutils Requires: dvdauthor Requires: mencoder Requires: mkisofs Requires: mplayer Requires: ffmpeg Requires: pygtk2.0 Requires: python Requires: vcdimager Requires: python-cairo %description DeVeDe is a program to create video DVDs (compatible with home players) from nearly any video format. It only uses Python, MPlayer, Mencoder, DVDAuthor, VCDImager, and mkisofs, so it has very few dependencies. %prep %setup -q -n %{name}-%{version} # remove shebangs... %{__sed} -i -e '/^#!\//, 1d' %{name}_*.py %{__sed} -i 's/\/usr\/lib\/devede/\/usr\/share\/devede/' %{name}.py %build ./setup.py build %install # The stuff that goes to /usr/lib is just python scripts, not actually # arch-specific. The app always looks for them in /usr/lib , even on # x86-64. So define libdir as %_prefix/lib. See bug #31692. -AdamW 2007/06 ./setup.py install --root=%{buildroot} # fd.o icons mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48,scalable}/apps mv %{buildroot}/%{_datadir}/pixmaps/%{name}.svg %{buildroot}/%{_iconsdir}/hicolor/scalable/apps/%{name}.svg install -m 644 %{SOURCE1} %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png install -m 644 %{SOURCE2} %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png install -m 644 %{SOURCE3} %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png # redundant files, temp files... rm -f %{buildroot}/%{_bindir}/%{name}-debug rm -f %{buildroot}/%{_datadir}/doc/%{name}/html/*~ %find_lang %{name} %files -f %name.lang %defattr(0755,root,root,0755) %{_bindir}/%{name} %defattr(0644,root,root,0755) %{_datadir}/applications/%{name}.desktop %{_datadir}/%{name} %{_datadir}/doc/%{name} %{_iconsdir}/hicolor/*/apps/%{name}.* %{py_puresitedir}/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 3.22.0-2.mga3 + Revision: 348732 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Sep 21 2012 fwang <fwang> 3.22.0-1.mga3 + Revision: 296499 - new version 3.22.0 * Sat Dec 31 2011 fwang <fwang> 3.21.0-1.mga2 + Revision: 189210 - new version 3.21.0 - new version 3.17.0 * Mon Mar 28 2011 ennael <ennael> 3.16.9-1.mga1 + Revision: 78589 - clean spec file - imported package devede