]> git.pld-linux.org Git - packages/automoc4.git/blob - automoc4.spec
- define _qtver
[packages/automoc4.git] / automoc4.spec
1
2 %define         _qtver  4.4.0
3
4 Summary:        automoc4
5 Summary(pl.UTF-8):      automoc4
6 Name:           automoc4
7 Version:        0.9.83
8 Release:        1
9 License:        GPL v2
10 Group:          X11/Applications
11 Source0:        ftp://ftp.kde.org/pub/kde/unstable/4.0.83/support/%{name}-%{version}.tar.bz2
12 # Source0-md5:  7876af12da90bd357fc547c4f4828603
13 Patch0:         %{name}-lib64.patch
14 BuildRequires:  QtCore-devel >= %{_qtver}
15 BuildRequires:  cmake
16 BuildRequires:  qt4-build >= %{_qtver}
17 BuildRequires:  qt4-qmake >= %{_qtver}
18 BuildRequires:  rpmbuild(macros) >= 1.293
19 Obsoletes:      kde4-automoc
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 automoc4.
24
25 %description -l pl.UTF-8
26 automoc3.
27
28 %prep
29 %setup -q
30 %patch0 -p0
31
32 %build
33 install -d build
34 cd build
35 %cmake \
36         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
37 %if "%{_lib}" != "lib"
38         -DLIB_SUFFIX=64 \
39 %endif
40         ../
41
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} -C build install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post   -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
55
56 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/automoc4
59 %dir %{_libdir}/automoc4
60 %{_libdir}/automoc4/Automoc4Config.cmake
61 %{_libdir}/automoc4/automoc4.files.in
This page took 0.027151 seconds and 3 git commands to generate.