Changeset 1726
- Timestamp:
- 05/10/05 00:14:08 (4 years ago)
- Files:
-
- trunk/swish-e/rpm/swish-e.spec.in (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swish-e/rpm/swish-e.spec.in
r1539 r1726 80 80 81 81 %build 82 %configure --with-pcre=/usr --with-libxml2=/usr --with-zlib=/usr 82 %configure --with-pcre=/usr --with-libxml2=/usr --with-zlib=/usr --libexecdir=%{_libexecdir}/swish-e 83 83 make 84 84 85 85 # Make SWISH::API 86 cp %{_builddir}/%{name}-%{version}/swish-config %{_builddir}/%{name}-%{version}/src/ 87 chmod +x %{_builddir}/%{name}-%{version}/src/swish-config 86 88 pushd perl 87 89 grep -rsl '^#!.*perl' . | … … 89 91 %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' 90 92 91 CFLAGS="$RPM_OPT_FLAGS" SWISHBIN="%{_builddir}/%{name}-%{version}/src/swish-e" %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`93 CFLAGS="$RPM_OPT_FLAGS" SWISHBIN="%{_builddir}/%{name}-%{version}/src/swish-e" SWISHBINDIR="%{_builddir}/%{name}-%{version}/src" %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` 92 94 93 95 %{__make} PREFIX=%{buildroot}%{_prefix} LIB='%{_libdir}' LIBS='-L%{_libdir} -L%{buildroot}/src/.libs -lswish-e -lz' 'LDFLAGS=-L%{_libdir} -L%{_builddir}/%{name}-%{version}/src/.libs' 'CCFLAGS=-I%{_builddir}/%{name}-%{version}/src' 'LDDLFLAGS=-shared -L%{_builddir}/%{name}-%{version}/src/.libs/ -lswish-e' … … 99 101 100 102 %install 103 [ "%{buildroot}" != "/" ] && [ -d %{buildroot} ] && %{__rm} -rf %{buildroot}; 101 104 %{__make} DESTDIR=$RPM_BUILD_ROOT prefix=%{prefix} sysconfdir=%{sysconfdir} install 102 105 … … 131 134 132 135 # build list of installed SWISH::API files 136 mkdir -p %{_tmppath}/%{name}-%{version} 2>/dev/null 133 137 %{__perl} -le ' 134 138 use strict; … … 167 171 %defattr(-, root, root) 168 172 %{_bindir}/swish-e 173 %{_libexecdir}/swish-e 169 174 %{_libdir}/*.so.* 170 175 %{_mandir}/man[^3]/* … … 174 179 %defattr(-, root, root) 175 180 %{_bindir}/swish-filter-test 176 %{_lib dir}/swish-e/*181 %{_libexecdir}/swish-e/* 177 182 %{_datadir}/swish-e/* 178 183 … … 189 194 %{_libdir}/*.a 190 195 %{_libdir}/*.so 196 %{_libdir}/pkgconfig/*.pc 197 %{_bindir}/swish-config 191 198 192 199 %changelog 200 * Fri Apr 08 2005 Bernhard Weisshuhn <bkw@weisshuhn.de> 2.4.3-5 201 - Differentiate between libdir and libexecdir (for x86_64) 202 - Use swish-config from builddir for perl-build (pretty crude) 203 - remove buildroot prior to install 204 - Added pkgconfig and swish-config to devel package 193 205 * Sun Nov 07 2004 David L Norris <dave@webaugur.com> 2.5.2-4 194 206 - Simplify File::Find script. Merge HTML docs with swish-e package.
