Accepting request 658052 from home:pluskalm:branches:devel:libraries:c_c++

- Small packaging cleanup

OBS-URL: https://build.opensuse.org/request/show/658052
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmtp?expand=0&rev=100
This commit is contained in:
Marcus Meissner 2018-12-17 15:59:11 +00:00 committed by Git OBS Bridge
parent aa2e7504cc
commit b9884df715
2 changed files with 29 additions and 33 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 14 13:25:50 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
- Small packaging cleanup
-------------------------------------------------------------------
Sat Oct 27 17:09:08 UTC 2018 - meissner@suse.com

View File

@ -12,29 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libmtp
Url: http://sf.net/projects/libmtp
BuildRequires: doxygen
BuildRequires: libgcrypt-devel
BuildRequires: libusb-1_0-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(udev)
Summary: Commandline utilities for access to MTP Players
License: LGPL-2.1+
Group: Productivity/Multimedia/Sound/Players
Version: 1.1.16
Release: 0
%define sonum 9
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz.asc
Source2: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d }
%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev) }
Name: libmtp
Version: 1.1.16
Release: 0
Summary: Commandline utilities for access to MTP Players
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Sound/Players
URL: http://sf.net/projects/libmtp
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
BuildRequires: doxygen
BuildRequires: libgcrypt-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(udev)
%description
This package contains binaries and documentation that allow access to
@ -47,7 +46,7 @@ and others.
%package -n %{name}-udev
Summary: Udev rules for accessing MTP devices
Group: Hardware/Mobile
Requires: udev
Requires: pkgconfig(udev)
%description -n %{name}-udev
This package contains the udev rules that allow access to USB based media
@ -95,39 +94,31 @@ echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
#install -d $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/
#install -c -m 644 libmtp.fdi $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi
rm -rf %{buildroot}/usr/share/doc/libmtp*
rm -rf %{buildroot}/%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/doc/libmtp*
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{sonum} -p /sbin/ldconfig
%postun -n %{name}%{sonum} -p /sbin/ldconfig
%files -n mtp-tools
%defattr(-, root, root)
%{_prefix}/bin/*
%{_bindir}/*
%files -n %{name}%{sonum}
%defattr(-, root, root)
%doc COPYING README ChangeLog AUTHORS
%license COPYING
%doc README ChangeLog AUTHORS
%{_libdir}/lib*.so.*
#%dir /usr/share/hal
#dir /usr/share/hal/fdi
#dir /usr/share/hal/fdi/information
#dir /usr/share/hal/fdi/information/20thirdparty/
#usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi
%files -n %{name}-udev
%defattr(-, root, root)
%{_udevdir}
%{_udevrulesdir}
%files devel
%defattr(-, root, root)
%doc doc/html TODO
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libmtp.pc
%{_prefix}/include/libmtp.h
%{_includedir}/libmtp.h
%changelog