Преглед изворни кода

GMT-coastlines: new package
others: new upstream release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7034 ec354946-7b23-47d6-9f5a-488ba84defc7

Takemikaduchi пре 11 година
родитељ
комит
bf4fb0d0e3
4 измењених фајлова са 204 додато и 39 уклоњено
  1. 139 0
      G/GMT-coastlines/GMT-coastlines-vl.spec
  2. 41 16
      G/GMT/GMT-vl.spec
  3. 4 1
      h/hdf5/hdf5-vl.spec
  4. 20 22
      n/netcdf/netcdf-vl.spec

+ 139 - 0
G/GMT-coastlines/GMT-coastlines-vl.spec

@@ -0,0 +1,139 @@
+Name:           GMT-coastlines
+Version:        2.2.0
+Release:        1%{?_dist_release}
+Summary:        Coastline data for GMT
+
+Group:          Applications/Engineering
+License:        GPLv2
+URL:            http://gmt.soest.hawaii.edu/
+# seems to be derived at least from 2 Public Domain datasets, 
+# CIA World DataBank II and World Vector Shoreline (already in fedora),
+# then modified.
+Source0:        ftp://ftp.soest.hawaii.edu/gmt/gshhs-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+Provides:       gmt-coastlines = %{version}-%{release}
+
+
+%description
+Crude, low, and intermediate resolutions coastline data for GMT.
+
+
+%package        full
+Summary:        Full resolution coastline data for GMT
+Group:          Applications/Engineering
+Requires:       GMT-coastlines
+Provides:       gmt-coastlines = %{version}-%{release}
+
+%description    full
+%{summary}.
+
+
+%package        high
+Summary:        High resolution coastline data for GMT
+Group:          Applications/Engineering
+Requires:       GMT-coastlines
+Provides:       gmt-coastlines = %{version}-%{release}
+
+%description    high
+%{summary}.
+
+
+%package        all
+Summary:        All coastline data for GMT
+Group:          Applications/Engineering
+Requires:       GMT-coastlines
+Requires:       GMT-coastlines-full
+Requires:       GMT-coastlines-high
+Provides:       gmt-coastlines-all = %{version}-%{release}
+
+%description    all
+%{summary}.
+
+
+%prep
+%setup -q -c
+
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/GMT
+cp -a share/coast  ${RPM_BUILD_ROOT}/%{_datadir}/GMT/
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.TXT README.TXT
+%dir %{_datadir}/GMT/coast
+%{_datadir}/GMT/coast/*_[cil].cdf
+
+%files full
+%defattr(-,root,root,-)
+%{_datadir}/GMT/coast/*_f.cdf
+
+%files high
+%defattr(-,root,root,-)
+%{_datadir}/GMT/coast/*_h.cdf
+
+%files all
+%defattr(-,root,root,-)
+
+
+%changelog
+* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-1
+- initial build for Vine Linux
+
+
+* Mon Aug 29 2011 Orion Poplawski <orion@cora.nwra.com> 2.2.0-1
+- Update to 2.2.0
+
+* Wed Mar 9 2011 Orion Poplawski <orion@cora.nwra.com> 2.1.1-1
+- Update to 2.1.1
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Tue Jul 20 2010 Orion Poplawski <orion@cora.nwra.com> 2.1.0-1
+- Update to 2.1.0
+
+* Tue Jan 26 2010 Orion Poplawski <orion@cora.nwra.com> 2.0.2-1
+- Update to 2.0.2
+
+* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> 2.0.1-2
+- Require GMT-common instead for directory ownership
+
+* Fri Oct 16 2009 Orion Poplawski <orion@cora.nwra.com> 2.0.1-1
+- Update to 2.0.1
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Fri Jul 17 2009 Orion Poplawski <orion@cora.nwra.com> 2.0-1
+- Update to 2.0
+
+* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Orion Poplawski <orion@cora.nwra.com> 1.10-2
+- Add Requires: GMT to get needed directories (bug #473592)
+
+* Mon May 5 2008 Orion Poplawski <orion@cora.nwra.com> 1.10-1
+- Update to 1.10
+
+* Fri Apr 25 2008 Orion Poplawski <orion@cora.nwra.com> 1.9-3
+- Add lowercase provides
+- Fix URLs and timestamps
+- Add comment about source
+
+* Mon Mar 24 2008 Orion Poplawski <orion@cora.nwra.com> 1.9-2
+- Merged version
+
+* Mon Mar 17 2008 Orion Poplawski <orion@cora.nwra.com> 1.9-1
+- Initial version

+ 41 - 16
G/GMT/GMT-vl.spec

@@ -1,15 +1,12 @@
 # This the rpm spec file for GMT programs
 # This the rpm spec file for GMT programs
 %define name GMT
 %define name GMT
-%define version 4.5.1
+%define version 4.5.8
 
 
 Summary: Generic Mapping Tools
 Summary: Generic Mapping Tools
 Name: %{name}
 Name: %{name}
 Version: %{version}
 Version: %{version}
 Release: 1%{?_dist_release}
 Release: 1%{?_dist_release}
-Source0: GMT%{version}_src.tar.bz2
-Source1: GMT%{version}_share.tar.bz2
-Source4: GMT%{version}_suppl.tar.bz2
-Source8: GMT%{version}_doc.tar.bz2
+Source0: gmt-%{version}.tar.bz2
 
 
 License: GPL
 License: GPL
 Group: Applications/Engineering
 Group: Applications/Engineering
@@ -17,7 +14,9 @@ URL: http://imina.soest.hawaii.edu/gmt/
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Requires: netcdf >= 4.0
 Requires: netcdf >= 4.0
+Requires: GMT-coastlines
 BuildRequires: netcdf-devel >= 4.0
 BuildRequires: netcdf-devel >= 4.0
+BuildRequires: libXaw-devel
 
 
 %description
 %description
 GMT is a free, public-domain collection of ~60 UNIX tools
 GMT is a free, public-domain collection of ~60 UNIX tools
@@ -31,23 +30,34 @@ views in black and white, gray tone, hachure patterns, and
 linear, log, and power scaling, and comes with support data
 linear, log, and power scaling, and comes with support data
 such as coastlines, rivers, and political boundaries. 
 such as coastlines, rivers, and political boundaries. 
 
 
+
+%package devel
+Summary:        Development files for GMT
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+This package contains the GMT header files and libs.
+
+
 %prep
 %prep
-%setup -D -b1 -b4 -b8 -n GMT%{version}
+%setup -q -n GMT%{version}
 
 
 %build
 %build
 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \
 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/netcdf" \
-%configure --enable-shared --disable-flock
-%__make
+%configure --enable-shared --disable-flock  --datadir=%{_datadir}/%{name}
+make
+make suppl
+make examples
 
 
 %install
 %install
-rm -rf %{buildroot}
-%makeinstall
-%makeinstall-suppl
-%makeinstall-data
-%makeinstall-man
+rm -rf $RPM_BUILD_ROOT
+make install-all DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 
 
 %clean
 %clean
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 
 %post -p /sbin/ldconfig
 %post -p /sbin/ldconfig
 
 
@@ -55,14 +65,29 @@ rm -rf %{buildroot}
 
 
 
 
 %files
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %doc README 
 %doc README 
 %{_bindir}
 %{_bindir}
 %{_includedir}
 %{_includedir}
-%{_libdir}
+%{_libdir}/*.so.*
 %{_datadir}
 %{_datadir}
 
 
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}
+%{_libdir}/*.so
+
 %changelog
 %changelog
+* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.8-1
+- update to 4.5.8
+- use Source0: gmt-%{version}.tar.bz2 instead of GMT%{version}_src.tar.bz2
+- remove Source1: GMT%{version}_share.tar.bz2
+- remove Source4: GMT%{version}_suppl.tar.bz2
+- remove Source8: GMT%{version}_doc.tar.bz2
+- add BuildRequires: libXaw-devel
+- add Requires: GMT-coastlines
+- create %{name}-devel sub package
+
 * Sat Jan 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.1-1
 * Sat Jan 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.1-1
 - new upstream release
 - new upstream release
 - remove SOURCE2 (GMT%{version}_man.tar.bz2)
 - remove SOURCE2 (GMT%{version}_man.tar.bz2)

+ 4 - 1
h/hdf5/hdf5-vl.spec

@@ -1,5 +1,5 @@
 Name: hdf5
 Name: hdf5
-Version: 1.8.8
+Version: 1.8.9
 Release: 1%{?_dist_release}
 Release: 1%{?_dist_release}
 Summary: A general purpose library and file format for storing scientific data
 Summary: A general purpose library and file format for storing scientific data
 License: BSD
 License: BSD
@@ -102,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/*.a
 %{_libdir}/*.a
 
 
 %changelog
 %changelog
+* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.9-1
+- new upstream release
+
 * Wed Nov 30 2011 NAKAMURA Kenta <kenta@vinelinux.org> 1.8.8-1
 * Wed Nov 30 2011 NAKAMURA Kenta <kenta@vinelinux.org> 1.8.8-1
 - new upstream release
 - new upstream release
 - drop obsolete patches
 - drop obsolete patches

+ 20 - 22
n/netcdf/netcdf-vl.spec

@@ -1,15 +1,17 @@
-Summary:        Libraries for the Unidata network Common Data Form
-Name:           netcdf
-Version:        4.0.1
-Release:        1%{?_dist_release}
-Source0:	ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz
-Group:          Applications/Engineering
-License:        NetCDF
-URL:            http://my.unidata.ucar.edu/content/software/netcdf/index.html
+Summary:	Libraries for the Unidata network Common Data Form
+Name:		netcdf
+Version:	4.2.1.1
+Release:	1%{?_dist_release}
+Source0:	http://www.unidata.ucar.edu/downloads/%{name}/ftp/%{name}-%{version}.tar.gz
+Group:		Applications/Engineering
+License:	NetCDF
+URL:		http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
 
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 #BuildRequires:  gcc-g77
 #BuildRequires:  gcc-g77
 BuildRequires:  gcc-gfortran
 BuildRequires:  gcc-gfortran
+BuildRequires:  zlib-devel
+BuildRequires:  hdf5-devel
 
 
 %description
 %description
 NetCDF (network Common Data Form) is an interface for
 NetCDF (network Common Data Form) is an interface for
@@ -58,17 +60,9 @@ pages.
 
 
 %build
 %build
 #cd src
 #cd src
-%configure --enable-shared
+%configure --enable-shared --disable-static
 %__make
 %__make
 
 
-%post
-/sbin/install-info /%{_infodir}/%{name}.info.gz /%{_infodir}/dir
-
-%preun
-if [ $1 = 0 ]; then
-	/sbin/install-info --delete /%{_infodir}/%{name}.info.gz /%{_infodir}/dir
-fi
-
 
 
 %install
 %install
 rm -rf ${RPM_BUILD_ROOT}
 rm -rf ${RPM_BUILD_ROOT}
@@ -82,13 +76,15 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}
   LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \
   LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \
   MANDIR=${RPM_BUILD_ROOT}%{_mandir}
   MANDIR=${RPM_BUILD_ROOT}%{_mandir}
 
 
-# Remove unpackaged files
-rm ${RPM_BUILD_ROOT}%{_libdir}/*.la
-rm ${RPM_BUILD_ROOT}%{_infodir}/dir
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
 
 
 %clean
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 rm -rf ${RPM_BUILD_ROOT}
 
 
+%post -p /sbin/ldconfig
+
+%preun -p /sbin/ldconfig
+
 
 
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
@@ -96,18 +92,20 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_bindir}/*
 %{_bindir}/*
 %{_libdir}/*.so.*
 %{_libdir}/*.so.*
 %{_mandir}/man1/*
 %{_mandir}/man1/*
-%{_infodir}/*.info*
 
 
 %files devel
 %files devel
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_includedir}/*
 %{_includedir}/*
 %{_libdir}/*.so
 %{_libdir}/*.so
-%{_libdir}/*.a
 %{_libdir}/pkgconfig/*
 %{_libdir}/pkgconfig/*
 %{_mandir}/man3/*
 %{_mandir}/man3/*
 
 
 
 
 %changelog
 %changelog
+* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.1.1-1
+- update to 4.2.1.1
+- add BuildRequires: zlib-devel, hdf5-devel
+
 * Mon Jan 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0.1-1
 * Mon Jan 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0.1-1
 - new upstream release
 - new upstream release