]>
Commit | Line | Data |
---|---|---|
68edf00e WF |
1 | # TODO: |
2 | # - proper place for *.pri, | |
3 | # - set ECM_MKSPECS_INSTALL_DIR in kde5-extra-cmake-modules | |
4 | # - _IMPORT_PREFIX also must be set somewhere | |
5 | # - runtime Requires if any | |
6 | # - these dirs are not own by any package | |
7 | # /usr/include/KF5 | |
8 | %define _state stable | |
9 | %define orgname kcodecs | |
10 | ||
11 | Summary: String encoding | |
12 | Name: kde5-%{orgname} | |
13 | Version: 5.0.0 | |
14 | Release: 0.1 | |
15 | License: GPL v2+/LGPL v2.1+ | |
16 | Group: X11/Libraries | |
17 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz | |
18 | # Source0-md5: f87384816f5685a380b5a74c44695c7b | |
19 | URL: http://www.kde.org/ | |
20 | BuildRequires: Qt5Core-devel >= 5.2.0 | |
21 | BuildRequires: Qt5Test-devel | |
22 | BuildRequires: cmake >= 2.8.12 | |
23 | BuildRequires: kde5-extra-cmake-modules >= 1.0.0 | |
24 | BuildRequires: qt5-linguist | |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | KCodecs provide a collection of methods to manipulate strings using | |
30 | various encodings. It supports: | |
31 | ||
32 | - base64 | |
33 | - uu | |
34 | - quoted-printable | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for %{orgname} development | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname} | |
39 | Group: X11/Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for %{orgname} development. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe dla programistów używających %{orgname}. | |
47 | ||
48 | %prep | |
49 | %setup -q -n %{orgname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake \ | |
55 | -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \ | |
56 | -D_IMPORT_PREFIX=%{_prefix} \ | |
57 | ../ | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} -C build/ install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %find_lang %{orgname}5_qt --with-qm | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files -f %{orgname}5_qt.lang | |
75 | %defattr(644,root,root,755) | |
76 | %doc README.md | |
77 | %attr(755,root,root) %ghost %{_libdir}/libKF5Codecs.so.5 | |
78 | %attr(755,root,root) %{_libdir}/libKF5Codecs.so.5.0.0 | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/libKF5Codecs.so | |
83 | %{_includedir}/KF5/KCodecs | |
84 | %{_includedir}/KF5/kcodecs_version.h | |
85 | %{_libdir}/cmake/KF5Codecs | |
86 | %{_libdir}/qt5/mkspecs/modules/qt_KCodecs.pri |