set soname to prevent from linking to libcfg+.so [release 0.6.2-6mamba;Mon Apr 16 2012]
This commit is contained in:
parent
031ee71310
commit
1674ed33a5
@ -1,2 +1,4 @@
|
||||
# libcfgPlus
|
||||
# libcfg+
|
||||
|
||||
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).
|
||||
|
||||
|
85
libcfg+.spec
Normal file
85
libcfg+.spec
Normal file
@ -0,0 +1,85 @@
|
||||
Name: libcfg+
|
||||
Version: 0.6.2
|
||||
Release: 6mamba
|
||||
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://platon.sk/upload/_projects/00003/%{name}-%{version}.tar.gz
|
||||
License: GPL
|
||||
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 need for development.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make \
|
||||
CFLAGS="%{optflags} -fpic -fPIC" \
|
||||
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}/*.so.*
|
||||
%doc AUTHORS COPYING
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*.h
|
||||
%{_includedir}/platon/*.h
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/*.so
|
||||
%{_mandir}/man3/*
|
||||
%doc ChangeLog README TODO
|
||||
|
||||
%changelog
|
||||
* 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
|
Loading…
Reference in New Issue
Block a user