]>
Commit | Line | Data |
---|---|---|
4aae17ae | 1 | # |
2 | # Conditional build: | |
3 | # | |
221fd55f | 4 | %define _state stable |
5 | %define snap svn1048496 | |
4aae17ae | 6 | %define orgname oxygen-icons |
7 | ||
8 | Summary: KDE4 - Oxygen icons | |
9 | Summary(pl.UTF-8): Ikony Oxygen dla KDE4 | |
10 | Name: kde4-oxygen-icons | |
221fd55f | 11 | Version: 4.4.0 |
4aae17ae | 12 | Release: 1 |
13 | License: GPL v2 | |
14 | Group: X11/Libraries | |
221fd55f | 15 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2 |
16 | # Source0-md5: fbcd429cc822cb88a815d97a4e66be4d | |
4aae17ae | 17 | URL: http://www.kde.org/ |
221fd55f | 18 | BuildRequires: cmake >= 2.8.0 |
4aae17ae | 19 | BuildRequires: rpmbuild(macros) >= 1.293 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | KDE4 - Oxygen Icons. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Ikony Oxygen dla KDE4. | |
28 | ||
29 | %package -n kde4-icons-oxygen | |
2f5c1238 | 30 | Summary: KDE icons - oxygen |
31 | Summary(pl.UTF-8): Motyw ikon do KDE - oxygen | |
32 | Group: Themes | |
33 | Provides: kde4-icons | |
34 | Obsoletes: kde-icons-oxygen | |
4aae17ae | 35 | |
36 | %description -n kde4-icons-oxygen | |
37 | KDE icons - oxygen. | |
38 | ||
39 | %description -n kde4-icons-oxygen -l pl.UTF-8 | |
40 | Motyw ikon do KDE - oxygen. | |
41 | ||
42 | %package -n kde4-icons-oxygen-svg | |
2f5c1238 | 43 | Summary: KDE SVG icons - oxygen |
44 | Summary(pl.UTF-8): Motyw ikon SVG do KDE - oxygen | |
45 | Group: Themes | |
46 | Provides: kde4-icons | |
4aae17ae | 47 | |
48 | %description -n kde4-icons-oxygen-svg | |
49 | KDE icons - oxygen. This package contains SVG icons. | |
50 | ||
51 | %description -n kde4-icons-oxygen-svg -l pl.UTF-8 | |
52 | Motyw ikon do KDE - oxygen. Ten pakiet zawiera ikony SVG. | |
53 | ||
54 | %prep | |
55 | %setup -q -n %{orgname}-%{version} | |
56 | ||
57 | %build | |
58 | install -d build | |
59 | cd build | |
60 | %cmake .. \ | |
61 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
c4ddae80 | 62 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
63060fa7 | 63 | -DCMAKE_CXX_COMPILER_WORKS=1 \ |
221fd55f | 64 | -DCMAKE_C_COMPILER_WORKS=1 \ |
4aae17ae | 65 | %if "%{_lib}" == "lib64" |
66 | -DLIB_SUFFIX=64 | |
67 | %endif | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} -C build install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | cp -r scalable $RPM_BUILD_ROOT%{_iconsdir}/oxygen/ | |
2f5c1238 | 76 | install -d $RPM_BUILD_ROOT%{_iconsdir}/oxygen/42x42/{apps,devices,mimetypes,places} |
4aae17ae | 77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files -n kde4-icons-oxygen | |
82 | %defattr(644,root,root,755) | |
83 | # digikam has it's own icon in digikam.spec | |
38a4eacc | 84 | %dir %{_iconsdir}/oxygen/256x256 |
221fd55f | 85 | %dir %{_iconsdir}/oxygen/256x256/actions |
38a4eacc | 86 | %dir %{_iconsdir}/oxygen/256x256/apps |
fd969b09 | 87 | %dir %{_iconsdir}/oxygen/256x256/categories |
88 | %dir %{_iconsdir}/oxygen/256x256/devices | |
38a4eacc | 89 | %dir %{_iconsdir}/oxygen/256x256/mimetypes |
90 | %dir %{_iconsdir}/oxygen/256x256/places | |
91 | %dir %{_iconsdir}/oxygen/256x256/status | |
2f5c1238 | 92 | %dir %{_iconsdir}/oxygen/42x42 |
93 | %dir %{_iconsdir}/oxygen/42x42/apps | |
94 | %dir %{_iconsdir}/oxygen/42x42/devices | |
95 | %dir %{_iconsdir}/oxygen/42x42/mimetypes | |
96 | %dir %{_iconsdir}/oxygen/42x42/places | |
97 | %exclude %{_iconsdir}/oxygen/*x*/apps/digikam.* | |
98 | %exclude %{_iconsdir}/oxygen/*x*/apps/showfoto.* | |
4aae17ae | 99 | %{_iconsdir}/oxygen/*x*/actions/* |
100 | %{_iconsdir}/oxygen/*x*/apps/* | |
101 | %{_iconsdir}/oxygen/*x*/categories/* | |
102 | %{_iconsdir}/oxygen/*x*/devices/* | |
103 | %{_iconsdir}/oxygen/*x*/mimetypes/* | |
104 | %{_iconsdir}/oxygen/*x*/places/* | |
105 | %{_iconsdir}/oxygen/*x*/status/* | |
106 | %{_iconsdir}/oxygen/*x*/animations/* | |
107 | %{_iconsdir}/oxygen/*x*/emblems/* | |
108 | %{_iconsdir}/oxygen/*x*/emotes/* | |
109 | %{_iconsdir}/oxygen/index.theme | |
110 | ||
111 | %files -n kde4-icons-oxygen-svg | |
112 | %defattr(644,root,root,755) | |
113 | %dir %{_iconsdir}/oxygen/scalable | |
114 | # digikam has it's own icon in digikam.spec | |
115 | %exclude %{_iconsdir}/oxygen/scalable/apps/digikam.* | |
116 | %{_iconsdir}/oxygen/scalable/text-formatting.svg | |
117 | %{_iconsdir}/oxygen/scalable/actions | |
118 | %{_iconsdir}/oxygen/scalable/apps | |
119 | %{_iconsdir}/oxygen/scalable/categories | |
120 | %{_iconsdir}/oxygen/scalable/devices | |
121 | %{_iconsdir}/oxygen/scalable/emblems | |
122 | %{_iconsdir}/oxygen/scalable/emotes | |
123 | %{_iconsdir}/oxygen/scalable/mimetypes | |
124 | %{_iconsdir}/oxygen/scalable/places | |
125 | %{_iconsdir}/oxygen/scalable/status |