File argus-pepcli.spec of Package argus-pepcli
%global base_version 2.2.0
%global base_release 2
%if %{?build_number:1}%{!?build_number:0}
%define release_version 0.build.%{build_number}
%else
%define release_version %{base_release}
%endif
Name: argus-pepcli
Version: %{base_version}
Release: %{release_version}%{?dist}
Summary: Argus pepcli command line
License: Apache-2.0
Group: Development/Tools/Debuggers
URL: https://twiki.cern.ch/twiki/bin/view/EGEE/AuthorizationFramework
Source: %{name}-%{version}.tar.gz
Patch0: log_c.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: argus-pep-api-c-devel
%description
Argus PEP client command line interface: pepcli
The Argus PEP client command line interface is used to communicate
with the Argus PEP Server. It authorizes request and receives
authorization response back from Argus.
%prep
%setup -q
%patch0 -p0
%build
%configure
# The following two lines were suggested by
# https://fedoraproject.org/wiki/Packaging/Guidelines to prevent any
# RPATHs creeping in.
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
strip -s -v %{buildroot}%{_bindir}/pepcli
# clean up installed documentation files
rm -rf ${RPM_BUILD_ROOT}/usr/share/doc/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/pepcli
%{_mandir}/man1/pepcli.1.gz
%doc COPYING LICENSE TODO ChangeLog
%changelog
* Mon Feb 8 2016 Andrea Ceccanti <andrea.ceccanti@cnaf.infn.it> 2.2.0-2
- Repackaged with new packaging scripts.
* Tue Nov 20 2012 Valery Tschopp <valery.tschopp@switch.ch> 2.2.0-1
- Upstream version 2.2.0 for EMI-3.
* Fri Aug 3 2012 Valery Tschopp <valery.tschopp@switch.ch> 2.1.1-1
- Self managed managed packaging with spec file.
* Tue Apr 3 2012 Valery Tschopp <valery.tschopp@switch.ch> 2.1.0-2
- Initial Argus pepcli command for EMI 2.