]>
Commit | Line | Data |
---|---|---|
4aae17ae | 1 | # |
2 | # Conditional build: | |
3 | # | |
79a00bb0 | 4 | %define state stable |
4aae17ae | 5 | %define orgname oxygen-icons |
6 | ||
7 | Summary: KDE4 - Oxygen icons | |
8 | Summary(pl.UTF-8): Ikony Oxygen dla KDE4 | |
9 | Name: kde4-oxygen-icons | |
d65ef211 | 10 | Version: 4.3.5 |
4aae17ae | 11 | Release: 1 |
12 | License: GPL v2 | |
13 | Group: X11/Libraries | |
2f5c1238 | 14 | Source0: ftp://ftp.kde.org/pub/kde/%{state}/%{version}/src/%{orgname}-%{version}.tar.bz2 |
d65ef211 | 15 | # Source0-md5: d41f62ab450e06c1f375179289417e98 |
4aae17ae | 16 | URL: http://www.kde.org/ |
17 | BuildRequires: cmake >= 2.6.1-2 | |
18 | BuildRequires: rpmbuild(macros) >= 1.293 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | KDE4 - Oxygen Icons. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Ikony Oxygen dla KDE4. | |
27 | ||
28 | %package -n kde4-icons-oxygen | |
2f5c1238 | 29 | Summary: KDE icons - oxygen |
30 | Summary(pl.UTF-8): Motyw ikon do KDE - oxygen | |
31 | Group: Themes | |
32 | Provides: kde4-icons | |
33 | Obsoletes: kde-icons-oxygen | |
4aae17ae | 34 | |
35 | %description -n kde4-icons-oxygen | |
36 | KDE icons - oxygen. | |
37 | ||
38 | %description -n kde4-icons-oxygen -l pl.UTF-8 | |
39 | Motyw ikon do KDE - oxygen. | |
40 | ||
41 | %package -n kde4-icons-oxygen-svg | |
2f5c1238 | 42 | Summary: KDE SVG icons - oxygen |
43 | Summary(pl.UTF-8): Motyw ikon SVG do KDE - oxygen | |
44 | Group: Themes | |
45 | Provides: kde4-icons | |
4aae17ae | 46 | |
47 | %description -n kde4-icons-oxygen-svg | |
48 | KDE icons - oxygen. This package contains SVG icons. | |
49 | ||
50 | %description -n kde4-icons-oxygen-svg -l pl.UTF-8 | |
51 | Motyw ikon do KDE - oxygen. Ten pakiet zawiera ikony SVG. | |
52 | ||
53 | %prep | |
2f5c1238 | 54 | |
4aae17ae | 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 \ |
27565b13 | 64 | -DCMAKE_CXX_COMPILER="%{__cc}" \ |
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 |
85 | %dir %{_iconsdir}/oxygen/256x256/apps | |
fd969b09 | 86 | %dir %{_iconsdir}/oxygen/256x256/categories |
87 | %dir %{_iconsdir}/oxygen/256x256/devices | |
38a4eacc | 88 | %dir %{_iconsdir}/oxygen/256x256/mimetypes |
89 | %dir %{_iconsdir}/oxygen/256x256/places | |
90 | %dir %{_iconsdir}/oxygen/256x256/status | |
2f5c1238 | 91 | %dir %{_iconsdir}/oxygen/42x42 |
92 | %dir %{_iconsdir}/oxygen/42x42/apps | |
93 | %dir %{_iconsdir}/oxygen/42x42/devices | |
94 | %dir %{_iconsdir}/oxygen/42x42/mimetypes | |
95 | %dir %{_iconsdir}/oxygen/42x42/places | |
96 | %exclude %{_iconsdir}/oxygen/*x*/apps/digikam.* | |
97 | %exclude %{_iconsdir}/oxygen/*x*/apps/showfoto.* | |
4aae17ae | 98 | %{_iconsdir}/oxygen/*x*/actions/* |
99 | %{_iconsdir}/oxygen/*x*/apps/* | |
100 | %{_iconsdir}/oxygen/*x*/categories/* | |
101 | %{_iconsdir}/oxygen/*x*/devices/* | |
102 | %{_iconsdir}/oxygen/*x*/mimetypes/* | |
103 | %{_iconsdir}/oxygen/*x*/places/* | |
104 | %{_iconsdir}/oxygen/*x*/status/* | |
105 | %{_iconsdir}/oxygen/*x*/animations/* | |
106 | %{_iconsdir}/oxygen/*x*/emblems/* | |
107 | %{_iconsdir}/oxygen/*x*/emotes/* | |
108 | %{_iconsdir}/oxygen/index.theme | |
109 | ||
110 | %files -n kde4-icons-oxygen-svg | |
111 | %defattr(644,root,root,755) | |
112 | %dir %{_iconsdir}/oxygen/scalable | |
113 | # digikam has it's own icon in digikam.spec | |
114 | %exclude %{_iconsdir}/oxygen/scalable/apps/digikam.* | |
115 | %{_iconsdir}/oxygen/scalable/text-formatting.svg | |
116 | %{_iconsdir}/oxygen/scalable/actions | |
117 | %{_iconsdir}/oxygen/scalable/apps | |
118 | %{_iconsdir}/oxygen/scalable/categories | |
119 | %{_iconsdir}/oxygen/scalable/devices | |
120 | %{_iconsdir}/oxygen/scalable/emblems | |
121 | %{_iconsdir}/oxygen/scalable/emotes | |
122 | %{_iconsdir}/oxygen/scalable/mimetypes | |
123 | %{_iconsdir}/oxygen/scalable/places | |
124 | %{_iconsdir}/oxygen/scalable/status |