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