LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libticonv.spec of Package libticonv (Project home:napobear:TILP)

#
# spec file for package libticonv
#
# Copyright (c) 2012-2014 Malcolm Lewis malcolmlewis@opensuse.org
# Copyright (c) 2015 Fabian Vogt fabian@ritter-vogt.de
#
# 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.

%define         soname 8

Name:           libticonv
Version:        1.1.5
Release:        0
License:        GPL-2.0+
Summary:        Library for TiLP2
Url:            http://lpg.ticalc.org/prj_tilp/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gcc
BuildRequires:  tfdocgen
BuildRequires:  libtool
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  pkgconfig(glib-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library is part of the TILP framework by Romain Liévin et al.

%package devel
Summary:        Development files for libticonv
Group:          Development/Libraries/Other
Requires:       %{name}%{soname} = %{version}

%description devel
This library is part of the TILP framework by Romain Liévin et al.

%package -n %{name}%{soname}
Summary:        Library for TiLP2
Group:          System/Libraries

%description -n %{name}%{soname}
This library is part of the TILP framework by Romain Liévin et al.

%prep
%setup -q

%build
mkdir -p m4
autoreconf -i -f
%configure
make %{?_smp_mflags}

%install
%makeinstall
# Fix docdir as we'll package them as rpm docs
rm -r %{buildroot}%{_datadir}/doc/%{name}
# Clean up
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%post -n %{name}%{soname} -p /sbin/ldconfig

%postun -n %{name}%{soname} -p /sbin/ldconfig

%files -n %{name}%{soname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%doc docs/html/*.html docs/html/*.gif
%doc docs/charsets/*.png
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/tilp2
%{_includedir}/tilp2/
%{_libdir}/libticonv.so
%{_libdir}/pkgconfig/ticonv.pc

%changelog