confuse/confuse.spec

changeset 756
ca81a21bc445
parent 387
33ae2d61c751
equal deleted inserted replaced
4:d83e55fa0fd3 5:0dede7dd64e5
1 ## 1 ##
2 ## confuse.spec -- OpenPKG RPM Specification 2 ## confuse.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2009 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: Libraries 33 Group: Libraries
34 License: ISC 34 License: ISC
35 Version: 2.6 35 Version: 2.6
36 Release: 20090320 36 Release: 20120800
37 37
38 # list of sources 38 # list of sources
39 Source0: http://bzero.se/confuse/confuse-%{version}.tar.gz 39 Source0: http://bzero.se/confuse/confuse-%{version}.tar.gz
40 40
41 # build information 41 # build information
42 Prefix: %{l_prefix} 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make
43 BuildRoot: %{l_buildroot} 43 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: OpenPKG, openpkg >= 20040130, make
45 PreReq: OpenPKG, openpkg >= 20040130
46 AutoReq: no
47 AutoReqProv: no
48 44
49 %description 45 %description
50 Previously known as libcfg, confuse is a configuration file 46 Previously known as libcfg, confuse is a configuration file
51 parser library which supports sections and (lists of) values 47 parser library which supports sections and (lists of) values
52 (strings, integers, floats, booleans or other sections). Other 48 (strings, integers, floats, booleans or other sections). Other
63 } 59 }
64 60
65 %prep 61 %prep
66 # unpack sources 62 # unpack sources
67 %setup -q 63 %setup -q
64 %{l_shtool} subst \
65 -e 's;-Wall *-Werror;-Wall;' \
66 tests/Makefile.in \
67 docs/Makefile.in \
68 src/Makefile.in
68 69
69 %build 70 %build
70 # run the autoconf(1) generated configuration logic 71 # run the autoconf(1) generated configuration logic
71 CC="%{l_cc}" \ 72 CC="%{l_cc}" \
72 CFLAGS="%{l_cflags -O}" \ 73 CFLAGS="%{l_cflags -O}" \
79 80
80 # run the native build logic using parallel make 81 # run the native build logic using parallel make
81 %{l_make} %{l_mflags -O} 82 %{l_make} %{l_mflags -O}
82 83
83 %install 84 %install
84 # remove previously existing installations
85 rm -rf $RPM_BUILD_ROOT
86
87 # install files 85 # install files
88 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 86 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
89 87
90 # determine installation files 88 # determine installation files
91 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
92 90
93 %files -f files 91 %files -f files
94 92
95 %clean 93 %clean
96 rm -rf $RPM_BUILD_ROOT
97 94

mercurial