diff --git a/.gitignore b/.gitignore index e69de29..acf1959 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/DyLP-1.9.4.tgz diff --git a/coin-or-DyLP-docdir.patch b/coin-or-DyLP-docdir.patch new file mode 100644 index 0000000..1516146 --- /dev/null +++ b/coin-or-DyLP-docdir.patch @@ -0,0 +1,21 @@ +diff -up DyLP-1.9.4/Makefile.in.orig DyLP-1.9.4/Makefile.in +--- DyLP-1.9.4/Makefile.in.orig 2014-03-28 13:47:28.177187739 -0300 ++++ DyLP-1.9.4/Makefile.in 2014-03-28 13:47:51.834188645 -0300 +@@ -351,7 +351,7 @@ EXTRA_DIST = AUTHORS LICENSE README NEWS + ######################################################################## + pkgconfiglibdir = $(libdir)/pkgconfig + pkgconfiglib_DATA = dylp.pc $(am__append_3) +-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/DyLP ++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME) + + ######################################################################## + # Maintainer Stuff # +@@ -363,7 +363,7 @@ ACLOCAL_AMFLAGS = -I m4 + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = $(am__append_5) $(VPATH_DISTCLEANFILES) + DocFiles = README AUTHORS LICENSE +-DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME) ++DocInstallDir = $(datadir)/doc/coin-or-$(PACKAGE_NAME) + all: all-recursive + + .SUFFIXES: diff --git a/coin-or-DyLP-pkgconfig.patch b/coin-or-DyLP-pkgconfig.patch new file mode 100644 index 0000000..2dd4507 --- /dev/null +++ b/coin-or-DyLP-pkgconfig.patch @@ -0,0 +1,12 @@ +diff -up DyLP-1.9.4/Makefile.in.orig DyLP-1.9.4/Makefile.in +--- DyLP-1.9.4/Makefile.in.orig 2013-11-15 00:38:40.000000000 -0200 ++++ DyLP-1.9.4/Makefile.in 2014-03-28 13:47:28.177187739 -0300 +@@ -875,7 +875,7 @@ maintainer-clean-local: distclean-local + + install-data-hook: + @$(mkdir_p) "$(addlibsdir)" +-@COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \ ++@COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=$(DESTDIR)$(pkgconfiglibdir) \ + @COIN_HAS_PKGCONFIG_TRUE@ $(PKG_CONFIG) --libs dylp > $(addlibsdir)/dylp_addlibs.txt + @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libDyLP.lib @DYLPLIB_LIBS_INSTALLED@" > $(addlibsdir)/dylp_addlibs.txt + @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@ echo -L@abs_lib_dir@ -lDyLP @DYLPLIB_LIBS_INSTALLED@ > $(addlibsdir)/dylp_addlibs.txt diff --git a/coin-or-DyLP.spec b/coin-or-DyLP.spec new file mode 100644 index 0000000..3623890 --- /dev/null +++ b/coin-or-DyLP.spec @@ -0,0 +1,115 @@ +%global module DyLP + +Name: coin-or-%{module} +Group: Applications/Engineering +Summary: Implementation of the dynamic simplex algorithm +Version: 1.9.4 +Release: 1%{?dist} +License: EPL +URL: http://projects.coin-or.org/%{module} +Source0: http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz +BuildRequires: atlas-devel +BuildRequires: blas-devel +BuildRequires: bzip2-devel +BuildRequires: coin-or-CoinUtils-devel +BuildRequires: coin-or-Osi-devel +BuildRequires: doxygen +BuildRequires: glpk-devel +BuildRequires: graphviz +BuildRequires: lapack-devel +BuildRequires: pkgconfig +BuildRequires: readline-devel +BuildRequires: zlib-devel + +# Properly handle DESTDIR +Patch0: %{name}-pkgconfig.patch + +# Install documentation in standard rpm directory +Patch1: %{name}-docdir.patch + +%description +DyLP is an implementation of the dynamic simplex algorithm. Briefly, dynamic +simplex attempts to work with an active constraint system which is a subset +of the full constraint system. It alternates between primal and dual simplex +phases. Between simplex phases, it deactivates variables and constraints +which are not currently useful, and scans the full constraint system to +activate variables and constraints which have become useful. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: coin-or-CoinUtils-devel +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package doc +Summary: Documentation files for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +This package contains the documentation for %{name}. + +%prep +%setup -q -n %{module}-%{version} +%patch0 -p1 +%patch1 -p1 + +# silence doxygen deprecation warnings +sed -i 's/^\(SYMBOL_CACHE_SIZE\|SHOW_DIRECTORIES\|HTML_ALIGN_MEMBERS\|USE_INLINE_TREES\|DOT_FONTNAME\)/#\1/g' doxydoc/doxygen.conf.in + +%build +%configure +make %{?_smp_mflags} all doxydoc + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/*.la +cp -a doxydoc/html %{buildroot}%{_docdir}/%{name} + +%check +make test + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/AUTHORS +%doc %{_docdir}/%{name}/dylp_addlibs.txt +%doc %{_docdir}/%{name}/LICENSE +%doc %{_docdir}/%{name}/README +%{_libdir}/*.so.* + +%files devel +%{_includedir}/coin/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/* + +%files doc +%doc %{_docdir}/%{name}/html + +%changelog +* Fri Mar 28 2014 pcpa - 1.9.4-1 +- Update to latest upstream release. + +* Fri Nov 1 2013 pcpa - 1.9.1-1 +- Update to latest upstream release. + +* Mon Jan 14 2013 pcpa - 1.8.3-4 +- Update to run make check (#894610#c4). + +* Sat Jan 12 2013 pcpa - 1.8.3-3 +- Rename repackaged tarball. + +* Sun Nov 18 2012 pcpa - 1.8.3-2 +- Rename package to coin-or-DyLP. +- Do not package Thirdy party data or data without clean license. + +* Thu Sep 27 2012 pcpa - 1.8.3-1 +- Initial coinor-DyLP spec. diff --git a/sources b/sources index e69de29..0e76962 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1375fdc61a294f35da3e52585f497c6a DyLP-1.9.4.tgz