libcfgPlus/libcfg+.spec

99 lines
3.3 KiB
RPMSpec

Name: libcfg+
Version: 0.7.0
Release: 1mamba
Summary: A C library that features multi- command line and configuration file parsing
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://platon.sk/projects/libcfg+
Source: http://opensource.platon.org/upload/_projects/00003/libcfg+-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: docbook >= 4.1.2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libcfg+ is a C library that features multi- command line and configuration file parsing. It is possible to set up various special properties such as quoting characters, deliminator strings, file comment prefixes, multi-line postfixes, and more. It supports many data types such as booleans, integers, decimal numbers, strings with many additional data type flags (such as multiple values for a single option).
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}
%description devel
libcfg+ is a C library that features multi- command line and configuration file parsing. It is possible to set up various special properties such as quoting characters, deliminator strings, file comment prefixes, multi-line postfixes, and more. It supports many data types such as booleans, integers, decimal numbers, strings with many additional data type flags (such as multiple values for a single option).
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
%build
%configure
%make \
%ifarch %{ix86}
CFLAGS="%{optflags} -fpic -fPIC -fno-stack-protector" \
%else
CFLAGS="%{optflags} -fpic -fPIC" \
%endif
LDFLAGS="-soname libcfg+.so.0" \
CC="%{_host}-gcc" \
AR="%{_host}-ar" \
LD="%{_host}-ld"
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
# fixup strange shared library permissions
chmod 755 %{buildroot}%{_libdir}/*.so*
ln -s libcfg+.so.%{version} %{buildroot}%{_libdir}/libcfg+.so.0
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libcfg+.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%dir %{_includedir}/platon
%{_includedir}/platon/*.h
%{_libdir}/libcfg+.a
%{_libdir}/libcfg+.so
%{_mandir}/man3/*
%dir %{_datadir}/doc/libcfg+-%{version}
%{_datadir}/doc/libcfg+-%{version}/*
%doc ChangeLog README TODO
%changelog
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- update to 0.7.0
* Mon Apr 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2-6mamba
- set soname to prevent from linking to libcfg+.so
* Sat Jul 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2-5mamba
- specfile updated
* Wed May 10 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.6.2-4qilnx
- fixed strange shared library permissions
* Wed Feb 15 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.6.2-3qilnx
- build libraries in PIC mode
* Tue Sep 14 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.6.2-2qilnx
- moved libcfg+.so library from devel package to main package
* Mon Sep 13 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2-1qilnx
- package created by autospec