]> git.pld-linux.org Git - packages/kf5-kiconthemes.git/blame - kf5-kiconthemes.spec
- new
[packages/kf5-kiconthemes.git] / kf5-kiconthemes.spec
CommitLineData
aa980ada
WF
1# TODO:
2# - dir /usr/include/KF5 not packaged
3# /usr/share/kf5 not packaged
4%define _state stable
5%define orgname kiconthemes
6
7Summary: Icon GUI utilities
8Name: kf5-%{orgname}
9Version: 5.0.0
10Release: 0.1
11License: LGPL v2.1+
12Group: X11/Libraries
13Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
14# Source0-md5: 0e60f0b8f158117858b14290ab909c29
15URL: http://www.kde.org/
16BuildRequires: Qt5Core-devel >= 5.2.0
17BuildRequires: Qt5DBus-devel >= 5.2.0
18BuildRequires: Qt5Gui-devel >= 5.3.1
19BuildRequires: Qt5Svg-devel >= 5.2.0
20BuildRequires: Qt5Test-devel
21BuildRequires: Qt5Widgets-devel >= 5.2.0
22BuildRequires: Qt5Xml-devel >= 5.2.0
23BuildRequires: cmake >= 2.8.12
24BuildRequires: gettext-devel
25BuildRequires: kf5-extra-cmake-modules >= 1.0.0
26BuildRequires: kf5-kauth-devel >= %{version}
27BuildRequires: kf5-kcodecs-devel >= %{version}
28BuildRequires: kf5-kconfig-devel >= %{version}
29BuildRequires: kf5-kconfigwidgets-devel >= %{version}
30BuildRequires: kf5-kcoreaddons-devel >= %{version}
31BuildRequires: kf5-kguiaddons-devel >= %{version}
32BuildRequires: kf5-ki18n-devel >= %{version}
33BuildRequires: kf5-kitemviews-devel >= %{version}
34BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
35BuildRequires: pkgconfig
36BuildRequires: qt5-linguist
37BuildRequires: rpmbuild(macros) >= 1.164
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%define qt5dir %{_libdir}/qt5
41
42%description
43This library contains classes to improve the handling of icons in
44applications using the KDE Frameworks. Provided are:
45
46- KIconDialog: Dialog class to let the user select an icon from the
47 list of installed icons.
48- KIconButton: Custom button class that displays an icon. When
49 clicking it, the user can change it using the icon dialog.
50- KIconEffect: Applies various colorization effects to icons, which
51 can be used to create selected/disabled icon images.
52
53Other classes in this repository are used internally by the icon theme
54configuration dialogs, and should not be used by applications.
55
56%package devel
57Summary: Header files for %{orgname} development
58Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
59Group: X11/Development/Libraries
60Requires: %{name} = %{version}-%{release}
61
62%description devel
63Header files for %{orgname} development.
64
65%description devel -l pl.UTF-8
66Pliki nagłówkowe dla programistów używających %{orgname}.
67
68%prep
69%setup -q -n %{orgname}-%{version}
70
71%build
72install -d build
73cd build
74%cmake \
75 -DBIN_INSTALL_DIR=%{_bindir} \
76 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
77 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
78 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
79 -DQML_INSTALL_DIR=%{qt5dir}/qml \
80 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
81 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
82 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
83 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
84 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
85 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
86 -D_IMPORT_PREFIX=%{_prefix} \
87 ../
88%{__make}
89
90%install
91rm -rf $RPM_BUILD_ROOT
92
93%{__make} -C build/ install \
94 DESTDIR=$RPM_BUILD_ROOT
95
96%find_lang %{orgname}5
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%post -p /sbin/ldconfig
102%postun -p /sbin/ldconfig
103
104%files -f %{orgname}5.lang
105%defattr(644,root,root,755)
106%doc README.md
107%attr(755,root,root) %{_bindir}/kiconfinder5
108%attr(755,root,root) %ghost %{_libdir}/libKF5IconThemes.so.5
109%attr(755,root,root) %{_libdir}/libKF5IconThemes.so.5.0.0
110
111%files devel
112%defattr(644,root,root,755)
113%{_includedir}/KF5/KIconThemes
114%{_includedir}/KF5/kiconthemes_version.h
115%{_libdir}/cmake/KF5IconThemes
116%attr(755,root,root) %{_libdir}/libKF5IconThemes.so
117%{qt5dir}/mkspecs/modules/qt_KIconThemes.pri
This page took 0.09538 seconds and 4 git commands to generate.