diff --git a/.cvsignore b/.cvsignore index e69de29..46f90cb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mimetic-0.8.9.tar.gz diff --git a/mimetic-0.8.9-gcc41.patch b/mimetic-0.8.9-gcc41.patch new file mode 100644 index 0000000..69dd309 --- /dev/null +++ b/mimetic-0.8.9-gcc41.patch @@ -0,0 +1,30 @@ +--- mimetic-0.8.9/mimetic/utils.h.gcc41 2005-03-07 16:35:08.000000000 +0100 ++++ mimetic-0.8.9/mimetic/utils.h 2005-12-25 22:56:59.000000000 +0100 +@@ -56,13 +56,6 @@ + * returns an Iterator pointing at the first character of the found pattern + * or \p eit if the search fails + */ +-template +-Iterator find_bm(Iterator bit, Iterator eit, const std::string& word) +-{ +- return find_bm(bit, eit, word, +- typename std::iterator_traits::iterator_category()); +-} +- + // find_bm specialization for random access iterators + template + Iterator find_bm(Iterator bit, Iterator eit, const std::string& word, const std::random_access_iterator_tag&) +@@ -94,6 +87,13 @@ + return bit + i + 1; + } + ++template ++Iterator find_bm(Iterator bit, Iterator eit, const std::string& word) ++{ ++ return find_bm(bit, eit, word, ++ typename std::iterator_traits::iterator_category()); ++} ++ + + + } // ns utils diff --git a/mimetic-0.8.9-noconfigh.patch b/mimetic-0.8.9-noconfigh.patch new file mode 100644 index 0000000..d306307 --- /dev/null +++ b/mimetic-0.8.9-noconfigh.patch @@ -0,0 +1,37 @@ +Oct 24 2005 Enrico Scholz + * os/file.h, message.h: assume that HAVE_MMAP and HAVE_UNISTD_H are + '1'; this avoids problems when we are clearing + (which conflicts with autoconf/automake) later. Because this + patch is for a Fedora package, it is safe to assume that these + macros are set + +--- mimetic-0.8.9/mimetic/os/file.h.noconfigh 2005-02-23 11:26:15.000000000 +0100 ++++ mimetic-0.8.9/mimetic/os/file.h 2005-10-24 17:43:59.000000000 +0200 +@@ -23,14 +23,14 @@ + #include + #include + #include +-#ifdef HAVE_MMAP ++#if 1 + #include + #endif + + namespace mimetic + { + +-#if HAVE_MMAP == 1 ++#if 1 == 1 + typedef MMFile File; + #else + typedef StdFile File; +--- mimetic-0.8.9/mimetic/message.h.noconfigh 2005-03-07 16:35:08.000000000 +0100 ++++ mimetic-0.8.9/mimetic/message.h 2005-10-24 17:43:48.000000000 +0200 +@@ -21,7 +21,7 @@ + #include + #include + #include +-#ifdef HAVE_UNISTD_H ++#if 1 + #include + #endif + diff --git a/mimetic.spec b/mimetic.spec new file mode 100644 index 0000000..19376fa --- /dev/null +++ b/mimetic.spec @@ -0,0 +1,102 @@ +## $Id$ + +%{!?release_func:%global release_func() %1%{?dist}} + +Name: mimetic +Version: 0.8.9 +Release: %release_func 3 +Summary: A full featured MIME library written in C++ + +Group: System Environment/Libraries +License: GPL +URL: http://codesink.org/mimetic_mime_library.html +Source0: http://codesink.org/download/%name-%version.tar.gz +Patch0: mimetic-0.8.9-noconfigh.patch +Patch1: mimetic-0.8.9-gcc41.patch +BuildRoot: %_tmppath/%name-%version-%release-root-%(%__id_u -n) + +BuildRequires: doxygen + + +%package devel +Summary: Files for development of applications which will use %name +Group: Development/Libraries +Requires: %name = %version-%release + + +%description +mimetic is a GPL MIME library written in C++ designed to be easy to use +and integrate but yet fast and efficient. mimetic doesn't use exceptions +but it heavily uses templates so a mostly standard compliant C++ compiler +is required. + + +%description devel +mimetic is a GPL MIME library written in C++ designed to be easy to use +and integrate but yet fast and efficient. mimetic doesn't use exceptions +but it heavily uses templates so a mostly standard compliant C++ compiler +is required. + +This package contains files for the development of applications which +will use %name. + + +%prep +%setup -q +%patch0 -p1 -b .noconfigh +%patch1 -p1 -b .gcc41 + + +%build +%configure --disable-static +%__make %{?_smp_mflags} +%__make docs -C doc + + +%install +rm -rf $RPM_BUILD_ROOT +%__make install DESTDIR=$RPM_BUILD_ROOT + +rm -f $RPM_BUILD_ROOT%_libdir/*.la + +echo "\ +// cleared by the Fedora Extras package; content causes conflicts +// with autoconf/automake 'config.h' files else" > $RPM_BUILD_ROOT%_includedir/%name/config.h + + +%check +%__make check + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog README +%_libdir/*.so.* + + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%_libdir/*.so +%_includedir/%name + + +%changelog +* Sun Dec 25 2005 Enrico Scholz - 0.8.9-3 +- fixed compilation with gcc41 +- first Fedora Extras release (review #171624) + +* Mon Oct 24 2005 Enrico Scholz - 0.8.9-2 +- workaround problems with which conflicts with + local files from autoconf/automake + +* Mon Oct 24 2005 Enrico Scholz - 0.8.9-1 +- initial release diff --git a/sources b/sources index e69de29..06d741f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fa3cb93e37684c71ac5afad02870302b mimetic-0.8.9.tar.gz