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