pkg/rpm: update spec file to build on opensuse
This commit is contained in:
parent
d16efe92c0
commit
adcc7020bf
@ -15,9 +15,9 @@ Summary: Free implementation of the Remote Desktop Protocol (RDP)
|
|||||||
Url: http://www.freerdp.com
|
Url: http://www.freerdp.com
|
||||||
Group: Productivity/Networking/Other
|
Group: Productivity/Networking/Other
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}-rpmlintrc
|
#Source1: %{name}-rpmlintrc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: libxkbfile-devel
|
BuildRequires: libxkbfile-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libXrandr-devel
|
BuildRequires: libXrandr-devel
|
||||||
@ -107,12 +107,14 @@ based on freerdp and winpr.
|
|||||||
-DBUILD_TESTING=OFF \
|
-DBUILD_TESTING=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
|
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{INSTALL_PREFIX} \
|
-DCMAKE_INSTALL_PREFIX=%{INSTALL_PREFIX} \
|
||||||
|
%if %{defined suse_version}
|
||||||
|
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
||||||
|
%endif
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%if %{defined suse_version}
|
%if %{defined suse_version}
|
||||||
%cmake_install
|
%cmake_install
|
||||||
%endif
|
%endif
|
||||||
@ -127,6 +129,12 @@ export NO_BRP_CHECK_RPATH true
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%dir %{INSTALL_PREFIX}
|
||||||
|
%dir %{INSTALL_PREFIX}/%{_lib}
|
||||||
|
%dir %{INSTALL_PREFIX}/bin
|
||||||
|
%dir %{INSTALL_PREFIX}/share/
|
||||||
|
%dir %{INSTALL_PREFIX}/share/man/
|
||||||
|
%dir %{INSTALL_PREFIX}/share/man/man1
|
||||||
%{INSTALL_PREFIX}/%{_lib}/*.so.*
|
%{INSTALL_PREFIX}/%{_lib}/*.so.*
|
||||||
%{INSTALL_PREFIX}/bin/
|
%{INSTALL_PREFIX}/bin/
|
||||||
%{INSTALL_PREFIX}/share/man/man1/xfreerdp.1*
|
%{INSTALL_PREFIX}/share/man/man1/xfreerdp.1*
|
||||||
@ -138,6 +146,12 @@ export NO_BRP_CHECK_RPATH true
|
|||||||
%{INSTALL_PREFIX}/%{_lib}/pkgconfig/
|
%{INSTALL_PREFIX}/%{_lib}/pkgconfig/
|
||||||
%{INSTALL_PREFIX}/%{_lib}/cmake/
|
%{INSTALL_PREFIX}/%{_lib}/cmake/
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jan 23 2015 Bernhard Miklautz <bmiklautz+freerdp@shacknet.at> - 1.2.0-0
|
* Fri Jan 23 2015 Bernhard Miklautz <bmiklautz+freerdp@shacknet.at> - 1.2.0-0
|
||||||
- Initial version
|
- Initial version
|
||||||
|
Loading…
Reference in New Issue
Block a user