[nifticlib] - Initial import

Ankur Sinha ankursinha at fedoraproject.org
Tue Jul 26 17:12:25 UTC 2011


commit ad1f5545e71abef607aa7b19e731feb2e67134f4
Author: Ankur Sinha <sanjay.ankur at gmail.com>
Date:   Tue Jul 26 22:42:00 2011 +0530

    - Initial import

 .gitignore     |    1 +
 nifticlib.spec |   92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0773303 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nifticlib-2.0.0.tar.gz
diff --git a/nifticlib.spec b/nifticlib.spec
new file mode 100644
index 0000000..965ff0a
--- /dev/null
+++ b/nifticlib.spec
@@ -0,0 +1,92 @@
+Name:           nifticlib
+Version:        2.0.0
+Release:        2%{?dist}
+Summary:        A set of i/o libraries for reading and writing files in the nifti-1 data format
+
+License:        Public Domain
+URL:            http://niftilib.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/niftilib/%{name}-%{version}.tar.gz
+
+BuildRequires:  zlib-devel doxygen cmake
+#Requires:       
+
+%description
+Nifticlib is a set of C i/o libraries for reading and writing files in
+the nifti-1 data format. nifti-1 is a binary file format for storing
+medical image data, e.g. magnetic resonance image (MRI) and functional
+MRI (fMRI) brain images.
+
+%package devel
+Summary: Libraries and header files for nifticlib development
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The nifticlib-devel package contains the header files and libraries
+necessary for developing programs that make use of the nifticlib library.
+
+%package docs
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description docs
+The package contains documentation and example files for %{name}.
+
+%prep
+%setup -q
+sed -i "s|csh|$SHELL|" Makefile
+
+%build
+# make the doc
+make doc %{?_smp_mflags}
+
+# cmake replaces the original makefile so I call it after generating my docs
+%cmake -DBUILD_SHARED_LIBS=ON .
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+## hack to get this to work for x86_64
+%if "%{_lib}" == "lib64" 
+    install -p -d $RPM_BUILD_ROOT/%{_libdir}/
+    mv -v $RPM_BUILD_ROOT/usr/lib/* $RPM_BUILD_ROOT/%{_libdir}/
+    rm -rvf $RPM_BUILD_ROOT/usr/lib/
+%endif
+
+install -p -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/docs/
+install -p -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/
+
+# remove extra files
+rm -fv docs/html/installdox
+rm -fv docs/html/Doxy*
+cp -av docs/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/docs/
+cp -av examples/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/
+
+%files
+%defattr(-,root,root,-)
+%doc README LICENSE Updates.txt
+%{_bindir}/*
+%{_libdir}/*.so.*
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/*.so
+%{_includedir}/nifti/
+
+%files docs
+%defattr(-,root,root,-)
+%{_docdir}/%{name}/
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%changelog
+* Tue Jul 26 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.0.0-2
+- Correct source URL
+
+* Fri Jun 17 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.0.0-1
+- initial rpm build
+- based on the spec built by Andy Loening <loening at alum dot mit dot edu> in the source tar
diff --git a/sources b/sources
index e69de29..85bee3d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+425a711f8f92fb1e1f088cbc55bea53a  nifticlib-2.0.0.tar.gz


More information about the scm-commits mailing list