Browse Source

upgrading package: libptytty 1.8 -> 2.0

master
parent
commit
0de47ad195
  1. 44
      libptytty/libptytty.spec

44
libptytty/libptytty.spec

@ -31,14 +31,14 @@ Distribution: OpenPKG Community
Class: EVAL Class: EVAL
Group: System Group: System
License: GPL License: GPL
Version: 1.8 Version: 2.0
Release: 20160306 Release: 20210828
# list of sources # list of sources
Source0: http://dist.schmorp.de/libptytty/libptytty-%{version}.tar.gz Source0: http://dist.schmorp.de/libptytty/libptytty-%{version}.tar.gz
# build information # build information
BuildPreReq: OpenPKG, openpkg >= 20160101, gcc, gcc::with_cxx = yes, make BuildPreReq: OpenPKG, openpkg >= 20160101, gcc, gcc::with_cxx = yes, make, cmake
PreReq: OpenPKG, openpkg >= 20160101 PreReq: OpenPKG, openpkg >= 20160101
%description %description
@ -56,20 +56,34 @@ PreReq: OpenPKG, openpkg >= 20160101
%setup -q %setup -q
%build %build
CC="%{l_cc}" \ mkdir build
CXX="%{l_cxx}" \ cd build
CFLAGS="%{l_cflags -O}" \ cmake \
CXXFLAGS="%{l_cxxflags -O}" \ -Wno-dev \
CPPFLAGS="%{l_cppflags}" \ -DCMAKE_BUILD_TYPE="Release" \
LDFLAGS="%{l_ldflags}" \ -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \
./configure \ -DCMAKE_C_COMPILER="%{l_cc}" \
--prefix=%{l_prefix} \ -DCMAKE_C_FLAGS="%{l_cflags} %{l_cppflags}" \
--mandir=%{l_prefix}/man \ -DCMAKE_CXX_COMPILER="%{l_cxx}" \
--disable-shared -DCMAKE_CXX_FLAGS="%{l_cxxflags} %{l_cppflags}" \
%{l_make} %{l_mflags -O} -DCMAKE_EXE_LINKER_FLAGS="%{l_ldflags}" \
-DBUILD_SHARED_LIBS=OFF \
..
%{l_make} %{l_mflags}
%install %install
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/lib \
$RPM_BUILD_ROOT%{l_prefix}/include \
$RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
%{l_shtool} install -c -s -m 775 \
build/libptytty.a $RPM_BUILD_ROOT%{l_prefix}/lib/
%{l_shtool} install -c -m 644 \
src/libptytty.h \
$RPM_BUILD_ROOT%{l_prefix}/include/
%{l_shtool} install -c -m 644 \
build/libptytty.pc $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files %files -f files

Loading…
Cancel
Save