# # spec file for package libcapi20 # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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: libcapi20 %define lname libcapi20-3 Summary: Modular library to use remote CAPI devices Version: 3.0.7 Release: 15.2 License: GPL-2.0 Group: Hardware/Fax URL: http://www.tabos.org Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf Patch1: libcapi20-shlib-policy-nonversioned-dir.patch Patch2: capi20.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig BuildRequires: intltool BuildRequires: libtool %description libcapi20 is a modular library which enables to use remote CAPI devices over TCP. It currently supports remote CAPI via FRITZ!Box or Melware. %package -n %{lname} Summary: Modular library to use remote CAPI devices Group: Hardware/Fax License: GPL-2.0 %description -n %{lname} libcapi20 is a modular library which enables to use remote CAPI devices over TCP. It currently supports remote CAPI via FRITZ!Box or Melware. %package devel License: GPL-2.0 Summary: Header files for libcapi20 Group: Development/Languages/C and C++ Requires: %{lname} = %{version} %description devel Header files for libcapi20 needed to compile programs against the library. %prep %setup -qn capi20 %patch1 -p1 %patch2 -p1 %build autoreconf -fiv %configure \ %ifarch %ix86 --enable-mmx \ %endif %ifarch x86_64 --enable-sse --enable-sse2 \ %endif --disable-static \ --libexecdir=%{_libdir}/%{name} make %{?_smp_mflags} %install %make_install mkdir %{buildroot}/%{_sysconfdir} #%%__install -m755 %%{SOURCE1} %%{buildroot}/%%{_sysconfdir}/capi20.conf find "%buildroot" -name "*.la" -delete %clean rm -rf "$RPM_BUILD_ROOT" %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %defattr(-,root,root) %{_libdir}/*.so.* %dir %{_libdir}/%{name} %{_libdir}/%{name}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/%{name}/*.so %{_libdir}/pkgconfig/capi20.pc %changelog * Tue Oct 23 2012 opensuse@sukimashita.com - Update to version 3.0.7 - Clean up spec file - Try to apple openSUSE shared library packaging guidelines * Fri Jul 6 2012 ecsos@schirra.net - Update to 3.0.7 - changelog to libcapi20.changes * Sat Nov 19 2011 ecsos@schirra.net - Update for openSUSE 12.1 * Wed Oct 14 2009 Michael Otto 3.0.5a-1 - initial build for osb