]> git.pld-linux.org Git - packages/automoc4.git/blame - automoc4.spec
- x32 rebuild
[packages/automoc4.git] / automoc4.spec
CommitLineData
6c095796 1
45308b8b 2%define qtver 4.4.1
43f0da92 3
ebce9ac8
JB
4Summary: Automoc4 - automatically adding Qt moc files rules for CMake
5Summary(pl.UTF-8): Automoc4 - automatyczne dodawanie reguł dla plików Qt moc do CMake
6c095796 6Name: automoc4
9a333675 7Version: 0.9.88
d02007f0 8Release: 3
ebce9ac8
JB
9License: BSD
10Group: Development/Tools
11Source0: ftp://ftp.kde.org/pub/kde/stable/automoc4/%{version}/%{name}-%{version}.tar.bz2
9a333675 12# Source0-md5: 91bf517cb940109180ecd07bc90c69ec
ebce9ac8 13URL: http://techbase.kde.org/Development/Tools/Automoc4
45308b8b 14BuildRequires: QtCore-devel >= %{qtver}
5adf79e6 15BuildRequires: cmake >= 2.6.1-2
45308b8b 16BuildRequires: qt4-build >= %{qtver}
17BuildRequires: qt4-qmake >= %{qtver}
c544c3b3 18BuildRequires: rpmbuild(macros) >= 1.293
63a3d438 19Obsoletes: kde4-automoc
c544c3b3 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
ebce9ac8
JB
23automoc4 is a tool to add rules for generating Qt moc files
24automatically to projects that use CMake as the buildsystem.
c544c3b3 25
26%description -l pl.UTF-8
ebce9ac8
JB
27automoc4 to narzędzie dodające automatycznie reguły do tworzenia
28plików Qt moc do projektów wykorzystujących CMake jako swojego
29systemu budowania.
c544c3b3 30
31%prep
6c095796 32%setup -q
c544c3b3 33
34%build
35install -d build
36cd 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
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} -C build install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -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
This page took 0.083987 seconds and 4 git commands to generate.