]>
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 | |
5adf79e6 | 11 | #Source0: ftp://ftp.kde.org/pub/kde/unstable/%{name}/%{version}/%{name}-%{version}.tar.bz2 |
12 | Source0: %{name}-%{version}.tar.bz2 | |
9a333675 | 13 | # Source0-md5: 91bf517cb940109180ecd07bc90c69ec |
43f0da92 | 14 | BuildRequires: QtCore-devel >= %{_qtver} |
5adf79e6 | 15 | BuildRequires: cmake >= 2.6.1-2 |
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 | |
c19602bd | 26 | automoc4. |
c544c3b3 | 27 | |
28 | %prep | |
6c095796 | 29 | %setup -q |
c544c3b3 | 30 | |
31 | %build | |
32 | install -d build | |
33 | cd build | |
34 | %cmake \ | |
35 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
36 | %if "%{_lib}" != "lib" | |
37 | -DLIB_SUFFIX=64 \ | |
38 | %endif | |
c544c3b3 | 39 | ../ |
40 | ||
41 | %{__make} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} -C build install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %post -p /sbin/ldconfig | |
53 | %postun -p /sbin/ldconfig | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %attr(755,root,root) %{_bindir}/automoc4 | |
58 | %dir %{_libdir}/automoc4 | |
2c743e4f | 59 | %{_libdir}/automoc4/Automoc4*.cmake |
c544c3b3 | 60 | %{_libdir}/automoc4/automoc4.files.in |