]>
Commit | Line | Data |
---|---|---|
6c095796 | 1 | |
2 | Summary: automoc4 | |
3 | Summary(pl.UTF-8): automoc4 | |
4 | Name: automoc4 | |
5 | Version: 0.9.83 | |
6 | Release: 1 | |
c544c3b3 | 7 | License: GPL v2 |
8 | Group: X11/Applications | |
6c095796 | 9 | Source0: ftp://ftp.kde.org/pub/kde/unstable/4.0.83/support/%{name}-%{version}.tar.bz2 |
10 | # Source0-md5: 7876af12da90bd357fc547c4f4828603 | |
c544c3b3 | 11 | Patch0: %{name}-lib64.patch |
12 | BuildRequires: cmake | |
13 | BuildRequires: rpmbuild(macros) >= 1.293 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
6c095796 | 17 | automoc4. |
c544c3b3 | 18 | |
19 | %description -l pl.UTF-8 | |
6c095796 | 20 | automoc3. |
c544c3b3 | 21 | |
22 | %prep | |
6c095796 | 23 | %setup -q |
c544c3b3 | 24 | %patch0 -p0 |
25 | ||
26 | %build | |
27 | install -d build | |
28 | cd build | |
29 | %cmake \ | |
30 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
31 | %if "%{_lib}" != "lib" | |
32 | -DLIB_SUFFIX=64 \ | |
33 | %endif | |
c544c3b3 | 34 | ../ |
35 | ||
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} -C build install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %post -p /sbin/ldconfig | |
48 | %postun -p /sbin/ldconfig | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %attr(755,root,root) %{_bindir}/automoc4 | |
53 | %dir %{_libdir}/automoc4 | |
54 | %{_libdir}/automoc4/Automoc4Config.cmake | |
55 | %{_libdir}/automoc4/automoc4.files.in |