]>
Commit | Line | Data |
---|---|---|
6c095796 | 1 | |
5adf79e6 | 2 | %define _qtver 4.4.1 |
43f0da92 | 3 | |
6c095796 | 4 | Summary: automoc4 |
5 | Summary(pl.UTF-8): automoc4 | |
6 | Name: automoc4 | |
9a333675 | 7 | Version: 0.9.88 |
6c095796 | 8 | Release: 1 |
c544c3b3 | 9 | License: GPL v2 |
10 | Group: X11/Applications | |
68e6aaf2 | 11 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{name}/%{version}/%{name}-%{version}.tar.bz2 |
9a333675 | 12 | # Source0-md5: 91bf517cb940109180ecd07bc90c69ec |
43f0da92 | 13 | BuildRequires: QtCore-devel >= %{_qtver} |
5adf79e6 | 14 | BuildRequires: cmake >= 2.6.1-2 |
43f0da92 | 15 | BuildRequires: qt4-build >= %{_qtver} |
16 | BuildRequires: qt4-qmake >= %{_qtver} | |
c544c3b3 | 17 | BuildRequires: rpmbuild(macros) >= 1.293 |
63a3d438 | 18 | Obsoletes: kde4-automoc |
c544c3b3 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
6c095796 | 22 | automoc4. |
c544c3b3 | 23 | |
24 | %description -l pl.UTF-8 | |
c19602bd | 25 | automoc4. |
c544c3b3 | 26 | |
27 | %prep | |
6c095796 | 28 | %setup -q |
c544c3b3 | 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 | |
2c743e4f | 58 | %{_libdir}/automoc4/Automoc4*.cmake |
c544c3b3 | 59 | %{_libdir}/automoc4/automoc4.files.in |