diff options
Diffstat (limited to 'redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec')
-rwxr-xr-x | redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec index 3a35c6866..1764eda3d 100755 --- a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec +++ b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec @@ -7,6 +7,9 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?_prefix}" != "/usr" %define _variant .opt +%define cmake_modules_dir %{_datadir}/cmake +%else +%define cmake_modules_dir %{_datadir}/cmake/Modules %endif # TQT include files may conflict with QT4 includes, so we move them to a subdirectory. @@ -77,9 +80,9 @@ sed -i %{?buildroot}%{_libdir}/pkgconfig/tqt.pc \ -e '/^uic_executable=.*/ s,^\(uic_executable=\).*,\1%{_bindir}/uic-tqt,' # Install 'cmake' modules for a specific package (for later use) -%__mkdir_p %{?buildroot}%{_usr}/share/cmake/Modules +%__mkdir_p %{?buildroot}%{cmake_modules_dir} for i in cmake/modules/*.cmake; do - install -m 644 $i %{?buildroot}%{_usr}/share/cmake/Modules + install -m 644 $i %{?buildroot}%{cmake_modules_dir} done %clean @@ -94,7 +97,7 @@ done %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc -%{_usr}/share/cmake/Modules/*.cmake +%{cmake_modules_dir}/*.cmake %changelog |