cgicc/cgicc.spec

changeset 783
193650beba33
parent 387
33ae2d61c751
equal deleted inserted replaced
4:6bba65b571d8 5:2c47fb892d1e
1 ## 1 ##
2 ## cgicc.spec -- OpenPKG RPM Specification 2 ## cgicc.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2010 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
31 Distribution: Europalab Networks Production 31 Distribution: Europalab Networks Production
32 Class: EVAL 32 Class: EVAL
33 Group: Web 33 Group: Web
34 License: GPL 34 License: GPL
35 Version: 3.2.9 35 Version: 3.2.9
36 Release: 20100510 36 Release: 20120800
37
38 # package options
39 %option with_htmldocs no
37 40
38 # list of sources 41 # list of sources
39 Source0: ftp://ftp.gnu.org/gnu/cgicc/cgicc-%{version}.tar.gz 42 Source0: ftp://ftp.gnu.org/gnu/cgicc/cgicc-%{version}.tar.gz
40 43
41 # build information 44 # build information
42 Prefix: %{l_prefix} 45 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make, automake, libtool
43 BuildRoot: %{l_buildroot} 46 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make, automake, libtool 47 %if "%{with_htmldocs}" == "yes"
45 PreReq: OpenPKG, openpkg >= 20040130 48 BuildPreReq: doxygen
46 AutoReq: no 49 %endif
47 AutoReqProv: no
48 50
49 %description 51 %description
50 Compatible with FastCGI, GNU cgicc is a ANSI C++ compliant 52 Compatible with FastCGI, GNU cgicc is a ANSI C++ compliant
51 class library that greatly simplifies the creation of CGI 53 class library that greatly simplifies the creation of CGI
52 applications. It parses both GET and POST form data transparently, 54 applications. It parses both GET and POST form data transparently,
70 # reconstruct broken build configuration 72 # reconstruct broken build configuration
71 aclocal 73 aclocal
72 libtoolize 74 libtoolize
73 automake --add-missing 75 automake --add-missing
74 76
77 %if "%{with_htmldocs}" != "yes"
78 # avoid Doxygen dependent targets
79 %{l_shtool} subst \
80 -e 's;\(.*\$(MAKE) html-doc\);#\1;' \
81 -e 's;\(install-data-am:.*\)install-data-local;\1;' \
82 doc/Makefile.in
83 %endif
84
75 # repair still incorrect build configuration 85 # repair still incorrect build configuration
76 %{l_shtool} subst \ 86 %{l_shtool} subst \
77 -e 's;^docdir *=.*;docdir = @docdir@;' \ 87 -e 's;^docdir *=.*;docdir = @docdir@;' \
78 doc/Makefile.* 88 doc/Makefile.*
79 89
80 %build 90 %build
81 # prepare configuration 91 # prepare configuration
82 CC="%{l_cc}" \ 92 CC="%{l_cc}" \
83 CFLAGS="%{l_cflags -O}" \ 93 CFLAGS="%{l_cflags -O}" \
90 100
91 # build using parallel make 101 # build using parallel make
92 %{l_make} %{l_mflags -O} 102 %{l_make} %{l_mflags -O}
93 103
94 %install 104 %install
95 # remove previously existing installations
96 rm -rf $RPM_BUILD_ROOT
97
98 # run the native installation logic 105 # run the native installation logic
99 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 106 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
100 107
101 # determine installation files 108 # determine installation files
102 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 109 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
103 %{l_files_std} \ 110 %if "%{with_htmldocs}" == "yes"
104 "%doc %{l_prefix}/share/%{name}/doc" 111 "%doc %{l_prefix}/share/%{name}/doc" \
112 %endif
113 %{l_files_std}
105 114
106 %files -f files 115 %files -f files
107 116
108 %clean 117 %clean
109 rm -rf $RPM_BUILD_ROOT
110 118

mercurial