summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/agl-cmake-apps-module.spec
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-12-12 10:39:31 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-14 09:15:07 +0000
commitc631646116197507f59008bc4a4560c74756b342 (patch)
tree04e9f003e15837a43d27ee4e04d4ca7aeefc3583 /packaging/rpm/agl-cmake-apps-module.spec
parentc815f74207220e5e571fece7cbad00b7a39ae8c9 (diff)
Install docs and sample files in a separate dir
Separate the samples files to be installed in the system doc dir which is: - /usr/share/doc Updating the documentation according to the new path to samples. Change-Id: Ib1958fb87d517ad84abddf3ec71102f7ecf877f5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'packaging/rpm/agl-cmake-apps-module.spec')
-rw-r--r--packaging/rpm/agl-cmake-apps-module.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/rpm/agl-cmake-apps-module.spec b/packaging/rpm/agl-cmake-apps-module.spec
index 950514c..3124f97 100644
--- a/packaging/rpm/agl-cmake-apps-module.spec
+++ b/packaging/rpm/agl-cmake-apps-module.spec
@@ -33,7 +33,7 @@ framework binder apps.
%build
[ ! -d build ] && mkdir build
cd build
-cmake ..
+cmake -DCMAKE_INSTALL_PREFIX=/usr ..
%install
[ -d build ] && cd build
@@ -42,8 +42,14 @@ cmake ..
%files
%defattr(-,root,root)
%dir %{_datadir}/cmake/Modules/
+%dir %{_defaultdocdir}/CMakeAfbTemplates/
%{_datadir}/cmake/Modules/*
+%{_defaultdocdir}/CMakeAfbTemplates/*
%changelog
+* Wed Dec 12 2018 Romain
+- Separation of docs files at installation
+- Fix the install prefix at build time
+
* Thu Nov 5 2018 Romain
- initial creation