- plasma/shells, plasma/packages
[packages/kf5-dirs.git] / kf5-dirs.spec
CommitLineData
e65276ca
AM
1%define __spec_clean_body %{nil}
2%define _enable_debug_packages 0
3Summary: KDE Frameworks - common directories
4Name: kf5-dirs
0d0fe565 5Version: 0.2
b2906d34 6Release: 14
e65276ca
AM
7License: LGPL
8Group: X11/Libraries
9URL: http://www.kde.org/
10BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12%description
13KDE Frameworks - common directories.
14
15%prep
16
17%install
18rm -rf $RPM_BUILD_ROOT
19install -d \
20 $RPM_BUILD_ROOT%{_includedir}/KF5 \
ec38a98f 21 $RPM_BUILD_ROOT%{_datadir}/kf5/{kcookiejar,widgets/pics,locale} \
4a7e752c 22 $RPM_BUILD_ROOT%{_datadir}/{kservicetypes5,knotifications5,kservices5/{ServiceMenus,kded,searchproviders},kxmlgui5} \
b2906d34 23 $RPM_BUILD_ROOT%{_datadir}/kpackage \
0d0fe565 24 $RPM_BUILD_ROOT%{_datadir}/kstyle/themes \
b2906d34 25 $RPM_BUILD_ROOT%{_datadir}/plasma/{look-and-feel,packages,plasmoids,shells} \
2742cd25 26 $RPM_BUILD_ROOT%{_datadir}/remoteview \
efdcb4b4 27 $RPM_BUILD_ROOT%{_datadir}/solid/actions \
1727e604 28 $RPM_BUILD_ROOT%{_datadir}/solid/devices \
e65276ca
AM
29 $RPM_BUILD_ROOT%{_datadir}/emoticons/Glass \
30 $RPM_BUILD_ROOT%{_libdir}/kf5 \
d8ce9448 31 $RPM_BUILD_ROOT%{_libdir}/qt5/plugins/kf5/{kded,parts,urifilters,org.kde.kwindowsystem.platforms} \
9b4a7cc4 32 $RPM_BUILD_ROOT%{_libdir}/qt5/plugins/{org.kde.kdecoration2,script,styles} \
c6bedf9a 33 $RPM_BUILD_ROOT%{_libdir}/qt5/qml/org/kde/{kconfig,kio,draganddrop,kcoreaddons,kquickcontrols,kquickcontrolsaddons,kwindowsystem,private/kquickcontrols,runnermodel} \
2742cd25 34 $RPM_BUILD_ROOT%{_libdir}/qt5/qml/org/kde/plasma/private \
b710d62d 35 $RPM_BUILD_ROOT%{_libdir}/qt5/qml/QtQuick/Controls/Styles \
e65276ca
AM
36 $RPM_BUILD_ROOT%{_libdir}/qt5/platformqml/touch/org/kde/plasma \
37 $RPM_BUILD_ROOT%{_docdir}/HTML/{af,ca,cs,da,de,el,en,eo,es,et,fr,gl,he,hu,it,ja,ko,lt,nds,nl,nn,pl,pt,ro,ru,sl,sr,sv,tr,uk,wa,xh} \
38 $RPM_BUILD_ROOT%{_sysconfdir}/xdg/ui
39
40
41%clean
42cd $RPM_BUILD_ROOT
43check_filesystem_dirs() {
44 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
45 TMPFILE=$(mktemp)
46 # NOTE: we must exclude from check all existing dirs belonging to FHS
cf8a2d9d 47 find | sed -e 's|^\.||g' -e 's|^$||g' | LC_ALL=C sort | grep -v $TMPFILE | grep -E -v '^/(usr|usr/include|usr/lib|usr/lib64|usr/libx32|usr/share|usr/share/doc|usr/share/applications|usr/share/icons|usr/lib/qt5|usr/lib64/qt5|usr/libx32/qt5|usr/lib/qt5/imports|usr/lib64/qt5/imports|usr/libx32/qt5/imports|usr/lib/qt5/imports/org|usr/lib64/qt5/imports/org|usr/libx32/qt5/imports/org|usr/lib/qt5/plugins|usr/lib64/qt5/plugins|usr/libx32/qt5/plugins|usr/lib/qt5/qml|usr/lib64/qt5/qml|usr/libx32/qt5/qml|usr/lib/qt5/qml/QtQuick|usr/lib64/qt5/qml/QtQuick|usr/libx32/qt5/qml/QtQuick|etc|etc/xdg)$' > $TMPFILE
e65276ca
AM
48
49 # find finds also '.', so use option -B for diff
50 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | LC_ALL=C sort | diff -uB $TMPFILE -; then
51 rm -rf $RPM_BUILD_ROOT
52 else
53 echo -e "\nNot so good, some directories are not included in package\n"
54 exit 1
55 fi
56 rm -f $TMPFILE
57}
58check_filesystem_dirs
59
60%files
61%defattr(644,root,root,755)
62%dir %{_includedir}/KF5
63%dir %{_datadir}/emoticons
64%dir %{_datadir}/emoticons/Glass
65%dir %{_datadir}/kf5
66%dir %{_datadir}/kf5/kcookiejar
ec38a98f 67%dir %{_datadir}/kf5/locale
b621bda6
AM
68%dir %{_datadir}/kf5/widgets
69%dir %{_datadir}/kf5/widgets/pics
e65276ca
AM
70%dir %{_datadir}/kservicetypes5
71%dir %{_datadir}/kservices5
a82232bf 72%dir %{_datadir}/kservices5/ServiceMenus
e65276ca
AM
73%dir %{_datadir}/kservices5/kded
74%dir %{_datadir}/kservices5/searchproviders
75%dir %{_datadir}/knotifications5
76%dir %{_datadir}/kxmlgui5
b2906d34 77%dir %{_datadir}/kpackage
0d0fe565
AM
78%dir %{_datadir}/kstyle
79%dir %{_datadir}/kstyle/themes
80%dir %{_datadir}/plasma
81%dir %{_datadir}/plasma/look-and-feel
b2906d34 82%dir %{_datadir}/plasma/packages
2742cd25 83%dir %{_datadir}/plasma/plasmoids
b2906d34 84%dir %{_datadir}/plasma/shells
2742cd25 85%dir %{_datadir}/remoteview
efdcb4b4
AM
86%dir %{_datadir}/solid
87%dir %{_datadir}/solid/actions
1727e604 88%dir %{_datadir}/solid/devices
e65276ca 89%dir %{_libdir}/kf5
0d0fe565 90%dir %{_libdir}/qt5/plugins/org.kde.kdecoration2
9b4a7cc4 91%dir %{_libdir}/qt5/plugins/script
0d0fe565 92%dir %{_libdir}/qt5/plugins/styles
e65276ca
AM
93%dir %{_libdir}/qt5/plugins/kf5
94%dir %{_libdir}/qt5/plugins/kf5/kded
d8ce9448 95%dir %{_libdir}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms
e65276ca
AM
96%dir %{_libdir}/qt5/plugins/kf5/parts
97%dir %{_libdir}/qt5/plugins/kf5/urifilters
b710d62d
AM
98%dir %{_libdir}/qt5/qml/QtQuick/Controls
99%dir %{_libdir}/qt5/qml/QtQuick/Controls/Styles
e65276ca
AM
100%dir %{_libdir}/qt5/qml/org
101%dir %{_libdir}/qt5/qml/org/kde
102%dir %{_libdir}/qt5/qml/org/kde/kio
103%dir %{_libdir}/qt5/qml/org/kde/draganddrop
c6bedf9a 104%dir %{_libdir}/qt5/qml/org/kde/kconfig
e65276ca
AM
105%dir %{_libdir}/qt5/qml/org/kde/kcoreaddons
106%dir %{_libdir}/qt5/qml/org/kde/kquickcontrols
107%dir %{_libdir}/qt5/qml/org/kde/kquickcontrolsaddons
21524076 108%dir %{_libdir}/qt5/qml/org/kde/kwindowsystem
2742cd25
AM
109%dir %{_libdir}/qt5/qml/org/kde/plasma
110%dir %{_libdir}/qt5/qml/org/kde/plasma/private
e65276ca
AM
111%dir %{_libdir}/qt5/qml/org/kde/private
112%dir %{_libdir}/qt5/qml/org/kde/private/kquickcontrols
113%dir %{_libdir}/qt5/qml/org/kde/runnermodel
114%dir %{_libdir}/qt5/platformqml
115%dir %{_libdir}/qt5/platformqml/touch
116%dir %{_libdir}/qt5/platformqml/touch/org
117%dir %{_libdir}/qt5/platformqml/touch/org/kde
118%dir %{_libdir}/qt5/platformqml/touch/org/kde/plasma
119%dir %{_sysconfdir}/xdg/ui
120%dir %{_docdir}/HTML/
121%lang(af) %dir %{_docdir}/HTML/af
122%lang(ca) %dir %{_docdir}/HTML/ca
123%lang(cs) %dir %{_docdir}/HTML/cs
124%lang(da) %dir %{_docdir}/HTML/da
125%lang(de) %dir %{_docdir}/HTML/de
126%lang(el) %dir %{_docdir}/HTML/el
127%lang(en) %dir %{_docdir}/HTML/en
128%lang(eo) %dir %{_docdir}/HTML/eo
129%lang(es) %dir %{_docdir}/HTML/es
130%lang(et) %dir %{_docdir}/HTML/et
131%lang(fr) %dir %{_docdir}/HTML/fr
132%lang(gl) %dir %{_docdir}/HTML/gl
133%lang(he) %dir %{_docdir}/HTML/he
134%lang(hu) %dir %{_docdir}/HTML/hu
135%lang(it) %dir %{_docdir}/HTML/it
136%lang(ja) %dir %{_docdir}/HTML/ja
137%lang(ko) %dir %{_docdir}/HTML/ko
138%lang(lt) %dir %{_docdir}/HTML/lt
139%lang(nds) %dir %{_docdir}/HTML/nds
140%lang(nl) %dir %{_docdir}/HTML/nl
141%lang(nn) %dir %{_docdir}/HTML/nn
142%lang(pl) %dir %{_docdir}/HTML/pl
143%lang(pt) %dir %{_docdir}/HTML/pt
144%lang(ro) %dir %{_docdir}/HTML/ro
145%lang(ru) %dir %{_docdir}/HTML/ru
146%lang(sl) %dir %{_docdir}/HTML/sl
147%lang(sr) %dir %{_docdir}/HTML/sr
148%lang(sv) %dir %{_docdir}/HTML/sv
149%lang(tr) %dir %{_docdir}/HTML/tr
150%lang(uk) %dir %{_docdir}/HTML/uk
151%lang(wa) %dir %{_docdir}/HTML/wa
152%lang(xh) %dir %{_docdir}/HTML/xh
This page took 0.45605 seconds and 4 git commands to generate.