]>
Commit | Line | Data |
---|---|---|
6c095796 | 1 | |
45308b8b | 2 | %define qtver 4.4.1 |
43f0da92 | 3 | |
ebce9ac8 JB |
4 | Summary: Automoc4 - automatically adding Qt moc files rules for CMake |
5 | Summary(pl.UTF-8): Automoc4 - automatyczne dodawanie reguł dla plików Qt moc do CMake | |
6c095796 | 6 | Name: automoc4 |
9a333675 | 7 | Version: 0.9.88 |
d02007f0 | 8 | Release: 3 |
ebce9ac8 JB |
9 | License: BSD |
10 | Group: Development/Tools | |
11 | Source0: ftp://ftp.kde.org/pub/kde/stable/automoc4/%{version}/%{name}-%{version}.tar.bz2 | |
9a333675 | 12 | # Source0-md5: 91bf517cb940109180ecd07bc90c69ec |
ebce9ac8 | 13 | URL: http://techbase.kde.org/Development/Tools/Automoc4 |
45308b8b | 14 | BuildRequires: QtCore-devel >= %{qtver} |
5adf79e6 | 15 | BuildRequires: cmake >= 2.6.1-2 |
45308b8b | 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 | |
ebce9ac8 JB |
23 | automoc4 is a tool to add rules for generating Qt moc files |
24 | automatically to projects that use CMake as the buildsystem. | |
c544c3b3 | 25 | |
26 | %description -l pl.UTF-8 | |
ebce9ac8 JB |
27 | automoc4 to narzędzie dodające automatycznie reguły do tworzenia |
28 | plików Qt moc do projektów wykorzystujących CMake jako swojego | |
29 | systemu budowania. | |
c544c3b3 | 30 | |
31 | %prep | |
6c095796 | 32 | %setup -q |
c544c3b3 | 33 | |
34 | %build | |
35 | install -d build | |
36 | cd build | |
ebce9ac8 JB |
37 | %cmake .. \ |
38 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
39 | -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ | |
c544c3b3 | 40 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
ebce9ac8 | 41 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
ebce9ac8 | 42 | -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 |
c544c3b3 | 43 | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} -C build install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %attr(755,root,root) %{_bindir}/automoc4 | |
61 | %dir %{_libdir}/automoc4 | |
2c743e4f | 62 | %{_libdir}/automoc4/Automoc4*.cmake |
c544c3b3 | 63 | %{_libdir}/automoc4/automoc4.files.in |