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