rpms/gfan/F-10 gfan-0.3-respect-destdir.diff, NONE, 1.1 gfan.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Conrad Meyer konradm at fedoraproject.org
Thu Jan 15 23:51:36 UTC 2009


Author: konradm

Update of /cvs/pkgs/rpms/gfan/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10693

Modified Files:
	.cvsignore sources 
Added Files:
	gfan-0.3-respect-destdir.diff gfan.spec 
Log Message:
Import.

gfan-0.3-respect-destdir.diff:

--- NEW FILE gfan-0.3-respect-destdir.diff ---
--- Makefile.orig	2008-12-06 20:00:35.000000000 -0800
+++ Makefile	2008-12-06 20:02:51.000000000 -0800
@@ -166,15 +166,15 @@
 
 OBJECTS = $(CATSOBJECTS) $(APPOBJECTS)
 
 all: $(MAIN)
 
-$(BINDIR): $(PREFIX)
-	$(MKDIR) $(BINDIR)
+$(DESTDIR)$(BINDIR): $(DESTDIR)$(PREFIX)
+	$(MKDIR) $(DESTDIR)$(BINDIR)
 
-$(PREFIX):
-	$(MKDIR) $(PREFIX)
+$(DESTDIR)$(PREFIX):
+	$(MKDIR) -p $(DESTDIR)$(PREFIX)
 
 default: $(OBJECTS) $(ADDITIONALOBJECTS) $(EXECS)
 
 $(MAIN): $(OBJECTS)
 	$(CCLINKER) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) -o $(MAIN)
@@ -262,14 +262,14 @@
 	tar -c $(RELEASEDIR) > $(RELEASEDIR).tar  
 	gzip $(RELEASEDIR).tar
 
 clean:
 	/bin/rm -f *.o $(EXECS) $(MAIN)
-install: $(BINDIR)
-	cp $(EXECS) $(BINDIR)
+install: $(DESTDIR)$(BINDIR)
+	cp $(EXECS) $(DESTDIR)$(BINDIR)
 #	cp $(EXECS) /usr/local/bin
-	./gfan installlinks --path $(BINDIR)/
+	./gfan installlinks --path $(DESTDIR)$(BINDIR)/
 .c.o:
 	$(CC) $(CFLAGS) -c $<
 .cc.o:
 	$(CCC) -c $<
 .cpp.o:


--- NEW FILE gfan.spec ---
Name:           gfan
Version:        0.3
Release:        3%{?dist}
Summary:        Software for Computing Gröbner Fans and Tropical Varieties
Group:          Applications/Engineering
License:        GPL+
URL:            http://www.math.tu-berlin.de/%7Ejensen/software/gfan/gfan.html
Source0:        http://www.math.tu-berlin.de/%7Ejensen/software/gfan/gfan%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Respect DESTDIR
Patch0:         gfan-0.3-respect-destdir.diff

BuildRequires:  cddlib-devel
BuildRequires:  gmp-devel
BuildRequires:  texlive-latex


%description
The software computes all marked reduced Gröbner bases of an ideal.
Their union is a universal Gröbner basis. Gfan contains algorithms for
computing this complex for general ideals and specialized algorithms
for tropical curves, tropical hypersurfaces and tropical varieties of
prime ideals. In addition to the above core functions the package
contains many tools which are useful in the study of Gröbner bases,
initial ideals and tropical geometry. Among these are an interactive
traversal program for Gröbner fans and programs for graphical renderings.



%prep
%setup -q -n %{name}%{version}
# manual is non-free
rm doc/ -rf

# Use native fedora optflags, prefix, and bindir
sed -i -e 's|^OPTFLAGS.*$||' \
  -e 's|^PREFIX.*$|PREFIX = %{_prefix}|' \
  -e 's|^BINDIR.*$|BINDIR = %{_bindir}|' Makefile

# respect DESTDIR
%patch0


%build
export OPTFLAGS="%{optflags} -DGMPRATIONAL"
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}
mv $RPM_BUILD_ROOT%{_bindir}/gfan_* $RPM_BUILD_ROOT%{_libexecdir}/%{name}/
pushd $RPM_BUILD_ROOT%{_libexecdir}/%{name}/
  for symlink in gfan_*; do
    rm $symlink
#   ln -s %{_bindir}/%{name} $symlink
    ln -s ../../bin/%{name} $symlink
  done
popd


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING examples LICENSE
%{_bindir}/%{name}
%{_libexecdir}/%{name}


%changelog
* Tue Dec 30 2008 Conrad Meyer <konrad at tylerc.org> - 0.3-3
- Fix License tag.
- Fix build section.
- Remove doc/ in prep stage as it is non-free.

* Fri Dec 12 2008 Conrad Meyer <konrad at tylerc.org> - 0.3-2
- BR texlive-latex.

* Sat Dec 6 2008 Conrad Meyer <konrad at tylerc.org> - 0.3-1
- Initial package.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gfan/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Jan 2009 20:25:40 -0000	1.1
+++ .cvsignore	15 Jan 2009 23:51:06 -0000	1.2
@@ -0,0 +1 @@
+gfan0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gfan/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Jan 2009 20:25:40 -0000	1.1
+++ sources	15 Jan 2009 23:51:06 -0000	1.2
@@ -0,0 +1 @@
+e4b5abe3714930b1789752fe79026b9d  gfan0.3.tar.gz




More information about the fedora-extras-commits mailing list