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
10 Group: Development/Tools
11 Source0: ftp://ftp.kde.org/pub/kde/stable/automoc4/%{version}/%{name}-%{version}.tar.bz2
12 # Source0-md5: 91bf517cb940109180ecd07bc90c69ec
13 URL: http://techbase.kde.org/Development/Tools/Automoc4
14 BuildRequires: QtCore-devel >= %{qtver}
15 BuildRequires: cmake >= 2.6.1-2
16 BuildRequires: qt4-build >= %{qtver}
17 BuildRequires: qt4-qmake >= %{qtver}
18 BuildRequires: rpmbuild(macros) >= 1.293
19 Obsoletes: kde4-automoc
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 automoc4 is a tool to add rules for generating Qt moc files
24 automatically to projects that use CMake as the buildsystem.
26 %description -l pl.UTF-8
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
38 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
39 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
40 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
41 -DCMAKE_VERBOSE_MAKEFILE=ON \
42 %if "%{_lib}" != "lib"
45 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} -C build install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/automoc4
64 %dir %{_libdir}/automoc4
65 %{_libdir}/automoc4/Automoc4*.cmake
66 %{_libdir}/automoc4/automoc4.files.in