Package lp_solve: 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 | %def_disable static %define origname lpsolve %define libname lib%origname %define lp_branch 5.5 %define lp_subver 2.0 Name: lp_solve Version: %lp_branch.%lp_subver Release: alt1 Summary: Tool that solves linear programming problem License: LGPL Group: Sciences/Mathematics Url: http://sourceforge.net/projects/lpsolve Source: %{name}_%{version}_source.tar.gz Patch0: lp_solve-5.5.0.15-alt-shared.patch Patch1: lpsolve-5.5.0.11-fedora-cflags.patch Packager: Michael Shigorin <mike@altlinux.org> Summary(pl): Narz\xeadzie do rozwi\xb1zywania problemu programowania liniowego %description Tool that solves linear programming problem using Simplex algorithm. %description -l pl Narz\xeadzie do rozwi\xb1zywania problemu programowania liniowego przy %package -n %libname Summary: Library that solves linear programming problem Summary(pl): Biblioteka do rozwi\xb1zywania problemu programowania liniowego Group: Sciences/Mathematics %description -n %libname Library that solves linear programming problem using Simplex algorithm. %description -n %libname -l pl Biblioteka do rozwi\xb1zywania problemu programowania liniowego przy u\xbfyciu algorytmu Simplex. %package -n %libname-devel Summary: %libname header files Summary(pl): Pliki nag\xb3\xf3wkowe biblioteki %libname Group: Development/C Requires: %libname = %version-%release %description -n %libname-devel %libname header files. %description -n %libname-devel -l pl Pliki nag\xb3\xf3wkowe biblioteki %libname. %if_enabled static %package -n %libname-devel-static Summary: Static %libname library Summary(pl): Statyczna biblioteka liblpk Group: Development/C Requires: %libname-devel = %version-%release %description -n %libname-devel-static Static %libname library. %description -n %libname-devel-static -l pl Statyczna biblioteka %libname. %endif %prep %setup -n %{name}_%lp_branch %patch1 -p1 %build cd lpsolve55 sh -x ccc rm bin/ux*/liblpsolve55.a cd ../lp_solve sh -x ccc #check #make test %install install -d %buildroot{%_bindir,%_libdir,%_includedir/%name} install -pm755 lp_solve/bin/ux*/lp_solve %buildroot%_bindir/ install -pm755 lpsolve55/bin/ux*/liblpsolve55.so %buildroot%_libdir/ install -pm644 lp*.h %buildroot%_includedir/%name ln -s %name %buildroot%_includedir/%origname %files %doc README.txt bfp/bfp_LUSOL/LUSOL/LUSOL*.txt %_bindir/%name %files -n %libname %_libdir/*.so* %files -n %libname-devel %_includedir/%name/ %_includedir/%origname %if_enabled static %files -n %libname-devel-static %_libdir/lib*.a %_libdir/lib*.la %_libdir/%name/lib*.a %_libdir/%name/lib*.la %endif # TODO: # - reintroduce dynamic libcolamd, see PLD shared patch, # http://cvs.pld-linux.org/cgi-bin/cvsweb/SPECS/lp_solve.spec?rev=1.16 %changelog * Sat Sep 24 2011 Michael Shigorin <mike@altlinux.org> 5.5.2.0-alt1 - 5.5.2.0 - had to disable tests (no target as well as no makefile), alas * Fri Sep 18 2009 Michael Shigorin <mike@altlinux.org> 5.5.0.15-alt1 - 5.5.0.15 built for Sisyphus + based on *heavily* cleaned up 5.5.0.6 Daedalus spec - I've seen no such violent macro exaltation before!! + also looked into current PLD and Rawhide specs - dropped PLD spec from docs, cvs.pld-linux.org is better source - dropped patch1 (seems applied upstream) - tweaked patch0 + then replaced patch0 with PLD one + then updated it for 5.5.0.15 + then postponed shared colamd and stuck Fedora patch instead - redone build in Fedora-like manner (so that it at least builds) - introduced %%check section * Mon May 22 2006 Aleksey Avdeev <solo@altlinux.ru> 5.5.0.6-alt1.0 - Porting in PLD (lp_solve-3.2-1), see lp_solve.PLD.spec (original spec in docs) - Use aclocal, libtoolize and automake if automake version >= "1.9.6" |