2024-01-06 03:59:02 +01:00
|
|
|
Name: libcfg+
|
2024-01-06 03:59:03 +01:00
|
|
|
Version: 0.7.0
|
|
|
|
Release: 1mamba
|
2024-01-06 03:59:02 +01:00
|
|
|
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+
|
2024-01-06 03:59:03 +01:00
|
|
|
Source: http://opensource.platon.org/upload/_projects/00003/libcfg+-%{version}.tar.gz
|
2024-01-06 03:59:02 +01:00
|
|
|
License: GPL
|
2024-01-06 03:59:03 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 03:59:02 +01:00
|
|
|
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).
|
2024-01-06 03:59:03 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 03:59:02 +01:00
|
|
|
|
2024-01-06 03:59:03 +01:00
|
|
|
%debug_package
|
2024-01-06 03:59:02 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%make \
|
2024-01-06 03:59:03 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
CFLAGS="%{optflags} -fpic -fPIC -fno-stack-protector" \
|
|
|
|
%else
|
2024-01-06 03:59:02 +01:00
|
|
|
CFLAGS="%{optflags} -fpic -fPIC" \
|
2024-01-06 03:59:03 +01:00
|
|
|
%endif
|
2024-01-06 03:59:02 +01:00
|
|
|
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)
|
2024-01-06 03:59:03 +01:00
|
|
|
%{_libdir}/libcfg+.so.*
|
2024-01-06 03:59:02 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*.h
|
2024-01-06 03:59:03 +01:00
|
|
|
%dir %{_includedir}/platon
|
2024-01-06 03:59:02 +01:00
|
|
|
%{_includedir}/platon/*.h
|
2024-01-06 03:59:03 +01:00
|
|
|
%{_libdir}/libcfg+.a
|
|
|
|
%{_libdir}/libcfg+.so
|
2024-01-06 03:59:02 +01:00
|
|
|
%{_mandir}/man3/*
|
2024-01-06 03:59:03 +01:00
|
|
|
%dir %{_datadir}/doc/libcfg+-%{version}
|
|
|
|
%{_datadir}/doc/libcfg+-%{version}/*
|
2024-01-06 03:59:02 +01:00
|
|
|
%doc ChangeLog README TODO
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 03:59:03 +01:00
|
|
|
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
|
|
|
|
- update to 0.7.0
|
|
|
|
|
2024-01-06 03:59:02 +01:00
|
|
|
* 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
|