spec cleanup

epel9
Dan Horák 9 years ago
parent 5472db18e7
commit 3734d106cd

@ -12,7 +12,6 @@ URL: http://www.libdmtx.org/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0: %{name}-0.7.2-php54.patch Patch0: %{name}-0.7.2-php54.patch
Patch1: %{name}-0.7.2-ruby19.patch Patch1: %{name}-0.7.2-ruby19.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ImageMagick-devel BuildRequires: ImageMagick-devel
# required for tests # required for tests
@ -135,7 +134,6 @@ popd
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
@ -167,22 +165,16 @@ done
popd popd
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc AUTHORS COPYING.LESSER ChangeLog KNOWNBUG NEWS README README.linux TODO %doc AUTHORS COPYING.LESSER ChangeLog KNOWNBUG NEWS README README.linux TODO
%{_libdir}/%{name}.so.* %{_libdir}/%{name}.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc %doc
%{_includedir}/* %{_includedir}/*
%{_libdir}/%{name}.so %{_libdir}/%{name}.so
@ -190,22 +182,18 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/%{name}.3* %{_mandir}/man3/%{name}.3*
%files utils %files utils
%defattr(-,root,root,-)
%{_bindir}/dmtx* %{_bindir}/dmtx*
%{_mandir}/man1/dmtx*.1* %{_mandir}/man1/dmtx*.1*
%files -n php-libdmtx %files -n php-libdmtx
%defattr(-,root,root,-)
%doc COPYING wrapper/php/README %doc COPYING wrapper/php/README
%{_libdir}/php/modules/*.so %{_libdir}/php/modules/*.so
%files -n python-libdmtx %files -n python-libdmtx
%defattr(-,root,root,-)
%doc wrapper/python/README %doc wrapper/python/README
%{python_sitearch}/* %{python_sitearch}/*
%files -n ruby-libdmtx %files -n ruby-libdmtx
%defattr(-,root,root,-)
%doc wrapper/ruby/README %doc wrapper/ruby/README
%{ruby_vendorarchdir}/*.so %{ruby_vendorarchdir}/*.so

Loading…
Cancel
Save