File tlve.spec of Package tlve

# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:               tlve
Version:            0.1.8
Release:            0
Summary:            Tagged-Length-Value Structure Parser
Source:             http://prdownloads.sourceforge.net/tlve/tlve-%{version}.tar.gz
URL:                http://tlve.sourceforge.net/
Group:              Development/Tools/Other
License:            GPL-2.0+
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      gcc make glibc-devel pkgconfig
BuildRequires:      autoconf automake libtool
BuildRequires:      update-desktop-files
Requires(post):     info
Requires(preun):    info

%description
tlve is a command-line tool to parse different tlv (tag-length-value)
structures and for printing them in different text-based formats. For example,
tlve supports ASN.1 BER encoding. tlve is appropriate for processing tlv files
in server environments.

%prep
%setup -q

%build
%configure
%__make %{?_smp_mflags}

%install
%makeinstall
%__rm -rf "%{buildroot}%{_datadir}/doc"
%__rm examples/Makefile*

%post
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info*

%postun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}".info*

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%doc examples
%{_bindir}/tlve
%doc %{_mandir}/man1/tlve.1*
%doc %{_infodir}/tlve.info*

%changelog
openSUSE Build Service is sponsored by