Changeset 111 for spec/trunk/SPECS
- Timestamp:
- Nov 18, 2010, 5:58:46 PM (15 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/file.spec (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/file.spec
r11 r111 6 6 Name: file 7 7 Version: 5.04 8 Release: 18 Release: 2 9 9 License: BSD 10 10 Group: Applications/File 11 11 Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz 12 12 URL: http://www.darwinsys.com/file/ 13 Patch0: file-5.04-base.patch 13 14 Patch0: file-os2.diff 14 15 15 16 Requires: file-libs = %{version}-%{release} … … 52 53 Summary: Python bindings for the libmagic API 53 54 Group: Development/Libraries 54 #BuildRequires: python-devel55 BuildRequires: python-devel 55 56 Requires: %{name} = %{version}-%{release} 56 57 … … 71 72 72 73 %build 73 CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \ 74 %configure --enable-fsect-man5 --disable-rpath \ 74 export CONFIG_SHELL="/bin/sh" 75 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 76 export LIBS="-lurpo -lmmap" 77 export CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" 78 %configure \ 79 --enable-fsect-man5 --disable-rpath \ 80 --disable-shared --disable-static \ 75 81 "--cache-file=%{_topdir}/cache/%{name}.cache" 76 82 77 83 # remove hardcoded library paths from local libtool 78 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool79 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool80 export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs84 #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 85 #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 86 #export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs 81 87 make %{?_smp_mflags} 82 #cd python 83 #CFLAGS="%{optflags}" %{__python} setup.py build 88 89 cd python 90 CFLAGS="%{optflags}" %{__python} setup.py build 84 91 85 92 %install … … 99 106 ln -s ../magic ${RPM_BUILD_ROOT}%{_datadir}/file/magic 100 107 101 #cd python 102 #%{__python} setup.py install -O1 --skip-build --root ${RPM_BUILD_ROOT} 103 #%{__install} -d ${RPM_BUILD_ROOT}%{_datadir}/%{name} 108 cp src/magic.dll ${RPM_BUILD_ROOT}%{_libdir} 109 cp src/.libs/magic_s.a ${RPM_BUILD_ROOT}%{_libdir} 110 111 cd python 112 %{__python} setup.py install -O1 --skip-build --root ${RPM_BUILD_ROOT} 113 %{__install} -d ${RPM_BUILD_ROOT}%{_datadir}/%{name} 104 114 105 115 %clean … … 118 128 %files libs 119 129 %defattr(-,root,root,-) 120 #%{_libdir}/*so.* 130 %{_libdir}/*.dll 121 131 %{_datadir}/magic* 122 132 %{_mandir}/man5/* … … 126 136 %files devel 127 137 %defattr(-,root,root,-) 128 #%{_libdir}/*.so 138 %{_libdir}/*.dll 139 %{_libdir}/magic.a 129 140 %{_includedir}/magic.h 130 141 %{_mandir}/man3/* … … 132 143 %files static 133 144 %defattr(-,root,root,-) 134 %{_libdir}/* .a145 %{_libdir}/*_s.a 135 146 136 #%files -n python-magic 137 #%defattr(-, root, root, -) 138 #%doc python/README COPYING python/example.py 139 #%{python_sitearch}/magic.so 140 #%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 141 #%{python_sitearch}/*egg-info 142 #%endif 147 %files -n python-magic 148 %defattr(-, root, root, -) 149 %doc python/README COPYING python/example.py 150 %{_libdir}/python*/* 143 151 144 152 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.
