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