1 | %define with_my_japo 0 |
---|
2 | |
---|
3 | %define _kde4_bindir %{_bindir} |
---|
4 | %define _kde4_iconsdir %{_datadir}/icons |
---|
5 | %define _kde4_datadir %{_datadir} |
---|
6 | %define _kde4_docdir %{_datadir}/doc |
---|
7 | %define _kde4_appsdir %{_datadir}/kde4/apps |
---|
8 | |
---|
9 | %define _qt4_qmake %{_libdir}/qt4/bin/qmake |
---|
10 | |
---|
11 | Name: k9copy |
---|
12 | Version: 2.3.8 |
---|
13 | Release: 1%{?_dist_release} |
---|
14 | Summary: Video DVD backup and creation program |
---|
15 | Summary(ja): ビデオDVDバックアップと作成プログラム |
---|
16 | Group: Applications/Multimedia |
---|
17 | License: GPLv2+ |
---|
18 | URL: http://k9copy.sourceforge.net/ |
---|
19 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz |
---|
20 | |
---|
21 | ## vine |
---|
22 | %if %{with_my_japo} |
---|
23 | Source100: k9copy-2.3.5-ja.po |
---|
24 | %endif |
---|
25 | |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | |
---|
28 | # upstreamable patches |
---|
29 | #Patch51: k9copy-2.3.5-dso.patch |
---|
30 | #Patch52: k9copy-2.3.5-mimetype.patch |
---|
31 | |
---|
32 | BuildRequires: qt4-devel |
---|
33 | BuildRequires: cmake |
---|
34 | BuildRequires: desktop-file-utils |
---|
35 | ##BuildRequires: ffmpeg-devel |
---|
36 | BuildRequires: gettext |
---|
37 | BuildRequires: hal-devel |
---|
38 | BuildRequires: kdelibs4-devel >= 4.4.3 |
---|
39 | BuildRequires: libdvdread-devel |
---|
40 | ##BuildRequires: libmpeg2-devel |
---|
41 | BuildRequires: pkgconfig |
---|
42 | BuildRequires: xine-lib-devel |
---|
43 | |
---|
44 | Requires: dvd+rw-tools |
---|
45 | Requires: dvdauthor |
---|
46 | Requires: kdebase-runtime >= 4.4.3 |
---|
47 | |
---|
48 | ### Optional, not *strictly* required: |
---|
49 | ##Requires(hint): mencoder |
---|
50 | ##Requires(hint): mplayer |
---|
51 | |
---|
52 | # Vine |
---|
53 | # BuildRequires: self-build-ffmpeg |
---|
54 | # BuildRequires: self-build-libmpeg2 |
---|
55 | # Requires: self-build-mplayer |
---|
56 | |
---|
57 | Obsoletes: self-build-k9copy < 2.0.0 |
---|
58 | Obsoletes: k9copy < 2.0.0 |
---|
59 | |
---|
60 | %description |
---|
61 | Video DVD backup and creation program, features include: |
---|
62 | * Video stream compression for fit onto a single layer 4.7GB DVD |
---|
63 | * DVD Burning |
---|
64 | * Creation of ISO images |
---|
65 | * Audio tracks and subtitle selection |
---|
66 | * Video title preview |
---|
67 | * Preservation of the original menus |
---|
68 | |
---|
69 | %description -l ja |
---|
70 | ビデオDVDバックアップと作成プログラム。 |
---|
71 | 特徴は: |
---|
72 | * 片面一層4.7GB DVDへ収めるためのビデオストリーム圧縮 |
---|
73 | * DVD書き込み |
---|
74 | * ISOイメージの作成 |
---|
75 | * オーディオトラックとサブタイトル選択 |
---|
76 | * ビデオタイトルプレビュー |
---|
77 | * オリジナルのメニューの保存 |
---|
78 | |
---|
79 | |
---|
80 | %prep |
---|
81 | %setup -q -n %{name}-%{version}-Source |
---|
82 | |
---|
83 | #%patch51 -p1 -b .dso |
---|
84 | #%patch52 -p1 -b .mimetype |
---|
85 | |
---|
86 | # fixed *.desktop files |
---|
87 | for x in *.desktop; do %__sed -i "s,^MimeTypes=,MimeType=," $x; done |
---|
88 | |
---|
89 | %if %{with_my_japo} |
---|
90 | ## vine |
---|
91 | %__install -m644 %{SOURCE100} po/ja.po |
---|
92 | %endif |
---|
93 | |
---|
94 | |
---|
95 | %build |
---|
96 | %__mkdir -p %{_target_platform} |
---|
97 | pushd %{_target_platform} |
---|
98 | #unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
99 | %__cmake \ |
---|
100 | -DCMAKE_BUILD_TYPE=release \ |
---|
101 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
---|
102 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
103 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
104 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
105 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
106 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
107 | -DQT_QMAKE_EXECUTABLE=%_qt4_qmake \ |
---|
108 | -DAVCODEC_INCLUDE_DIR=$(pkg-config libavcodec --variable=includedir) \ |
---|
109 | -DAVFORMAT_INCLUDE_DIR=$(pkg-config libavformat --variable=includedir) \ |
---|
110 | -DFFMPEGSCALE_INCLUDE_DIR=$(pkg-config libswscale --variable=includedir) \ |
---|
111 | .. |
---|
112 | popd |
---|
113 | |
---|
114 | %__make %{?_smp_mflags} -C %{_target_platform} |
---|
115 | |
---|
116 | |
---|
117 | %install |
---|
118 | %__rm -rf %{buildroot} |
---|
119 | |
---|
120 | %__make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
121 | |
---|
122 | %find_lang %{name} |
---|
123 | |
---|
124 | |
---|
125 | %check |
---|
126 | desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy.desktop |
---|
127 | desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop |
---|
128 | |
---|
129 | |
---|
130 | %clean |
---|
131 | %__rm -rf %{buildroot} |
---|
132 | |
---|
133 | |
---|
134 | %post |
---|
135 | touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
136 | |
---|
137 | %posttrans |
---|
138 | gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
139 | |
---|
140 | %postun |
---|
141 | if [ $1 -eq 0 ] ; then |
---|
142 | touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
143 | gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
144 | fi |
---|
145 | |
---|
146 | |
---|
147 | %files -f %{name}.lang |
---|
148 | %defattr(-,root,root,-) |
---|
149 | %doc COPYING |
---|
150 | %{_kde4_bindir}/k9copy |
---|
151 | %{_kde4_bindir}/k9play |
---|
152 | %{_kde4_bindir}/k9xineplayer |
---|
153 | %{_kde4_appsdir}/k9copy/ |
---|
154 | %{_kde4_appsdir}/solid/actions/*.desktop |
---|
155 | %{_kde4_datadir}/applications/kde4/k9copy.desktop |
---|
156 | %{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop |
---|
157 | %{_kde4_docdir}/HTML/en/k9copy/ |
---|
158 | %{_kde4_iconsdir}/hicolor/*/*/* |
---|
159 | |
---|
160 | |
---|
161 | %changelog |
---|
162 | * Tue Apr 3 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.8-1 |
---|
163 | - new upstream release |
---|
164 | - dropped upstreamed/unused patches |
---|
165 | |
---|
166 | * Sun May 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.7-1 |
---|
167 | - new upstream release |
---|
168 | |
---|
169 | * Sat Aug 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.6-1 |
---|
170 | - new upstream release |
---|
171 | |
---|
172 | * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.5-1 |
---|
173 | - new upstream release |
---|
174 | - added Requires: kdebase-runtime |
---|
175 | - added k9copy-2.3.5-ja.po |
---|
176 | |
---|
177 | * Mon Apr 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.4-1 |
---|
178 | - built based on RPM Fusion development |
---|
179 | |
---|
180 | * Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.4-1 |
---|
181 | - k9copy-2.3.4 |
---|
182 | |
---|
183 | * Sat Aug 29 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.3-1 |
---|
184 | - k9copy-2.3.3 |
---|
185 | |
---|
186 | * Wed May 27 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.2-1 |
---|
187 | - k9copy-2.3.2 |
---|
188 | |
---|
189 | * Mon Apr 06 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.1-1 |
---|
190 | - k9copy-2.3.1 |
---|
191 | - optimize scriptlets |
---|
192 | |
---|
193 | * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.3.0-2 |
---|
194 | - rebuild for new F11 features |
---|
195 | |
---|
196 | * Thu Mar 12 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.0-1 |
---|
197 | - k9copy-2.3.0 |
---|
198 | |
---|
199 | * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1 |
---|
200 | - k9copy-2.2.0 |
---|
201 | |
---|
202 | * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-2 |
---|
203 | - ExcludeArch: ppc ppc64 (still fails) |
---|
204 | |
---|
205 | * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1 |
---|
206 | - k9copy-2.1.0 |
---|
207 | |
---|
208 | * Fri Sep 19 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-4 |
---|
209 | - drop Requires: libdvdcss |
---|
210 | |
---|
211 | * Thu Sep 18 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-3 |
---|
212 | - use pkg-config to query ffmpeg includedir(s) |
---|
213 | |
---|
214 | * Tue Sep 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-2 |
---|
215 | - ffmpeg patch |
---|
216 | |
---|
217 | * Mon Jun 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-1 |
---|
218 | - k9copy-2.0.2 |
---|
219 | |
---|
220 | * Sat Jun 14 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-1 |
---|
221 | - k9copy-2.0.1 |
---|
222 | |
---|
223 | * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-5 |
---|
224 | - gcc43 patch (forward port malloc patch from fedoraforum) |
---|
225 | |
---|
226 | * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-4 |
---|
227 | - License: GPLv2+ , %%doc COPYING |
---|
228 | - minor libdvdread dl'ing patch |
---|
229 | |
---|
230 | * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-3 |
---|
231 | - ExcludeArch: ppc ppc64 |
---|
232 | |
---|
233 | * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-2 |
---|
234 | - use %%find_lang |
---|
235 | - use %%_kde4_* macros |
---|
236 | |
---|
237 | * Mon Jun 02 2008 Leigh Scott <leigh123linux@googlemail.com> 2.0.0-1 |
---|
238 | - bump to 2.0.0 release |
---|
239 | |
---|
240 | * Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.2-1 |
---|
241 | - Upgrade to 1.2.2 |
---|
242 | - Added patch to fix buffer overflows (Thanks to Gustavo Maciel Dias Vieira) |
---|
243 | |
---|
244 | * Mon Nov 12 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.0-1 |
---|
245 | - Upgrade to 1.2.0 |
---|
246 | |
---|
247 | * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-2 |
---|
248 | - d-f-i: s/Mimetypes/MimeTypes/ typo |
---|
249 | |
---|
250 | * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-1 |
---|
251 | - k9copy-1.1.3 |
---|
252 | |
---|
253 | * Sun Jul 08 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-2.rerel3 |
---|
254 | - Various minor fixes to the spec file |
---|
255 | - Changed release to work around upstreams 'odd' suffix |
---|
256 | - Use desktop-file-install for the desktop file |
---|
257 | |
---|
258 | * Tue Jun 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-1 |
---|
259 | - Initial release |
---|