/[packages]/cauldron/2mandvd/current/SPECS/2mandvd.spec
ViewVC logotype

Contents of /cauldron/2mandvd/current/SPECS/2mandvd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71418 - (show annotations) (download)
Mon Mar 14 21:13:25 2011 UTC (13 years, 1 month ago) by steletch
File size: 1988 byte(s)
imported package 2mandvd
1 %define srcname 2ManDVD
2
3 Name: 2mandvd
4 Version: 1.4
5 Release: %mkrel 1
6 Summary: Video DVD creation tool
7 URL: http://2mandvd.tuxfamily.org/
8 # GPLv2 and LGPL for some icons
9 License: GPLv2 and LGPL
10 Group: Video
11 Source: http://download.tuxfamily.org/2mandvd/%{srcname}-%{version}.tar.gz
12
13 BuildRequires: qt4-devel >= 4.6
14
15 Requires: dvd+rw-tools
16 Requires: dvdauthor
17 Requires: ffmpeg >= 0.5
18 Requires: ffmpegthumbnailer
19 Requires: mencoder
20 Requires: mjpegtools
21 Requires: mkisofs
22 Requires: mplayer
23 Requires: netpbm
24 Requires: sox
25 Suggests: transcode
26 BuildRoot: %{_tmppath}/%{name}-%{version}-build
27 Obsoletes: 2ManDVD
28
29 %description
30 ManDVD is a graphical tool for creating Video DVDs, including menus.
31
32 N.B. Executable name is 2ManDVD
33
34 %prep
35 %setup -q -n %{srcname}
36
37 %build
38 %qmake_qt4 2ManDVD.pro
39 %make
40
41 %install
42 rm -rf %{buildroot}
43
44 # put the executable in %{_datadir}/%{name} and symlink it to %_bindir
45 # otherwise the UI localizations don't work
46 install -D -m 755 %{srcname} %{buildroot}%{_datadir}/%{srcname}/%{srcname}
47
48 mkdir %{buildroot}%{_bindir}
49 pushd %{buildroot}%{_bindir}
50 ln -s %{_datadir}/%{srcname}/%{srcname} 2ManDVD
51 popd
52
53 install -m 644 2mandvd_*.qm %{buildroot}%{_datadir}/%{srcname}
54 install -m 644 fake.pl %{buildroot}%{_datadir}/%{srcname}
55
56 # create .desktop file
57 mkdir -p %{buildroot}%{_datadir}/applications/
58
59 cat > %{buildroot}%{_datadir}/applications/%{srcname}.desktop << EOF
60 [Desktop Entry]
61 Type=Application
62 Exec=2ManDVD -graphicssystem raster
63 Icon=2ManDVD
64 GenericName=2ManDVD
65 Comment=Video DVD Creator
66 Name=2ManDVD
67 Terminal=false
68 Categories=AudioVideo;DiscBurning;
69 X-KDE-StartupNotify=true
70 EOF
71
72 install -D -m 644 Interface/mandvd.png %{buildroot}%{_datadir}/pixmaps/%{srcname}.png
73
74 %clean
75 rm -rf %{buildroot}
76
77 %files
78 %defattr(-,root,root)
79 %{_bindir}/%{srcname}
80 %dir %{_datadir}/%{srcname}
81 %{_datadir}/%{srcname}/%{srcname}
82 %{_datadir}/%{srcname}/2mandvd_*.qm
83 %{_datadir}/%{srcname}/fake.pl
84 %{_datadir}/applications/%{srcname}.desktop
85 %{_datadir}/pixmaps/%{srcname}.png
86
87

  ViewVC Help
Powered by ViewVC 1.1.30