Summary: C++ libraries for sockets and daemons, meta-package depending on individual subpackages. Name: fancylibs Version: __FANCY_VERSION__ Release: __FANCY_RELEASE__ License: LGPL Group: Libraries/C++ Source: http://www.ev-i.at/oss/fancylibs/SOURCES/fancylibs-%{version}.tar.gz BuildRequires: libxml2-devel mysql-devel openssl-devel libstdc++-devel glibc-devel perl gcc-c++ gcc BuildRoot: /var/tmp/%{name}-buildroot Requires: %{name}-fancylog1 = %{version} %{name}-fancybase1 = %{version} %{name}-fancysock1 = %{version} %{name}-fancyxmlsock1 = %{version} %{name}-fancywrap = %{version} %description %package fancylog1 Group: Libraries/C++ Requires: glibc Summary: fancylog is a logging library based on syslog. %description fancylog1 %package fancybase1 Group: Libraries/C++ Requires: libstdc++ %{name}-fancylog1 Summary: fancybase is a basic C++ library wrapping OS primitives. %description fancybase1 %package fancysock1 Group: Libraries/C++ Requires: %{name}-fancybase1 Summary: fancysock a basic C++ library implementing socket functionality on top of fancybase. %description fancysock1 %package fancyxmlsock1 Group: Libraries/C++ Requires: libxml2 %{name}-fancysock1 Summary: fancyxmlsock a basic C++ library implementing XML-over-socket facilities. %description fancyxmlsock1 %package fancywrap Group: Libraries/C++ Requires: %{name}-fancysock1 Summary: fancywrap allows to start executables as daemons in the background. %description fancywrap %package devel Group: Libraries/C++ Summary: This package contains files required to develop applications using the fancylibs libraries. Requires: %{name}-fancylog-devel = %{version} %{name}-fancybase-devel = %{version} %{name}-fancysock-devel = %{version} %{name}-fancyxmlsock-devel = %{version} %{name}-fancyssl-devel = %{version} %{name}-fancymysql-devel = %{version} %description devel %package fancylog-devel Group: Libraries/C++ Requires: glibc-devel %{name}-fancylog1 = %{version} Summary: Development package for fancylog. %description fancylog-devel %package fancybase-devel Group: Libraries/C++ Requires: libstdc++-devel %{name}-fancylog-devel = %{version} %{name}-fancybase1 = %{version} Summary: Development package for fancybase. %description fancybase-devel %package fancysock-devel Group: Libraries/C++ Requires: %{name}-fancybase-devel = %{version} %{name}-fancysock1 = %{version} Summary: Development package for fancysock. %description fancysock-devel %package fancyxmlsock-devel Group: Libraries/C++ Requires: libxml2-devel %{name}-fancysock-devel = %{version} %{name}-fancyxmlsock1 = %{version} Summary: Development package for fancyxmlsock. %description fancyxmlsock-devel %package fancyssl-devel Group: Libraries/C++ Requires: openssl-devel openssl %{name}-fancysock-devel = %{version} Summary: Development package for static library fancyssl. %description fancyssl-devel %package fancymysql-devel Group: Libraries/C++ Requires: mysql-devel mysql %{name}-fancybase-devel = %{version} Summary: Development package for static library fancymysql. %description fancymysql-devel %prep %setup -q cd build/unix/release ../../../src/scripts/config.pl\ DESTDIR=$RPM_BUILD_ROOT \ prefix=/usr \ -DCLIBS_INSTALL_PREFIX=\"/usr\" \ LIBSUBDIR=%{_lib} \ CFLAGS="$RPM_OPT_FLAGS" \ CXXFLAGS="$RPM_OPT_FLAGS" make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/usr/include mkdir -p $RPM_BUILD_ROOT/usr/%{_lib} cd build/unix/release make install %clean rm -rf $RPM_BUILD_ROOT %files fancylog1 %defattr(-,root,root) /usr/%{_lib}/libfancylog.so.1 %files fancybase1 %defattr(-,root,root) /usr/%{_lib}/libfancybase.so.1 %files fancysock1 %defattr(-,root,root) /usr/%{_lib}/libfancysock.so.1 %files fancyxmlsock1 %defattr(-,root,root) /usr/%{_lib}/libfancyxmlsock.so.1 %files fancywrap %defattr(-,root,root) /usr/sbin %files fancylog-devel %defattr(-,root,root) /usr/include/fancylog.h /usr/%{_lib}/libfancylog.so %files fancybase-devel %defattr(-,root,root) /usr/include/fancybase.h /usr/include/fancyexception.h /usr/include/fancytimeval.h /usr/include/fancybaselog.h /usr/include/fancysignal.h /usr/include/fancythread.h /usr/include/fancyfilehandle.h /usr/include/fancyprocess.h /usr/include/fancycache.h /usr/include/fancyconfig.h /usr/include/fancynumericconverter.h /usr/include/fancyarray.h /usr/include/fancyobject.h /usr/include/fancyptr.h /usr/%{_lib}/libfancybase.so %files fancysock-devel %defattr(-,root,root) /usr/include/fancysock*.h /usr/%{_lib}/libfancysock.so %files fancyxmlsock-devel %defattr(-,root,root) /usr/include/fancyxmlsock*.h /usr/%{_lib}/libfancyxmlsock.so %files fancyssl-devel %defattr(-,root,root) /usr/include/fancyssl*.h /usr/%{_lib}/libfancyssl.a %files fancymysql-devel %defattr(-,root,root) /usr/include/fancymysql*.h /usr/%{_lib}/libfancymysql.a %changelog