Accepting request 144468 from science
- Remove redundant tags/sections from specfile - Parallel build with %_smp_mflags - Avoid manual library dependencies; make doc subpackage noarch (forwarded request 144391 from jengelh) OBS-URL: https://build.opensuse.org/request/show/144468 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glpk?expand=0&rev=3
This commit is contained in:
commit
58b78cc2ce
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 10:21:05 UTC 2012 - jengelh@inai.de
|
||||
|
||||
- Remove redundant tags/sections from specfile
|
||||
- Parallel build with %_smp_mflags
|
||||
- Avoid manual library dependencies; make doc subpackage noarch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 31 14:40:30 UTC 2011 - pgajdos@suse.com
|
||||
|
||||
|
21
glpk.spec
21
glpk.spec
@ -19,13 +19,13 @@
|
||||
Name: glpk
|
||||
Version: 4.47
|
||||
Release: 0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: GNU Linear Programming Kit
|
||||
License: GPL-3.0
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://www.gnu.org/software/glpk/glpk.html
|
||||
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Requires: libglpk0 >= %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: ghostscript
|
||||
BuildRequires: texlive
|
||||
|
||||
@ -65,7 +65,9 @@ callable library.
|
||||
%package doc
|
||||
Summary: GNU Linear Programming Kit
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libglpk0 = %{version}
|
||||
%if 0%{?suse_version} >= 1120 || 0%{?fedora_version}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description doc
|
||||
The GLPK package is intended for solving large-scale linear
|
||||
@ -80,10 +82,10 @@ callable library.
|
||||
|
||||
%build
|
||||
%configure --enable-static=no
|
||||
make %{?jobs:-j%jobs}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
make install DESTDIR="%buildroot"
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||
cp examples/*.{mod,c,dat,mps,lp} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||
@ -93,9 +95,6 @@ dvipdf doc/gmpl.dvi doc/gmpl.pdf
|
||||
cp doc/{*.txt,*.pdf} $RPM_BUILD_ROOT%{_docdir}/%{name}/doc
|
||||
cp {AUTHORS,ChangeLog,COPYING,NEWS,README} $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf "$RPM_BUILD_ROOT"
|
||||
|
||||
%post -n libglpk0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libglpk0 -p /sbin/ldconfig
|
||||
@ -122,9 +121,7 @@ rm -rf "$RPM_BUILD_ROOT"
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_docdir}/%{name}
|
||||
%dir %{_docdir}/%{name}/doc
|
||||
%doc %{_docdir}/%{name}/doc/*
|
||||
%dir %{_docdir}/%{name}/examples
|
||||
%doc %{_docdir}/%{name}/examples/*
|
||||
%{_docdir}/%{name}/doc
|
||||
%{_docdir}/%{name}/examples
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user