- rel 1
[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
5Version: 0.1
f2f0e20c 6Release: 1
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 \
21 $RPM_BUILD_ROOT%{_datadir}/{kf5/kcookiejar,kservicetypes5,knotifications5,kservices5/{kded,searchproviders},kxmlgui5} \
22 $RPM_BUILD_ROOT%{_datadir}/emoticons/Glass \
23 $RPM_BUILD_ROOT%{_libdir}/kf5 \
24 $RPM_BUILD_ROOT%{_libdir}/qt5/plugins/kf5/{kded,parts,urifilters} \
21524076 25 $RPM_BUILD_ROOT%{_libdir}/qt5/qml/org/kde/{kio,draganddrop,kcoreaddons,kquickcontrols,kquickcontrolsaddons,kwindowsystem,private/kquickcontrols,runnermodel} \
b710d62d 26 $RPM_BUILD_ROOT%{_libdir}/qt5/qml/QtQuick/Controls/Styles \
e65276ca
AM
27 $RPM_BUILD_ROOT%{_libdir}/qt5/platformqml/touch/org/kde/plasma \
28 $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} \
29 $RPM_BUILD_ROOT%{_sysconfdir}/xdg/ui
30
31
32%clean
33cd $RPM_BUILD_ROOT
34check_filesystem_dirs() {
35 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
36 TMPFILE=$(mktemp)
37 # NOTE: we must exclude from check all existing dirs belonging to FHS
b710d62d 38 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/share|usr/share/doc|usr/share/applications|usr/share/icons|usr/lib/qt5|usr/lib64/qt5|usr/lib/qt5/imports|usr/lib64/qt5/imports|usr/lib/qt5/imports/org|usr/lib64/qt5/imports/org|usr/lib/qt5/plugins|usr/lib64/qt5/plugins|usr/lib/qt5/qml|usr/lib64/qt5/qml|usr/lib/qt5/qml/QtQuick|usr/lib64/qt5/qml/QtQuick|etc|etc/xdg)$' > $TMPFILE
e65276ca
AM
39
40 # find finds also '.', so use option -B for diff
41 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | LC_ALL=C sort | diff -uB $TMPFILE -; then
42 rm -rf $RPM_BUILD_ROOT
43 else
44 echo -e "\nNot so good, some directories are not included in package\n"
45 exit 1
46 fi
47 rm -f $TMPFILE
48}
49check_filesystem_dirs
50
51%files
52%defattr(644,root,root,755)
53%dir %{_includedir}/KF5
54%dir %{_datadir}/emoticons
55%dir %{_datadir}/emoticons/Glass
56%dir %{_datadir}/kf5
57%dir %{_datadir}/kf5/kcookiejar
58%dir %{_datadir}/kservicetypes5
59%dir %{_datadir}/kservices5
60%dir %{_datadir}/kservices5/kded
61%dir %{_datadir}/kservices5/searchproviders
62%dir %{_datadir}/knotifications5
63%dir %{_datadir}/kxmlgui5
64%dir %{_libdir}/kf5
65%dir %{_libdir}/qt5/plugins/kf5
66%dir %{_libdir}/qt5/plugins/kf5/kded
67%dir %{_libdir}/qt5/plugins/kf5/parts
68%dir %{_libdir}/qt5/plugins/kf5/urifilters
b710d62d
AM
69%dir %{_libdir}/qt5/qml/QtQuick/Controls
70%dir %{_libdir}/qt5/qml/QtQuick/Controls/Styles
e65276ca
AM
71%dir %{_libdir}/qt5/qml/org
72%dir %{_libdir}/qt5/qml/org/kde
73%dir %{_libdir}/qt5/qml/org/kde/kio
74%dir %{_libdir}/qt5/qml/org/kde/draganddrop
75%dir %{_libdir}/qt5/qml/org/kde/kcoreaddons
76%dir %{_libdir}/qt5/qml/org/kde/kquickcontrols
77%dir %{_libdir}/qt5/qml/org/kde/kquickcontrolsaddons
21524076 78%dir %{_libdir}/qt5/qml/org/kde/kwindowsystem
e65276ca
AM
79%dir %{_libdir}/qt5/qml/org/kde/private
80%dir %{_libdir}/qt5/qml/org/kde/private/kquickcontrols
81%dir %{_libdir}/qt5/qml/org/kde/runnermodel
82%dir %{_libdir}/qt5/platformqml
83%dir %{_libdir}/qt5/platformqml/touch
84%dir %{_libdir}/qt5/platformqml/touch/org
85%dir %{_libdir}/qt5/platformqml/touch/org/kde
86%dir %{_libdir}/qt5/platformqml/touch/org/kde/plasma
87%dir %{_sysconfdir}/xdg/ui
88%dir %{_docdir}/HTML/
89%lang(af) %dir %{_docdir}/HTML/af
90%lang(ca) %dir %{_docdir}/HTML/ca
91%lang(cs) %dir %{_docdir}/HTML/cs
92%lang(da) %dir %{_docdir}/HTML/da
93%lang(de) %dir %{_docdir}/HTML/de
94%lang(el) %dir %{_docdir}/HTML/el
95%lang(en) %dir %{_docdir}/HTML/en
96%lang(eo) %dir %{_docdir}/HTML/eo
97%lang(es) %dir %{_docdir}/HTML/es
98%lang(et) %dir %{_docdir}/HTML/et
99%lang(fr) %dir %{_docdir}/HTML/fr
100%lang(gl) %dir %{_docdir}/HTML/gl
101%lang(he) %dir %{_docdir}/HTML/he
102%lang(hu) %dir %{_docdir}/HTML/hu
103%lang(it) %dir %{_docdir}/HTML/it
104%lang(ja) %dir %{_docdir}/HTML/ja
105%lang(ko) %dir %{_docdir}/HTML/ko
106%lang(lt) %dir %{_docdir}/HTML/lt
107%lang(nds) %dir %{_docdir}/HTML/nds
108%lang(nl) %dir %{_docdir}/HTML/nl
109%lang(nn) %dir %{_docdir}/HTML/nn
110%lang(pl) %dir %{_docdir}/HTML/pl
111%lang(pt) %dir %{_docdir}/HTML/pt
112%lang(ro) %dir %{_docdir}/HTML/ro
113%lang(ru) %dir %{_docdir}/HTML/ru
114%lang(sl) %dir %{_docdir}/HTML/sl
115%lang(sr) %dir %{_docdir}/HTML/sr
116%lang(sv) %dir %{_docdir}/HTML/sv
117%lang(tr) %dir %{_docdir}/HTML/tr
118%lang(uk) %dir %{_docdir}/HTML/uk
119%lang(wa) %dir %{_docdir}/HTML/wa
120%lang(xh) %dir %{_docdir}/HTML/xh
This page took 0.053121 seconds and 4 git commands to generate.