]> git.pld-linux.org Git - packages/k9copy.git/blame - k9copy.spec
- release 2 (by relup.sh)
[packages/k9copy.git] / k9copy.spec
CommitLineData
2a826f0d
JR
1#
2# Conditional build:
3%bcond_with qt5 # build with Qt5 and KDE5
4#
fa13e034 5Summary: A vamps frontend
9d50cb65 6Summary(pl.UTF-8): Frontend do programu vamps
fa13e034 7Name: k9copy
2a826f0d 8Version: 3.0.3
89b79f83 9Release: 2
fa13e034 10License: GPL
b3616fb0 11Group: X11/Applications/Multimedia
2a826f0d
JR
12Source0: http://downloads.sourceforge.net/k9copy-reloaded/%{name}-%{version}.tar.gz
13# Source0-md5: 53158282e23a4aa4fb8f4336f1424521
98fd74eb 14Patch0: %{name}-desktop.patch
2a826f0d
JR
15Patch1: cxx.patch
16Patch2: ffmpeg3.patch
17Patch3: qt5.patch
18Patch4: kde4api.patch
19URL: http://k9copy-reloaded.sourceforge.net/
52aed526 20BuildRequires: OpenGL-GLU-devel
388c4cf4 21BuildRequires: automoc4
78ca406f 22BuildRequires: ffmpeg-devel
75425fec 23BuildRequires: libdvdread-devel
a90259b4 24BuildRequires: mpeg2dec-devel
a8c63bbe 25BuildRequires: xine-lib-devel
2a826f0d
JR
26%if %{with qt5}
27BuildRequires: kf5-extra-cmake-modules
28BuildRequires: kf5-kconfig-devel
29BuildRequires: kf5-kcoreaddons-devel
30BuildRequires: kf5-kdelibs4support
31BuildRequires: kf5-kdesu-devel
32BuildRequires: kf5-kdoctools-devel
33BuildRequires: kf5-ki18n-devel
34BuildRequires: kf5-kiconthemes-devel
35BuildRequires: kf5-kio-devel
36BuildRequires: kf5-kpty-devel
37BuildRequires: kf5-kwidgetsaddons-devel
38BuildRequires: kf5-kxmlgui-devel
39BuildRequires: kf5-solid-devel
40BuildRequires: qt5-build
41%else
42BuildRequires: kde4-kdelibs-devel >= 4.1.0
43BuildRequires: qt4-build
44%endif
fa13e034 45Requires: dvd+rw-tools
46Requires: dvdauthor
fa13e034 47Requires: vamps
e667c1b7 48Obsoletes: k9copy-devel
fa13e034 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
52k9copy is a very easy-to-use GUI for vamps that allows the shrinking
b3616fb0
JB
53of DVDs from DVD 9 to DVD 5 under KDE in Linux.
54
1a629e34
JR
55%description -l pl.UTF-8
56k9copy to bardzo łatwy w użyciu graficzny interfejs do programu vamps,
57umożliwiający zmniejszanie obrazów płyt DVD z DVD 9 do DVD 5 w
58środowisku KDE pod Linuksem.
fa13e034 59
fa13e034 60%prep
2a826f0d
JR
61%setup -q -c -T
62%{__tar} xmf %{SOURCE0}
63%{__mv} k9copy/* .
64%patch1 -p1
65%patch2 -p1
66%if %{with qt5}
67%patch3 -p1
68%else
69%patch4 -p1
70%endif
fa13e034 71
72%build
1a751044
RT
73install -d build
74cd build
75%cmake \
2a826f0d
JR
76 %{?with_qt5:-DQT5_BUILD:BOOL=ON} \
77 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
78 -LCMS_DIR=%{_libdir} \
79 ../
80
4b0a70e3 81%{__make}
fa13e034 82
83%install
84rm -rf $RPM_BUILD_ROOT
fa13e034 85
1a751044 86%{__make} -C build install \
fa13e034 87 DESTDIR=$RPM_BUILD_ROOT \
88 prefix=%{_prefix} \
728adc0a 89 kde_htmldir=%{_kdedocdir} \
fa13e034 90 manprefix=%{_mandir}
91
92%find_lang %{name} --all-name --with-kde
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
b3616fb0
JB
97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
99
fa13e034 100%files -f %{name}.lang
101%defattr(644,root,root,755)
102%attr(755,root,root) %{_bindir}/*
2a826f0d
JR
103%if %{with qt5}
104%dir %{_datadir}/%{name}
105%{_datadir}/%{name}/adown.png
106%{_datadir}/%{name}/anim.mng
107%{_datadir}/%{name}/aright.png
108%{_datadir}/%{name}/icons
109%{_datadir}/%{name}/k9copyui.rc
110%{_datadir}/%{name}/mencoder.xml
111%{_desktopdir}/k9copy.desktop
112%{_desktopdir}/k9copy_assistant.desktop
113%{_datadir}/solid/actions/k9copy_assistant_open.desktop
114%{_datadir}/solid/actions/k9copy_open.desktop
115%else
6ad00589 116%{_datadir}/apps/k9copy
1a751044
RT
117%{_desktopdir}/kde4/k9copy.desktop
118%{_desktopdir}/kde4/k9copy_assistant.desktop
119%{_datadir}/apps/solid/actions/k9copy_assistant_open.desktop
120%{_datadir}/apps/solid/actions/k9copy_open.desktop
2a826f0d 121%endif
98fd74eb 122%{_iconsdir}/*/*x*/*/k9copy.png
This page took 0.044831 seconds and 5 git commands to generate.