Hi,

I finally generated RPM packages with MICO 2.3.12. There's a patch at the end. But first some needed description.

I was able to generate RPM packages on OpenSuSe 10 and Fedora Core 5. I checked only if it's possible to install them. Theoretically speaking there should be no problems with libraries themselves (I made only small changes). But as it usually happens in life I expect some problems. If you encounter any you can contact me. I checked build process only on i686, I'm sure it will not work on x86_64. Some additional changes are probably required :-)

Here's step by step instruction:

  • Create file ~/.rpmmacros with following content:
# Macro: %{mklibname  [ []] [-s] [-d]}
# - %{mklibname test} => lib64test, on a lib64 platform
# - %{mklibname test 1 -d} => libtest1-devel
# - %{mklibname test 1 -d 0 -s} => libtest1_0-static-devel
%mklibname(ds) %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}

%make make
  • Unpack original sources, apply a patch (at the end of message), and create new tarball,
  • Run
    rpmbuild -tb mico-2.3.12.tar.gz
  • If configure fails with error about cross-compiling you must add --target argument to rpmbuild with the same value as configure detects as a host type (example for i686: OpenSuSe builds packages for i585 by default and RedHat for i386, so in both cases you must add --target i686), full command looks like that:
    rpmbuild -tb --target i686 mico-2.3.12.tar.gz
  • Be patient, on my hardware (1GHz, 1GB RAM) compilation takes few hours!!! I think it's best time to switch to some x86_64 series prodigy

Here's a patch you should apply:

http://new.foo-baz.com/drupal/files/mico-2.3.12_0.patch

Patch fixes also one problem with OpenSSL on Fedora Core 5. I hope someone will find it useful. If not sorry for wasting your time ;-)

Best regards,
--
Pawel Niewiadomski, http://new.foo-baz.com/


Attachment: mico.spec.patch
Description: Binary data

_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to