]> git.pld-linux.org Git - packages/dc-qt.git/blob - dc-qt.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/dc-qt.git] / dc-qt.spec
1 #
2 # Conditional build:
3 %bcond_without  xine    # disable media file preview (uses xine)
4 #
5 Summary:        Qt GUI for dctc (Direct Connect)
6 Summary(pl.UTF-8):      Oparte o Qt GUI do dctc (Direct Connect)
7 Name:           dc-qt
8 Version:        0.1.2
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Networking
12 Source0:        http://dl.sourceforge.net/dc-qt/%{name}-%{version}.tar.gz
13 # Source0-md5:  2653c020cd2cc3957d35f2c1e77b4d46
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 URL:            http://dc-qt.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  qt-devel >= 6:3.2
20 BuildRequires:  rpmbuild(macros) >= 1.129
21 %{?with_xine:BuildRequires:     xine-lib-devel}
22 Requires:       dctc
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Direct Connect client (dctc) Qt GUI.
27
28 %description -l pl.UTF-8
29 Graficzny interfejs użytkownika używający Qt do dctc (Direct Connect).
30
31 %prep
32 %setup -q
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %{__automake}
38 %configure \
39         --%{?with_xine:en}%{!?with_xine:dis}able-preview \
40         --with-qt-libs=%{_libdir} \
41         --with-qt-includes=%{_includedir}/qt
42
43 %{__make} \
44         LDFLAGS="%{rpmldflags}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
49
50 %{__make} install \
51          DESTDIR=$RPM_BUILD_ROOT \
52          kde_htmldir=%{_kdedocdir}
53
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc AUTHORS README TODO
63 %attr(755,root,root) %{_bindir}/dc_qt
64 %{_desktopdir}/*.desktop
65 %{_docdir}/%{name}
66 %{_pixmapsdir}/%{name}.png
This page took 0.064273 seconds and 3 git commands to generate.