rpms/flint/devel flint-1.2.0-add-soname.diff, NONE, 1.1 flint-1.2.0-add-static-lib.diff, NONE, 1.1 flint.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Conrad Meyer konradm at fedoraproject.org
Tue Mar 10 21:20:16 UTC 2009


Author: konradm

Update of /cvs/pkgs/rpms/flint/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8653/devel

Modified Files:
	.cvsignore sources 
Added Files:
	flint-1.2.0-add-soname.diff flint-1.2.0-add-static-lib.diff 
	flint.spec import.log 
Log Message:
Import.


flint-1.2.0-add-soname.diff:

--- NEW FILE flint-1.2.0-add-soname.diff ---
--- makefile.orig	2009-03-10 14:11:01.000000000 -0700
+++ makefile	2009-03-10 14:13:17.000000000 -0700
@@ -140,7 +140,7 @@
 	$(CC) -fPIC -shared -o libflint.dll $(FLINTOBJ) $(LIBS)
 
 libflint.so: $(FLINTOBJ)
-	$(CC) -fPIC -shared -o libflint.so $(FLINTOBJ) $(LIBS)
+	$(CC) -fPIC -shared -Wl,-soname,libflint.so.0 -o libflint.so.0 $(FLINTOBJ) $(LIBS)
 
 ##### zn_poly object files
 

flint-1.2.0-add-static-lib.diff:

--- NEW FILE flint-1.2.0-add-static-lib.diff ---
--- makefile.orig	2009-03-10 14:14:30.000000000 -0700
+++ makefile	2009-03-10 14:15:25.000000000 -0700
@@ -142,6 +142,9 @@
 libflint.so: $(FLINTOBJ)
 	$(CC) -fPIC -shared -Wl,-soname,libflint.so.0 -o libflint.so.0 $(FLINTOBJ) $(LIBS)
 
+libflint.a: $(FLINTOBJ)
+	$(AR) rcs libflint.a $(FLINTOBJ)
+
 ##### zn_poly object files
 
 zn_mod.o: zn_poly/zn_mod.c $(HEADERS)


--- NEW FILE flint.spec ---
Name:           flint
Version:        1.2.0
Release:        1%{?dist}
Summary:        Fast Library for Number Theory
Group:          Applications/Engineering
License:        GPLv2+
URL:            http://www.flintlib.org/
Source0:        http://www.flintlib.org/flint-%{version}.tar.gz
# Add a soname for the shared library
Patch0:         flint-1.2.0-add-soname.diff
# Build a static lib (since upstream doesn't keep track of compatible
# interfaces a soname really makes no sense
Patch1:         flint-1.2.0-add-static-lib.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  gmp-devel


%description
FLINT is a C library for doing number theory, written by William Hart
and David Harvey.


%package        devel
Summary:        Development files for FLINT
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}


%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%package        static
Summary:        Static libraries for FLINT
Group:          Development/Libraries
Requires:       %{name}-devel = %{version}-%{release}


%description    static
The %{name}-static package contains static libraries for
developing applications that use %{name}.


%prep
%setup -q
sed -i -e 's|^LIBDIR=.*$|LIBDIR=%{_libdir}|'             makefile
sed -i -e 's|^INCLUDEDIR=.*$|INCLUDEDIR=%{_includedir}|' makefile
sed -i -e 's|^DOCDIR=.*$|DOCDIR=%{_docdir}|'             makefile
sed -i -e 's|^CFLAGS =.*$|CFLAGS = $(INCS) %{optflags} -lgmp|' makefile
%patch0
%patch1


%build
make %{?_smp_mflags} MAKECMDGOALS=library
make libflint.so
make libflint.a


%install
rm -rf $RPM_BUILD_ROOT
# generated in build: mpQS libflint.so libflint.a
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}
install -p -m 644 libflint.a $RPM_BUILD_ROOT%{_libdir}/
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -p -m 755 mpQS $RPM_BUILD_ROOT%{_bindir}/
# install the headers somehow...
install -d -m 755 $RPM_BUILD_ROOT%{_includedir}/%{name}
for header in *.h; do
  install -p -m 644 $header $RPM_BUILD_ROOT%{_includedir}/%{name}/
done

install -p -m 755 libflint.so.0 $RPM_BUILD_ROOT%{_libdir}/
pushd $RPM_BUILD_ROOT%{_libdir}/
  ln -s libflint.so.0 libflint.so
popd


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc doc/%{name}-%{version}.pdf
%{_bindir}/mpQS
%{_libdir}/libflint.so.0


%files devel
%defattr(-,root,root,-)
%{_includedir}/flint
%{_libdir}/libflint.so


%files static
%defattr(-,root,root,-)
%{_libdir}/libflint.a


%changelog
* Tue Mar 10 2009 Conrad Meyer <konrad at tylerc.org> - 1.2.0-1
- Bump to 1.2.0.

* Fri Mar 6 2009 Conrad Meyer <konrad at tylerc.org> - 1.0.21-1
- Bump to 1.0.21.
- Build static subpackage.

* Sat Dec 6 2008 Conrad Meyer <konrad at tylerc.org> - 1.0.18-1
- Bump to 1.0.18.
- Patches apply with --fuzz=0.

* Sat Nov 29 2008 Conrad Meyer <konrad at tylerc.org> - 1.0.17-1
- Initial package.


--- NEW FILE import.log ---
flint-1_2_0-1_fc10:HEAD:flint-1.2.0-1.fc10.src.rpm:1236719838


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/flint/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Mar 2009 20:23:24 -0000	1.1
+++ .cvsignore	10 Mar 2009 21:19:45 -0000	1.2
@@ -0,0 +1 @@
+flint-1.2.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/flint/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Mar 2009 20:23:24 -0000	1.1
+++ sources	10 Mar 2009 21:19:45 -0000	1.2
@@ -0,0 +1 @@
+cddaf72170489f7fa29816f62da7e54c  flint-1.2.0.tar.gz




More information about the fedora-extras-commits mailing list