mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
51 lines
1.2 KiB
RPMSpec
51 lines
1.2 KiB
RPMSpec
Name: rsignclient_rpc
|
|
Summary: general client RPC for manage Remote Sign
|
|
Version: @VERSION@
|
|
Release: 1
|
|
Epoch: 0
|
|
License: LGPL
|
|
Group: Applications
|
|
URL: http://www.unirel.com
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
Provides: rsignclient_rpc
|
|
Packager: Stefano Casazza <stefano.casazza@unirel.com>
|
|
Requires: ULib
|
|
@RPM_REQUIRE@
|
|
|
|
%description
|
|
This package provides the program client for manage one general server RPC for manage Remote Sign
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
%configure @RPM_CONFIGURE@
|
|
cd src/ulib
|
|
make LDFLAGS="-s"
|
|
cd ../../contrib/RSIGN
|
|
make LDFLAGS="-s"
|
|
cd ../../examples/rsign
|
|
make LDFLAGS="-s"
|
|
cd ../..
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}/srv/RSIGN/bin
|
|
mkdir -p %{buildroot}/srv/RSIGN/lib
|
|
mkdir -p %{buildroot}/srv/RSIGN/etc
|
|
SRC=tests/examples
|
|
DST=%{buildroot}/srv/RSIGN
|
|
autoconf/install-sh -c -m 755 examples/rsign/.libs/rsignclient_rpc $DST/bin
|
|
autoconf/install-sh -c -m 644 contrib/RSIGN/.libs/RSIGN.so $DST/lib
|
|
autoconf/install-sh -c -m 644 $SRC/rsignclient_rpc.cfg $DST/etc/rsignclient_rpc.cfg.dist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
/srv/RSIGN/lib/RSIGN.so
|
|
/srv/RSIGN/bin/rsignclient_rpc
|
|
/srv/RSIGN/etc/rsignclient_rpc.cfg.dist
|