Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
4a58ef03d3 dist-git conversion 2010-07-29 15:38:20 +00:00
Bill Nottingham
9619b5aca4 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:30:22 +00:00
Jussi Lehtola
88f25f0110 Imported in Fedora. 2009-06-15 07:10:26 +00:00
14f004e76e Initialize branch F-10 for xdrfile 2009-06-14 18:54:53 +00:00
4 changed files with 73 additions and 21 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xdrfile
# $Id$
NAME := xdrfile
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
529605c4348d4a7352f9bdb54267923c xdrfile-1.1.tar.gz

72
xdrfile.spec Normal file
View file

@ -0,0 +1,72 @@
Name: xdrfile
Version: 1.1
Release: 2%{?dist}
Summary: A small C-library for reading and writing GROMACS trr and xtc files
Group: Applications/Engineering
License: LGPLv3+
URL: http://oldwiki.gromacs.org/index.php/XTC_Library
Source0: ftp://ftp.gromacs.org/pub/contrib/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
A small C-library for reading and writing trr and xtc files. The library is
lightweight (no dependencies, portable) and can be incorporated in other
software, because it is being distributed under the BSD license. The library
also contains one program trr2xtc which does what you would expect, and the
other way around.
%package devel
Summary: Development library and headers for xdrfile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains development headers and libraries for xdrfile.
%prep
%setup -q -n %{name}-%{version}b
[ -s ChangeLog ] && exit 1 # exit if file has non-zero size
%build
%configure --enable-shared --disable-static
# Get rid of rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL="install -p"
# Remove .la files
rm %{buildroot}/%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*
%{_bindir}/*
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/%{name}/
%changelog
* Sat Jun 13 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-2
- Conserve timestamps during install, fix URL & Source0.
* Mon May 18 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-1
- Update to 1.1 that fixes licensing and other issues.
* Wed Apr 08 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-1
- First release.