[ginac] Check out from git with the latest version.
Christopher Meng
cicku at fedoraproject.org
Sat Jul 5 15:27:04 UTC 2014
commit b89735a8af55a2f30c61a4e7b054fd79a4c210f5
Author: Christopher Meng <i at cicku.me>
Date: Sat Jul 5 23:26:56 2014 +0800
Check out from git with the latest version.
.gitignore | 1 +
ginac.spec | 67 +++++++++++++++++++++++++++++++++++------------------------
sources | 2 +-
3 files changed, 42 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0912b69..4303d7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ ginac-1.5.6.tar.bz2
/ginac-1.5.8.tar.bz2
/ginac-1.6.2.tar.bz2
/ginac-98433210d31a34b55c8283eb7fb7767d6c830e14.tar.gz
+/ginac-edfa67d26bac695b5ef9911f3cda3ff50232e35a.tar.gz
diff --git a/ginac.spec b/ginac.spec
index ee570ab..18d6b4a 100644
--- a/ginac.spec
+++ b/ginac.spec
@@ -1,33 +1,38 @@
-%global gitdate 20131231
-%global commit 98433210d31a34b55c8283eb7fb7767d6c830e14
-%global gitrev %(c=%{commit}; echo ${c:0:7})
+%global gitdate 20140630
+%global commit edfa67d26bac695b5ef9911f3cda3ff50232e35a
+%global gitrev %(c=%{commit}; echo ${c:0:7})
Name: ginac
Version: 1.6.2
-Release: 8.%{gitdate}git%{gitrev}%{?dist}
+Release: 9.%{gitdate}git%{gitrev}%{?dist}
Summary: C++ library for symbolic calculations
License: GPLv2+
URL: http://www.ginac.de/
-# Source0: http://www.ginac.de/%{name}-%{version}.tar.bz2
+# Source: http://www.ginac.de/%{name}-%{version}.tar.bz2
# Tarball was generated by following commands:
# 1. git clone git://www.ginac.de/ginac.git ginac-%{commit}
# 2. tar zcvf ginac-%{commit}.tar.gz ginac-%{commit}/ --exclude=.*
+################################################################
+# Now use the snapshot link from gitweb:
+# http://www.ginac.de/ginac.git?p=ginac.git;a=snapshot;h=%{commit};sf=tgz
Source0: ginac-%{commit}.tar.gz
-Patch0: ginac-1.4.4-ginac_pc_in.patch
-BuildRequires: cln-devel
BuildRequires: bison
+BuildRequires: cln-devel
BuildRequires: cmake
BuildRequires: flex
BuildRequires: doxygen
-BuildRequires: python
+BuildRequires: python2
BuildRequires: readline-devel
BuildRequires: tetex-latex
BuildRequires: tetex-dvips
+BuildRequires: texinfo
+BuildRequires: texlive-collection-latex
+BuildRequires: texinfo-tex
BuildRequires: transfig
Obsoletes: GiNaC < 1.3.2
Provides: GiNaC = %{version}-%{release}
-#Requires(post): info
-#Requires(preun): info
+Requires(post): info
+Requires(preun): info
%description
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
@@ -36,7 +41,7 @@ open framework for symbolic computation within the C++ programming language.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: cln-devel
+Requires: cln-devel%{?_isa}
Obsoletes: GiNaC-devel < 1.3.2
Provides: GiNaC-devel = %{version}-%{release}
@@ -56,49 +61,57 @@ simple and easy-to-use CAS-like interface to GiNaC for non-programmers, and
the tool "viewgar" which displays the contents of GiNaC archives.
%prep
-%setup -qn ginac-%{commit}
-%patch0 -p1 -b .ginac_pc_in
+%setup -qn %{name}
+# Destroy the RPATH.
+sed -i 's| @GINACLIB_RPATH@||' ginac.pc.in
%build
-%cmake
-make %{?_smp_mflags}
+# Same as above.
+%cmake -DCMAKE_INSTALL_RPATH=""
+%make_build
+make -C doc/tutorial/ ginac_html
%install
-make install DESTDIR=%{buildroot}
+%make_install
rm -f %{buildroot}%{_infodir}/dir
-find %{buildroot} -name '*.la' -delete
+find %{buildroot} -name '*.la' -delete -print
%check
-#export LD_LIBRARY_PATH=$( pwd )/ginac/.libs
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-#%post devel
-#/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || :
+%post devel
+install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || :
+install-info --info-dir=%{_infodir} %{_infodir}/ginac-examples.info.gz 2>/dev/null || :
-#%preun devel
-#if [ "$1" = 0 ]; then
-# /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || :
-#fi
+%preun devel
+if [ "$1" = 0 ]; then
+ install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null
+ install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac-examples.info.gz 2>/dev/null || :
+fi
%files
-%doc AUTHORS COPYING ChangeLog NEWS README
+%doc COPYING
%{_libdir}/*.so.*
%files devel
+%doc AUTHORS ChangeLog NEWS README
+%doc doc/tutorial/ginac.html
%{_includedir}/ginac
-#%{_infodir}/*.info*
+%{_infodir}/*.info*
%{_libdir}/*.so
%{_libdir}/pkgconfig/ginac.pc
%files utils
%{_bindir}/*
-#%{_mandir}/man1/*.1*
%changelog
+* Wed Jul 02 2014 Christopher Meng <rpm at cicku.me> - 1.6.2-9.20140630gitedfa67d
+- Update to latest git snapshot.
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.2-8.20131231git9843321
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index f9b85fe..d4a2656 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dd30477597347a9e7407dd3bed6f3575 ginac-98433210d31a34b55c8283eb7fb7767d6c830e14.tar.gz
+f9fe99dffab85488e6ba66f70cd2f2c3 ginac-edfa67d26bac695b5ef9911f3cda3ff50232e35a.tar.gz
More information about the scm-commits
mailing list