Package libpopt: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | Name: libpopt Version: 1.16 Release: alt1 Epoch: 1 %def_with apidocs Summary: A C library for parsing command line parameters License: MIT Group: System/Libraries Url: http://www.rpm5.org/ Source: popt.tar Patch1: popt-1.16-alt-automake.patch Patch2: popt-1.16-alt-alloc-checks.patch Patch3: popt-1.16-alt-context-checks.patch Patch4: popt-1.14-alt-man.patch Patch5: popt-1.14-alt-poptBadOption.patch Patch6: popt-1.16-alt-vers.patch Patch7: popt-1.16-alt-secure_getenv.patch Patch8: popt-1.16-alt-automake-tests.patch Patch9: popt-1.16-pkgconfig.patch Provides: popt = %version-%release Obsoletes: popt %{?_with_apidocs:BuildPreReq: doxygen graphviz fonts-ttf-dejavu} # Automatically added by buildreq on Thu May 01 2003 BuildRequires: glibc-devel-static %package devel Summary: Developement environment for the popt library Group: Development/C Provides: popt-devel = %version-%release Obsoletes: popt-devel Requires: %name = %epoch:%version-%release Requires: glibc-devel %package devel-static Summary: Static popt library Group: Development/C Provides: popt-devel-static = %version-%release Obsoletes: popt-devel-static Requires: %name-devel = %epoch:%version-%release %package doc Summary: Development documentation for libpopt Group: Development/C BuildArch: noarch Requires: %name-devel = %epoch:%version-%release %description Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules. %description devel This package contains developement library, include files and documentation required for development of popt-based software. %description devel-static This package contains static library required for development of statically linked popt-based software. %description doc This package contains developement documentation for libpopt. %prep %setup -n popt %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p2 %patch5 -p2 %patch6 -p2 %patch7 -p1 %patch8 -p1 %patch9 -p1 %build %add_optflags -DHAVE_MCHECK_H gettextize --force --quiet autoreconf -fisv -I m4 %configure --disable-rpath %{subst_with apidocs} %make_build ./testit.sh %{?_with_apidocs:make doxygen} %install mkdir -p %buildroot/%_lib %makeinstall_std usrlibdir=%_libdir # Relocate shared libraries from %_libdir/ to /%_lib/. for f in %buildroot%_libdir/*.so; do t=`objdump -p "$f" |awk '/SONAME/ {print $2}'` [ -n "$t" ] ln -snf ../../%_lib/"$t" "$f" done mv %buildroot%_libdir/*.so.* %buildroot/%_lib/ %{?_with_apidocs:install -pm644 doxygen/man/man3/{popt.h,poptAlias,poptArg_u,poptContext_s,poptDone_s,poptItem_s,poptOption}.3 %buildroot%_man3dir/} %define docdir %_docdir/popt-%version mkdir -p %buildroot%docdir install -pm644 README CHANGES *.ps %buildroot%docdir/ xz -9 %buildroot%docdir/*.ps %{?_with_apidocs:cp -a doxygen/html %buildroot%docdir/} %find_lang popt %files -f popt.lang /%_lib/*.so.* %files devel %_libdir/*.so %_pkgconfigdir/*.pc %_includedir/* %_mandir/man?/* %dir %docdir %docdir/README %docdir/CHANGES %files devel-static %_libdir/*.a %files doc %dir %docdir %{?_with_apidocs:%docdir/html} %docdir/*.ps.xz %changelog * Tue Jun 20 2017 Anton Farygin <rider@altlinux.ru> 1:1.16-alt1 - 1.16 (closes: 32186). * Tue Feb 09 2016 Michael Shigorin <mike@altlinux.org> 1:1.14-alt10 - BOOTSTRAP: fixed --without apidocs build. - Replaced bzip2 with xz while at that. * Wed Oct 30 2013 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt9 - Fixed build with new automake. * Mon Apr 08 2013 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt8 - Fixed build with new gettext. * Mon Mar 25 2013 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt7 - Added secure_getenv support. * Fri Feb 25 2011 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt6 - Rebuilt for debuginfo. * Tue Oct 12 2010 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt5 - Rebuilt for soname set-versions. * Sun Dec 14 2008 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt4 - Removed obsolete %%post_ldconfig/%%postun_ldconfig calls. - Packaged -doc subpackage as noarch. * Mon Sep 01 2008 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt3 - Disabled POPT_fprintf/POPT_dgettext (closes: #16017). - Removed _* symbols from export list. - Fixed doxygen warnings. * Fri Apr 25 2008 Dmitry V. Levin <ldv@altlinux.org> 1:1.14-alt2 - Moved development documentation to -doc subpackage. - Require graphviz and fonts-ttf-dejavu for apidocs. * Wed Apr 23 2008 Stanislav Ievlev <inger@altlinux.org> 1:1.14-alt1 - 1.14 * drop patch alt-env-sgid (merged to upstream) * drop patch alt-shared (merged to upstream) * rediff patch alt-alloc-checks * rediff patch alt-context-checks * add patch alt-doxygen * skip patch alt-x-alloc * Sun Feb 24 2008 Alex V. Myltsev <avm@altlinux.org> 1:1.13-alt1 - New version. * Tue Jan 15 2008 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt17 - Fixed build with fresh autotools. * Thu Apr 12 2007 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt16 - Fixed potential buffer overflow in singleOptionHelp(). * Mon Apr 09 2007 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt15 - Uncompressed tarball, cleaned up specfile. * Tue Aug 16 2005 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt14 - Restricted list of global symbols exported by the library. * Thu Feb 10 2005 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt13 - Fixed multilib (closes #4887). * Fri May 21 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt12 - Changed poptBadOption() to return more appropriate value in case of execCommand() failure (#1928). * Wed Apr 28 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt11 - Rebuilt with glibc-2.3.x. * Fri Feb 27 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt10 - Fixed build with fresh autotools. * Tue Nov 25 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt9 - Do not package .la files. * Wed Aug 20 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt8 - Explicitly use old libtool for build. * Thu May 01 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt7 - Fixed environment issues. - Packaged some doxygen documentation for popt, correct manpage issue mentioned in (#0001458). * Thu Nov 21 2002 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt6 - Fixed build with new gettext. - Explicitly use old autoconf/automake for build. * Tue Sep 10 2002 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt5 - Fixed %name.la * Mon Sep 02 2002 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt4 - Updated %post/%postun scripts. - Turned absolute symlinks into relative. - Updated devel-static requirements. * Mon Mar 25 2002 Dmitry V. Levin <ldv@alt-linux.org> 1:1.7-alt3 - Synced with cvs snapshot 20020315 (minor fixes). * Tue Sep 25 2001 Dmitry V. Levin <ldv@altlinux.ru> 1.7-alt2 - Synced with cvs snapshot 20010925. * Wed Sep 05 2001 Dmitry V. Levin <ldv@altlinux.ru> 1.7-alt1 - Synced with cvs snapshot 20010905. - Moved static library to devel-static subpackage. - Added context sanity checks. - Updated alloc sanity checks. - Updated russian translations. * Fri Feb 23 2001 Dmitry V. Levin <ldv@fandra.org> 1.7-ipl1mdk - Synced with cvs. - Wrapped memory allocation functions. - Workaround for (argc <= 0) bug. - Updated russian translation. * Fri Sep 15 2000 Dmitry V. Levin <ldv@fandra.org> 1.7-ipl0.2mdk - Added support for float/double args. * Tue Aug 15 2000 Dmitry V. Levin <ldv@fandra.org> 1.7-ipl0.1mdk - 1.7 * Sun Aug 13 2000 Dmitry V. Levin <ldv@fandra.org> 1.6-ipl0.1mdk - Initial revision (cvs snapshot, split from rpm package). |