fcgi-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. %define snap -SNAP-0910052249
  2. Summary: FastCGI development kit
  3. Summary(ja): FastCGI 開発キット
  4. Name: fcgi
  5. Version: 2.4.1
  6. Release: 1%{?_dist_release}
  7. Group: Development/Languages
  8. License: BSD
  9. URL: http://www.fastcgi.com/#TheDevKit
  10. Source0: http://fastcgi.com/dist/fcgi-%{version}%{?snap}.tar.gz
  11. Source1: fcgi-autogen.sh
  12. Patch0: fcgi-2.4.0-autotools.patch
  13. # Patch0 created with Source1 after patching Patch1 and Patch2
  14. #Patch1: fcgi-2.4.0-configure.in.patch
  15. #Patch2: fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
  16. Patch3: fcgi-2.4.0-gcc44_fixes.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  18. # for -perl
  19. BuildRequires: perl(ExtUtils::MakeMaker)
  20. # don't "provide" private Perl libs
  21. %global _use_internal_dependency_generator 0
  22. %global provfind /bin/sh -c "grep -v '%perl_vendorarch.*\\.so$' | %__find_provides"
  23. %global __find_provides %provfind
  24. %description
  25. FastCGI is a language independent, scalable, open extension to CGI that
  26. provides high performance without the limitations of server specific APIs.
  27. %package devel
  28. Summary: Development files for %{name}
  29. Summary(ja): Development files for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. %description devel
  33. The %{name}-devel package contains libraries and header files for
  34. developing applications that use %{name}.
  35. %package perl
  36. Summary: Perl bindings for %{name}
  37. Summary(ja): Perl bindings for %{name}
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  41. %description perl
  42. The %{name}-perl package contains the perl bindings for fcgi.
  43. %prep
  44. %setup -q -n "%{name}-%{version}%{snap}"
  45. %patch3 -p1
  46. # remove DOS End Of Line Encoding
  47. sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm
  48. # fix file permissions
  49. chmod a-x include/fcgios.h libfcgi/os_unix.c
  50. %build
  51. %configure
  52. # does not build with parallel make flags
  53. make
  54. %install
  55. %{__rm} -rf %{buildroot}
  56. %{__mkdir_p} %{buildroot}
  57. make install DESTDIR=%{buildroot}
  58. %{__rm} -fv %{buildroot}/%{_libdir}/libfcgi{++,}.{l,}a
  59. install -p -m 0644 -D doc/cgi-fcgi.1 %{buildroot}/%{_mandir}/man1/cgi-fcgi.1
  60. for manpage in doc/*.3
  61. do
  62. install -p -m 0644 -D $manpage %{buildroot}%{_mandir}/man3/$(basename $manpage)
  63. done
  64. %{__rm} -f -- doc/*.1
  65. %{__rm} -f -- doc/*.3
  66. %post
  67. /sbin/ldconfig
  68. %postun
  69. /sbin/ldconfig
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %files
  73. %defattr(-,root,root,-)
  74. %{_bindir}/cgi-fcgi
  75. %{_libdir}/libfcgi.so.*
  76. %{_libdir}/libfcgi++.so.*
  77. %{_mandir}/man1/*
  78. %defattr(0644,root,root,0755)
  79. %doc LICENSE.TERMS README
  80. %files devel
  81. %defattr(-,root,root,-)
  82. %{_includedir}/*
  83. %{_libdir}/libfcgi.so
  84. %{_libdir}/libfcgi++.so
  85. %{_mandir}/man3/*
  86. %defattr(0644,root,root,0755)
  87. %doc doc/
  88. %changelog
  89. * Tue Jul 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.1-1
  90. - new upstream release.
  91. - removed perl binding (not used).
  92. * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.0-2vl6
  93. - build with perl 5.12.3
  94. * Sat Jul 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
  95. - initial build for Vine Linux
  96. * Sun Mar 01 2009 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-9
  97. - Stripping bad provides of private Perl extension libs
  98. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-8
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  100. * Sun Feb 15 2009 Till Maas <opensource@till.name> - 2.4.0-7
  101. - Add missing #include <cstdio> to make it compile with gcc 4.4
  102. * Tue Oct 14 2008 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-6
  103. - package up the perl bindings in their own subpackage
  104. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.0-5
  105. - Autorebuild for GCC 4.3
  106. * Thu Aug 23 2007 Till Maas <opensource till name> - 2.4.0-4
  107. - bump release for rebuild
  108. * Wed Jul 11 2007 Till Maas <opensource till name> - 2.4.0-3
  109. - remove parallel make flags
  110. * Tue Apr 17 2007 Till Maas <opensource till name> - 2.4.0-2
  111. - add some documentation
  112. - add mkdir ${RPM_BUILD_ROOT} to %%install
  113. - install man-pages
  114. * Mon Mar 5 2007 Till Maas <opensource till name> - 2.4.0-1
  115. - Initial spec for fedora