[libint2] Provide libint2(api) and rpm macro.

Susi Lehtola jussilehtola at fedoraproject.org
Tue Sep 9 19:51:09 UTC 2014


commit e48af614858506c17d533067c8a5514cf2fcf2b9
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date:   Tue Sep 9 21:54:21 2014 +0200

    Provide libint2(api) and rpm macro.

 libint2.spec |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/libint2.spec b/libint2.spec
index 5ffdd0b..4850cfa 100644
--- a/libint2.spec
+++ b/libint2.spec
@@ -19,9 +19,12 @@
 %global optflags %commonflags -O1
 %endif
 
+# API version provided. Increment this whenever you change the configure time flags.
+%global apiversion 0
+
 Name:		libint2
 Version:	2.0.3
-Release:	7.%{hgrel}hg%{?dist}
+Release:	8.%{hgrel}hg%{?dist}
 Summary:	A library for efficient evaluation of electron repulsion integrals
 Group:		System Environment/Libraries
 License:	GPLv2+
@@ -39,6 +42,8 @@ Source0:	libint2-%{hgrel}hg.tar.xz
 # the generate-sources.sh script.
 Source1:	libint-%{version}-%{hgrel}hg.tar.xz
 
+Provides:	libint2(api)%{?_isa} = %{apiversion}
+
 # For building documentation
 BuildRequires:	tex(latex)
 %if 0%{?fedora} >= 18 || 0%{?rhel} > 6
@@ -136,6 +141,13 @@ find %{buildroot} -name *.la -delete
 # Make sure libraries are executable (otherwise they are not stripped)
 find %{buildroot} -name *.so.*.* -exec chmod 755 {} \;
 
+# Create macro file
+mkdir -p %{buildroot}%{macrosdir}
+cat > %{buildroot}%{macrosdir}/macros.libint2 << EOF
+# Current version of libint2 is
+%_libint2_apiversion %{apiversion}
+EOF
+
 %clean
 rm -rf %{buildroot}
 
@@ -161,10 +173,14 @@ make check CXXFLAGS="%{optflags} -O2 -std=c++11"
 %else
 %doc doc/progman.pdf
 %endif
+%{macrosdir}/macros.libint2
 %{_includedir}/libint2/
 %{_libdir}/*.so
 
 %changelog
+* Tue Sep 09 2014 Susi Lehtola <jussilehtola at fedoraproject.org> - 2.0.3-8.644hg
+- Provide libint2(api) and rpm macro.
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.3-7.644hg
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list