diff --git a/.cvsignore b/.cvsignore index e69de29..3b45806 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +commoncpp2-1.3.23.tar.gz diff --git a/commoncpp2-ldconfig.patch b/commoncpp2-ldconfig.patch new file mode 100644 index 0000000..a9cad60 --- /dev/null +++ b/commoncpp2-ldconfig.patch @@ -0,0 +1,27 @@ +--- commoncpp2-1.3.23/Makefile.in.ldconfig 2006-02-03 00:16:30.000000000 +0100 ++++ commoncpp2-1.3.23/Makefile.in 2006-02-05 13:27:06.334488968 +0100 +@@ -676,23 +676,7 @@ + (cd src ; make macosx) + + install-data-local: +- @if test -f /etc/ld.so.conf \ +- -a `echo $(libdir) | grep ^/usr`XXX != "XXX" ; then \ +- if ! grep -q "$(libdir)" /etc/ld.so.conf; then \ +- echo "------------------------------------------------------------------------------" ;\ +- echo "Hmm, looks like you forgot to add $(libdir) to /etc/ld.so.conf." ;\ +- echo "I'll try to fix it for you (but pay attention to libtool's output" ;\ +- echo "next time, ok?)" ;\ +- echo "$(libdir)" >> /etc/ld.so.conf && \ +- echo "Ok, all fixed." \ +- || \ +- (echo "" ;\ +- echo "Well, that didn't work. Remember to add $(libdir) to" ;\ +- echo "/etc/ld.so.conf if you want to use this library.") ;\ +- echo "------------------------------------------------------------------------------" ;\ +- ldconfig ;\ +- fi ;\ +- fi ++ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/commoncpp2.spec b/commoncpp2.spec new file mode 100644 index 0000000..4705856 --- /dev/null +++ b/commoncpp2.spec @@ -0,0 +1,87 @@ +Summary: GNU Common C++ class framework +Name: commoncpp2 +Version: 1.3.23 +Release: 1%{?dist} +License: GPL +Group: System Environment/Libraries +Source0: http://download.sourceforge.net/gnutelephony/commoncpp2-%{version}.tar.gz +Patch0: commoncpp2-ldconfig.patch +URL: http://www.gnu.org/software/commoncpp/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libxml2-devel, zlib-devel, doxygen + +%description +GNU Common C++ is a portable and highly optimized class framework for writing +C++ applications that need to use threads, sockets, XML parsing, +serialization, config files, etc. This framework offers a class foundation +that hides platform differences from your C++ application so that you need +not write platform specific code. GNU Common C++ has been ported to compile +natively on most platforms which support posix threads. + +%package devel +Summary: Header files and libraries for %{name} development +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig, libxml2-devel, zlib-devel +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +%description devel +The %{name}-devel package contains the header files and libraries needed +to develop programs that use the %{name} library. + + +%prep +%setup -q +%patch0 -p1 -b .ldconfig + +%build +%configure \ + --disable-static \ + --disable-dependency-tracking +%{__make} %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_infodir}/dir +find %{buildroot} -name '*.la' -exec rm -f {} \; + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%post -n %{name}-devel +/sbin/install-info %{_infodir}/commoncpp2.info %{_infodir}/dir || : + +%preun -n %{name}-devel +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/commoncpp2.info %{_infodir}/dir || : +fi + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING README ChangeLog +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%dir %{_includedir}/cc++2 +%{_includedir}/cc++2/* +%{_bindir}/ccgnu2-config +%{_libdir}/*.so +%{_libdir}/pkgconfig/libccext2.pc +%{_libdir}/pkgconfig/libccgnu2.pc +%{_datadir}/aclocal/ost_check2.m4 +%{_infodir}/commoncpp2.info* + +%changelog +* Sun Feb 05 2006 Andreas Thienemann 1.3.23-1 +- Incorporated suggestions for extras + +* Fri Feb 03 2006 Andreas Thienemann 1.3.22-1 +- Initial spec. diff --git a/sources b/sources index e69de29..a0410b1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7cf53157929876054cff3234f6ffaae7 commoncpp2-1.3.23.tar.gz