]>
Commit | Line | Data |
---|---|---|
6c095796 | 1 | |
43f0da92 | 2 | %define _qtver 4.4.0 |
3 | ||
6c095796 | 4 | Summary: automoc4 |
5 | Summary(pl.UTF-8): automoc4 | |
6 | Name: automoc4 | |
7 | Version: 0.9.83 | |
8 | Release: 1 | |
c544c3b3 | 9 | License: GPL v2 |
10 | Group: X11/Applications | |
6c095796 | 11 | Source0: ftp://ftp.kde.org/pub/kde/unstable/4.0.83/support/%{name}-%{version}.tar.bz2 |
12 | # Source0-md5: 7876af12da90bd357fc547c4f4828603 | |
c544c3b3 | 13 | Patch0: %{name}-lib64.patch |
43f0da92 | 14 | BuildRequires: QtCore-devel >= %{_qtver} |
c544c3b3 | 15 | BuildRequires: cmake |
43f0da92 | 16 | BuildRequires: qt4-build >= %{_qtver} |
17 | BuildRequires: qt4-qmake >= %{_qtver} | |
c544c3b3 | 18 | BuildRequires: rpmbuild(macros) >= 1.293 |
63a3d438 | 19 | Obsoletes: kde4-automoc |
c544c3b3 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
6c095796 | 23 | automoc4. |
c544c3b3 | 24 | |
25 | %description -l pl.UTF-8 | |
6c095796 | 26 | automoc3. |
c544c3b3 | 27 | |
28 | %prep | |
6c095796 | 29 | %setup -q |
c544c3b3 | 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 | |
c544c3b3 | 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 |