Name: @PACKAGE@ Version: @PACKAGE_VERSION@ Release: 1 Summary: Log for C++, Shibboleth Edition License: LGPL Group: Development/Libraries Vendor: Shibboleth Consortium URL: http://shibboleth.net/downloads/@PACKAGE_NAME@/@PACKAGE_VERSION@ Source: %name-%version.tar.gz BuildRoot: %_tmppath/%name-%version-root BuildRequires: gcc-c++ %{!?_without_doxygenrpm:BuildRequires: doxygen} %if "%{_vendor}" == "redhat" BuildRequires: redhat-rpm-config %endif %if "%{_vendor}" == "suse" %define pkgdocdir %{_docdir}/%{name} %else %define pkgdocdir %{_docdir}/%{name}-%{version} %endif %description Log for C++ is a library of classes for flexible logging to files, syslog, and other destinations. It is modeled after the Log for Java library and stays as close to its API as is reasonable. %package -n lib@PACKAGE_NAME@1 Summary: Log for C++, Shibboleth Edition Group: Development/Libraries Provides: @PACKAGE_NAME@ = %{version}-%{release} Obsoletes: @PACKAGE_NAME@ < %{version}-%{release} %description -n lib@PACKAGE_NAME@1 Log for C++ is a library of classes for flexible logging to files, syslog, and other destinations. It is modeled after the Log for Java library and stays as close to its API as is reasonable. This package contains just the shared library. %package -n lib@PACKAGE_NAME@-devel Summary: Development tools for Log for C++ Group: Development/Libraries Requires: lib@PACKAGE_NAME@1 = %{version}-%{release} Provides: @PACKAGE_NAME@-devel = %{version}-%{release} Obsoletes: @PACKAGE_NAME@-devel < %{version}-%{release} %description -n lib@PACKAGE_NAME@-devel The static libraries and header files needed for development with @PACKAGE_NAME@. %prep %setup -q %build %configure %{!?_without_doxygenrpm:--enable-doxygen} %{?_without_doxygenrpm:--disable-doxygen} %{__make} %install %{__make} DESTDIR=$RPM_BUILD_ROOT apidir=$RPM_BUILD_ROOT%{pkgdocdir}/api install # If we use %doc down below to package the README files from the build tree, # it will blow away the package's docdir folder, and the installed API docs with it. # Instead, copy the README files manually into the platform's docdir. config/install-sh -d $RPM_BUILD_ROOT%{pkgdocdir} config/install-sh -m 644 -c AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog $RPM_BUILD_ROOT%{pkgdocdir} %clean [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT %ifnos solaris2.8 solaris2.9 solaris2.10 %post -n lib@PACKAGE_NAME@1 -p /sbin/ldconfig %endif %post -n lib@PACKAGE_NAME@-devel if test "x$RPM_INSTALL_PREFIX0" != "x" ; then %{__perl} -pi -e"s|^prefix=\"[^\"]*\"|prefix=\"$RPM_INSTALL_PREFIX0\"|" $RPM_INSTALL_PREFIX0/bin/@PACKAGE_NAME@-config fi %ifnos solaris2.8 solaris2.9 solaris2.10 %postun -n lib@PACKAGE_NAME@1 -p /sbin/ldconfig %endif %files -n lib@PACKAGE_NAME@1 %defattr(-,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so.* %files -n lib@PACKAGE_NAME@-devel %defattr(-,root,root,755) %{_includedir}/* %{!?_without_doxygenrpm:%{_mandir}/man?/*} %attr(755,root,root) %{_bindir}/@PACKAGE_NAME@-config %attr(755,root,root) %{_libdir}/*.so %attr(644,root,root) %{_libdir}/*.a %attr(644,root,root) %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc %dir %{_datadir}/aclocal %attr(644,root,root) %{_datadir}/aclocal/*.m4 %exclude %{_libdir}/*.la %doc %{pkgdocdir} %changelog * Thu May 23 2013 Scott Cantor - 1.0.6-1 - Patch to limit file handle leakage from prop-based configs * Sat Jul 21 2012 Scott Cantor - 1.0.5-1 - Fix Provides/Obsoletes versioning - Update Vendor and URL * Mon Dec 28 2009 Scott Cantor - 1.0.4-1 - Sync package naming to support side by side installs * Sat Oct 24 2009 Scott Cantor - 1.0.3-2 - Cleaned up specfile for OpenSUSE build service * Wed Aug 5 2009 Scott Cantor - 1.0.3-1 - Cleaned up specfile for OpenSUSE build service