Install docs to %{_pkgdocdir} where available.
- Move license file to main package. - Fix bogus dates in %changelog.
This commit is contained in:
parent
a580bbe1d4
commit
3f18a4271d
29
libmtp.spec
29
libmtp.spec
@ -1,9 +1,11 @@
|
|||||||
# SPEC file for libmtp, primary target is the Fedora
|
# SPEC file for libmtp, primary target is the Fedora
|
||||||
# RPM repository.
|
# RPM repository.
|
||||||
|
|
||||||
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
Name: libmtp
|
Name: libmtp
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A software library for MTP media players
|
Summary: A software library for MTP media players
|
||||||
URL: http://libmtp.sourceforge.net/
|
URL: http://libmtp.sourceforge.net/
|
||||||
|
|
||||||
@ -69,9 +71,9 @@ ln -sf mtp-connect mtp-sendfile
|
|||||||
ln -sf mtp-connect mtp-sendtr
|
ln -sf mtp-connect mtp-sendtr
|
||||||
popd
|
popd
|
||||||
# Copy documentation to a good place
|
# Copy documentation to a good place
|
||||||
mkdir -p -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir}
|
||||||
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
|
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
|
||||||
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
$RPM_BUILD_ROOT%{_pkgdocdir}
|
||||||
# Touch generated files to make them always have the same time stamp.
|
# Touch generated files to make them always have the same time stamp.
|
||||||
touch -r configure.ac \
|
touch -r configure.ac \
|
||||||
$RPM_BUILD_ROOT%{_includedir}/*.h \
|
$RPM_BUILD_ROOT%{_includedir}/*.h \
|
||||||
@ -85,6 +87,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root,root,-)
|
%defattr(-, root,root,-)
|
||||||
|
%dir %{_pkgdocdir}
|
||||||
|
%{_pkgdocdir}/COPYING
|
||||||
%{_libdir}/libmtp.so.9*
|
%{_libdir}/libmtp.so.9*
|
||||||
/lib/udev/rules.d/*
|
/lib/udev/rules.d/*
|
||||||
/lib/udev/mtp-probe
|
/lib/udev/mtp-probe
|
||||||
@ -96,13 +100,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libmtp.so
|
%{_libdir}/libmtp.so
|
||||||
%dir %{_docdir}/%{name}-%{version}
|
%{_pkgdocdir}/*
|
||||||
%{_docdir}/%{name}-%{version}/*
|
%exclude %{_pkgdocdir}/COPYING
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/pkgconfig/libmtp.pc
|
%{_libdir}/pkgconfig/libmtp.pc
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 7 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.6-2
|
||||||
|
- Install docs to %%{_pkgdocdir} where available.
|
||||||
|
- Move license file to main package.
|
||||||
|
- Fix bogus dates in %%changelog.
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-1
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
@ -124,10 +133,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-2
|
* Tue Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-2
|
||||||
- Use libusb-1.0 for sure, come on.
|
- Use libusb-1.0 for sure, come on.
|
||||||
|
|
||||||
* Thu Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-1
|
* Tue Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-1
|
||||||
- Upstream update with several bug fixes including Fedora patch
|
- Upstream update with several bug fixes including Fedora patch
|
||||||
|
|
||||||
* Sat Jan 28 2012 Linus Walleij <triad@df.lth.se> 1.1.2-2
|
* Sat Jan 28 2012 Linus Walleij <triad@df.lth.se> 1.1.2-2
|
||||||
@ -148,7 +157,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Fri Jun 10 2011 Rex Dieter <rdieter@fedoraproject.org> 1.1.0-2
|
* Fri Jun 10 2011 Rex Dieter <rdieter@fedoraproject.org> 1.1.0-2
|
||||||
- %%files: track abi/soname, so bumps aren't a surprise
|
- %%files: track abi/soname, so bumps aren't a surprise
|
||||||
|
|
||||||
* Tue Jun 08 2011 Linus Walleij <triad@df.lth.se> 1.1.0-1
|
* Wed Jun 08 2011 Linus Walleij <triad@df.lth.se> 1.1.0-1
|
||||||
- New upstream version including fixed bugs and the patch we
|
- New upstream version including fixed bugs and the patch we
|
||||||
used to carry. Dependecies need to be rebuilt. (New
|
used to carry. Dependecies need to be rebuilt. (New
|
||||||
soversion)
|
soversion)
|
||||||
@ -168,7 +177,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Sat Feb 5 2011 Linus Walleij <triad@df.lth.se> 1.0.5-1
|
* Sat Feb 5 2011 Linus Walleij <triad@df.lth.se> 1.0.5-1
|
||||||
- New upstream release fixing all the things we patched.
|
- New upstream release fixing all the things we patched.
|
||||||
|
|
||||||
* Wed Jan 24 2011 Linus Walleij <triad@df.lth.se> 1.0.4-3
|
* Mon Jan 24 2011 Linus Walleij <triad@df.lth.se> 1.0.4-3
|
||||||
- Screwed up boolean logic in last patch, fixing it.
|
- Screwed up boolean logic in last patch, fixing it.
|
||||||
|
|
||||||
* Wed Jan 19 2011 Linus Walleij <triad@df.lth.se> 1.0.4-2
|
* Wed Jan 19 2011 Linus Walleij <triad@df.lth.se> 1.0.4-2
|
||||||
@ -203,7 +212,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
|
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
|
||||||
- New upstream version, bug fixes.
|
- New upstream version, bug fixes.
|
||||||
|
|
||||||
* Wed Feb 2 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
|
* Wed Feb 3 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
|
||||||
- New upstream version, lots of bug fixes.
|
- New upstream version, lots of bug fixes.
|
||||||
|
|
||||||
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
|
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
|
||||||
|
Loading…
Reference in New Issue
Block a user