Accepting request 660491 from science
- Small packaging change for doc subpackage - Enable additional functionality OBS-URL: https://build.opensuse.org/request/show/660491 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glpk?expand=0&rev=22
This commit is contained in:
commit
4373467fac
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 21 10:08:56 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Small packaging change for doc subpackage
|
||||||
|
- Enable additional functionality
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 27 13:50:37 UTC 2018 - mpluskal@suse.com
|
Wed Jun 27 13:50:37 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
35
glpk.spec
35
glpk.spec
@ -12,11 +12,12 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define lname libglpk40
|
%define sover 40
|
||||||
|
%define lname libglpk%{sover}
|
||||||
Name: glpk
|
Name: glpk
|
||||||
Version: 4.65
|
Version: 4.65
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -30,6 +31,9 @@ Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{
|
|||||||
Patch0: glpk-no_random_return.patch
|
Patch0: glpk-no_random_return.patch
|
||||||
BuildRequires: ghostscript
|
BuildRequires: ghostscript
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
|
BuildRequires: libiodbc-devel
|
||||||
|
BuildRequires: libmariadb-devel
|
||||||
|
BuildRequires: libtool
|
||||||
BuildRequires: texlive
|
BuildRequires: texlive
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -80,17 +84,15 @@ callable library.
|
|||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%configure \
|
%configure \
|
||||||
--with-gmp \
|
--with-gmp \
|
||||||
|
--enable-dl \
|
||||||
|
--enable-odbc \
|
||||||
|
--enable-mysql \
|
||||||
--disable-static
|
--disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
|
|
||||||
cp examples/*.{mod,c,dat,mps,lp} %{buildroot}%{_docdir}/%{name}/examples
|
|
||||||
mkdir %{buildroot}%{_docdir}/%{name}/doc
|
|
||||||
cp doc/{*.txt,*.pdf} %{buildroot}%{_docdir}/%{name}/doc
|
|
||||||
cp {AUTHORS,ChangeLog,COPYING,NEWS,README} %{buildroot}%{_docdir}/%{name}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
@ -99,24 +101,23 @@ make %{?_smp_mflags} check
|
|||||||
%postun -n %{lname} -p /sbin/ldconfig
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{_docdir}/%{name}
|
|
||||||
%{_docdir}/%{name}/AUTHORS
|
|
||||||
%{_docdir}/%{name}/ChangeLog
|
|
||||||
%{_docdir}/%{name}/COPYING
|
|
||||||
%{_docdir}/%{name}/NEWS
|
|
||||||
%{_docdir}/%{name}/README
|
|
||||||
%{_bindir}/glpsol
|
%{_bindir}/glpsol
|
||||||
|
|
||||||
%files -n %{lname}
|
%files -n %{lname}
|
||||||
%{_libdir}/libglpk.so.*
|
%license AUTHORS COPYING
|
||||||
|
%{_libdir}/libglpk.so.%{sover}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libglpk.so
|
%{_libdir}/libglpk.so
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%dir %{_docdir}/%{name}
|
%doc ChangeLog NEWS README
|
||||||
%{_docdir}/%{name}/doc
|
%doc doc/*.txt doc/*.pdf
|
||||||
%{_docdir}/%{name}/examples
|
%doc examples/*.mod
|
||||||
|
%doc examples/*.c
|
||||||
|
%doc examples/*.dat
|
||||||
|
%doc examples/*.mps
|
||||||
|
%doc examples/*.lp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user