Changeset 1721
- Timestamp:
- 28/10/11 00:33:45 (7 months ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
-
build_rpm.in (modified) (1 diff)
-
nexus_spec.in (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/build_rpm.in
r1717 r1721 23 23 mkdir $nxtop/installroot 24 24 # 25 make dist 25 26 ln -sf $nxtop/@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz $topdir/SOURCES 26 27 cp $nxtop/nexus.spec $topdir/SPECS 27 28 cd $topdir/SPECS 29 # 30 if test -z "$1"; then 31 build_args="--with-python --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/ --with-doxygen" 32 else 33 build_args="$1" 34 fi 28 35 # buildroot is actually where we install to 29 env NEXUS_CONFIG_OPTIONS="$ 1" rpmbuild -ba --buildroot $nxtop/installroot nexus.spec --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5"36 env NEXUS_CONFIG_OPTIONS="$build_args" rpmbuild -ba --buildroot $nxtop/installroot --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" nexus.spec -
branches/4.2/nexus_spec.in
r1427 r1721 2 2 # $Id$ 3 3 # Template for NeXus RPM SPEC file 4 # Copyright (C) 2004 Freddie Akeroyd 4 # Copyright (C) 2004 Freddie Akeroyd <freddie.akeroyd@stfc.ac.uk> 5 5 # 6 6 Summary: Libraries and utilities for using NeXus format data files … … 37 37 access routines, documentation, examples and a basic NeXus file browser. 38 38 39 #%package devel 40 #Summary: Libraries and utilities for using NeXus format data files 41 #Group: Development/Libraries 42 # 43 #%description devel 44 #NeXus is an international standard for exchanging data files 45 #among Neutron, Muon and X-ray science facilities. The underlying 46 #data is stored using the HDF format from NCSA. This package provides 39 %package devel 40 Summary: Libraries and utilities for using NeXus format data files 41 Group: Development/Libraries 42 43 %description devel 44 NeXus is an international standard for exchanging data files 45 among Neutron, Muon and X-ray science facilities. The underlying 46 data is stored using the HDF format from NCSA. This package provides 47 48 %package tools 49 Summary: Libraries and utilities for using NeXus format data files 50 Group: Development/Libraries 51 52 %description tools 53 NeXus is an international standard for exchanging data files 54 among Neutron, Muon and X-ray science facilities. The underlying 55 data is stored using the HDF format from NCSA. This package provides 56 57 %package doc 58 Summary: Libraries and utilities for using NeXus format data files 59 Group: Development/Libraries 60 61 %description doc 62 NeXus is an international standard for exchanging data files 63 among Neutron, Muon and X-ray science facilities. The underlying 64 data is stored using the HDF format from NCSA. This package provides 65 66 %package python 67 Summary: Libraries and utilities for using NeXus format data files 68 Group: Development/Libraries 69 70 %description python 71 NeXus is an international standard for exchanging data files 72 among Neutron, Muon and X-ray science facilities. The underlying 73 data is stored using the HDF format from NCSA. This package provides 74 75 %package java 76 Summary: Libraries and utilities for using NeXus format data files 77 Group: Development/Libraries 78 79 %description java 80 NeXus is an international standard for exchanging data files 81 among Neutron, Muon and X-ray science facilities. The underlying 82 data is stored using the HDF format from NCSA. This package provides 47 83 48 84 %prep … … 62 98 if test "$RPM_BUILD_ROOT" != "/"; then rm -fr "$RPM_BUILD_ROOT"; fi 63 99 make DESTDIR="$RPM_BUILD_ROOT" install 100 find "$RPM_BUILD_ROOT" -name '*.la' -exec rm -f {} \; 64 101 65 102 %files … … 67 104 %doc README NEWS ChangeLog AUTHORS COPYING INSTALL 68 105 # %docdir /usr/local/doc 69 %{_libdir}/* 106 %{_libdir}/libNeXus*.so* 107 #%ifarch x86_64 108 #/usr/lib/*.so* 109 #%endif 110 111 %files devel 112 %defattr(-,root,root) 113 %{_libdir}/libNeXus*.a 114 %{_libdir}/pkgconfig 115 %{_includedir}/* 116 117 %files tools 118 %defattr(-,root,root) 70 119 %{_bindir}/* 71 %{_datadir}/* 72 %{_includedir}/* 120 121 %files doc 122 %defattr(-,root,root) 123 %{_datadir}/nexus 124 125 %files python 126 %defattr(-,root,root) 73 127 /usr/lib/python*/site-packages/nxs 74 #%files devel 75 #%{_libdir}/*.a 76 #%{_libdir}/*.so* 128 129 %files java 130 %defattr(-,root,root) 131 %{_datadir}/java 132 %{_libdir}/libjnexus.so* 133 %{_libdir}/libjnexus.a 77 134 78 135 %clean … … 80 137 81 138 %post 139 if test `whoami` = root; then ldconfig; fi 140 141 %post tools 82 142 if [ "$RPM_INSTALL_PREFIX" != "" ]; then 83 143 INSTALL_PREFIX=$RPM_INSTALL_PREFIX … … 85 145 INSTALL_PREFIX=%{_prefix} 86 146 fi 147 87 148 ( cd $INSTALL_PREFIX/bin; for i in nxbuild; do \ 88 149 sed -i -e "s|^prefix=.*|prefix=$INSTALL_PREFIX|" $i; done ) 89 if test `whoami` = root; then ldconfig; fi90 150 91 151 %postun … … 95 155 # first line should be date user email 96 156 %changelog 157 * Sat Oct 22 2011 Freddie Akeroyd <freddie.akeroyd@stfc.ac.uk> - 4.3.0 158 - Split into subpackages 97 159 * Thu May 24 2007 Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk> - 4.0.0 98 160 - Tag and build 4.0.0
Note: See TracChangeset
for help on using the changeset viewer.
