Remove old RPM-isms like defattr.
This commit is contained in:
parent
eb060725c4
commit
ac329aec74
@ -27,7 +27,6 @@ License: LGPLv2+
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://libguestfs.org/
|
URL: http://libguestfs.org/
|
||||||
Source0: http://libguestfs.org/download/1.19-development/%{name}-%{version}.tar.gz
|
Source0: http://libguestfs.org/download/1.19-development/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
||||||
|
|
||||||
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
||||||
Patch1: ruby-1.9-vendor-not-site.patch
|
Patch1: ruby-1.9-vendor-not-site.patch
|
||||||
@ -779,8 +778,6 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
# Delete static libraries, libtool files.
|
# Delete static libraries, libtool files.
|
||||||
@ -823,17 +820,12 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
|
|||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
%{_bindir}/libguestfs-test-tool
|
%{_bindir}/libguestfs-test-tool
|
||||||
%{_libdir}/guestfs/
|
%{_libdir}/guestfs/
|
||||||
@ -844,7 +836,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc AUTHORS BUGS ChangeLog HACKING TODO README RELEASE-NOTES ROADMAP
|
%doc AUTHORS BUGS ChangeLog HACKING TODO README RELEASE-NOTES ROADMAP
|
||||||
%doc examples/*.c
|
%doc examples/*.c
|
||||||
%doc installed-docs/*
|
%doc installed-docs/*
|
||||||
@ -862,7 +853,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files tools-c
|
%files tools-c
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README
|
%doc README
|
||||||
%config(noreplace) %{_sysconfdir}/libguestfs-tools.conf
|
%config(noreplace) %{_sysconfdir}/libguestfs-tools.conf
|
||||||
%dir %{_sysconfdir}/bash_completion.d
|
%dir %{_sysconfdir}/bash_completion.d
|
||||||
@ -904,7 +894,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README
|
%doc README
|
||||||
%{_bindir}/virt-list-filesystems
|
%{_bindir}/virt-list-filesystems
|
||||||
%{_mandir}/man1/virt-list-filesystems.1*
|
%{_mandir}/man1/virt-list-filesystems.1*
|
||||||
@ -921,7 +910,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files live-service
|
%files live-service
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
%{_sbindir}/guestfsd
|
%{_sbindir}/guestfsd
|
||||||
%{_unitdir}/guestfsd.service
|
%{_unitdir}/guestfsd.service
|
||||||
@ -929,7 +917,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files -n ocaml-%{name}
|
%files -n ocaml-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/ocaml/guestfs
|
%{_libdir}/ocaml/guestfs
|
||||||
%exclude %{_libdir}/ocaml/guestfs/*.a
|
%exclude %{_libdir}/ocaml/guestfs/*.a
|
||||||
%exclude %{_libdir}/ocaml/guestfs/*.cmxa
|
%exclude %{_libdir}/ocaml/guestfs/*.cmxa
|
||||||
@ -940,7 +927,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files -n ocaml-%{name}-devel
|
%files -n ocaml-%{name}-devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ocaml/examples/*.ml
|
%doc ocaml/examples/*.ml
|
||||||
%{_libdir}/ocaml/guestfs/*.a
|
%{_libdir}/ocaml/guestfs/*.a
|
||||||
%{_libdir}/ocaml/guestfs/*.cmxa
|
%{_libdir}/ocaml/guestfs/*.cmxa
|
||||||
@ -950,7 +936,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files -n perl-Sys-Guestfs
|
%files -n perl-Sys-Guestfs
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc perl/examples
|
%doc perl/examples
|
||||||
%{perl_vendorarch}/*
|
%{perl_vendorarch}/*
|
||||||
%{_mandir}/man3/Sys::Guestfs.3pm*
|
%{_mandir}/man3/Sys::Guestfs.3pm*
|
||||||
@ -959,7 +944,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc python/examples/*.py
|
%doc python/examples/*.py
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
%{python_sitelib}/*.py
|
%{python_sitelib}/*.py
|
||||||
@ -969,7 +953,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files -n ruby-%{name}
|
%files -n ruby-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ruby/examples/*.rb
|
%doc ruby/examples/*.rb
|
||||||
%doc ruby/doc/site/*
|
%doc ruby/doc/site/*
|
||||||
%{ruby_vendorlibdir}/guestfs.rb
|
%{ruby_vendorlibdir}/guestfs.rb
|
||||||
@ -978,24 +961,20 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files java
|
%files java
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libguestfs_jni*.so.*
|
%{_libdir}/libguestfs_jni*.so.*
|
||||||
%{_datadir}/java/*.jar
|
%{_datadir}/java/*.jar
|
||||||
|
|
||||||
|
|
||||||
%files java-devel
|
%files java-devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libguestfs_jni*.so
|
%{_libdir}/libguestfs_jni*.so
|
||||||
%{_mandir}/man3/guestfs-java.3*
|
%{_mandir}/man3/guestfs-java.3*
|
||||||
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/javadoc/%{name}-java-%{version}
|
%{_datadir}/javadoc/%{name}-java-%{version}
|
||||||
|
|
||||||
|
|
||||||
%files -n php-%{name}
|
%files -n php-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc php/README-PHP
|
%doc php/README-PHP
|
||||||
%dir %{_sysconfdir}/php.d
|
%dir %{_sysconfdir}/php.d
|
||||||
%{_sysconfdir}/php.d/guestfs_php.ini
|
%{_sysconfdir}/php.d/guestfs_php.ini
|
||||||
@ -1004,7 +983,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%if !0%{?rhel}
|
%if !0%{?rhel}
|
||||||
%files -n erlang-%{name}
|
%files -n erlang-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc erlang/README
|
%doc erlang/README
|
||||||
%doc erlang/examples/*.erl
|
%doc erlang/examples/*.erl
|
||||||
%doc erlang/examples/LICENSE
|
%doc erlang/examples/LICENSE
|
||||||
@ -1015,13 +993,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files gobject
|
%files gobject
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libguestfs-gobject-1.0.so.0*
|
%{_libdir}/libguestfs-gobject-1.0.so.0*
|
||||||
%{_libdir}/girepository-1.0/Guestfs-1.0.typelib
|
%{_libdir}/girepository-1.0/Guestfs-1.0.typelib
|
||||||
|
|
||||||
|
|
||||||
%files gobject-devel
|
%files gobject-devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libguestfs-gobject-1.0.so
|
%{_libdir}/libguestfs-gobject-1.0.so
|
||||||
%{_includedir}/guestfs-gobject.h
|
%{_includedir}/guestfs-gobject.h
|
||||||
%dir %{_includedir}/guestfs-gobject
|
%dir %{_includedir}/guestfs-gobject
|
||||||
@ -1031,13 +1007,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files man-pages-ja
|
%files man-pages-ja
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%lang(ja) %{_mandir}/ja/man1/*.1*
|
%lang(ja) %{_mandir}/ja/man1/*.1*
|
||||||
%lang(ja) %{_mandir}/ja/man3/*.3*
|
%lang(ja) %{_mandir}/ja/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
%files man-pages-uk
|
%files man-pages-uk
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%lang(uk) %{_mandir}/uk/man1/*.1*
|
%lang(uk) %{_mandir}/uk/man1/*.1*
|
||||||
%lang(uk) %{_mandir}/uk/man3/*.3*
|
%lang(uk) %{_mandir}/uk/man3/*.3*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user