]>
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 | |
c8a3a858 | 12 | Name: kf5-%{orgname} |
68edf00e WF |
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 | |
a6831013 ER |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
68edf00e WF |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | KCodecs provide a collection of methods to manipulate strings using | |
32 | various encodings. It supports: | |
33 | ||
34 | - base64 | |
35 | - uu | |
36 | - quoted-printable | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for %{orgname} development | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname} | |
41 | Group: X11/Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for %{orgname} development. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe dla programistów używających %{orgname}. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{orgname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
57 | -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \ | |
58 | -D_IMPORT_PREFIX=%{_prefix} \ | |
59 | ../ | |
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} -C build/ install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %find_lang %{orgname}5_qt --with-qm | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files -f %{orgname}5_qt.lang | |
77 | %defattr(644,root,root,755) | |
78 | %doc README.md | |
79 | %attr(755,root,root) %ghost %{_libdir}/libKF5Codecs.so.5 | |
80 | %attr(755,root,root) %{_libdir}/libKF5Codecs.so.5.0.0 | |
81 | ||
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libKF5Codecs.so | |
85 | %{_includedir}/KF5/KCodecs | |
86 | %{_includedir}/KF5/kcodecs_version.h | |
87 | %{_libdir}/cmake/KF5Codecs | |
88 | %{_libdir}/qt5/mkspecs/modules/qt_KCodecs.pri |