liboauth-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. %define package_version 1.0.1
  2. %define package_release 1%{?_dist_release}
  3. Name: liboauth
  4. Version: %{package_version}
  5. Release: %{package_release}
  6. Summary: A collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard
  7. Group: System Environment/Libraries
  8. License: MIT
  9. URL: http://liboauth.sourceforge.net/
  10. Source0: http://sourceforge.net/projects/liboauth/files/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: curl-devel
  13. BuildRequires: nss-devel
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: Takemikaduchi
  17. %description
  18. liboauth is a collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard.
  19. liboauth provides functions to escape and encode parameters according to OAuth specification
  20. and offers high-level functionality to sign requests or verify OAuth signatures as well as
  21. perform HTTP requests.
  22. liboauth depends on either on the OpenSSL library or on NSS (Mozilla's Network Security Services),
  23. which are used for generating the hash/signature, and optionally libcurl for issuing HTTP requests.
  24. %package devel
  25. Summary: Development tools for liboauth
  26. Summary(ja): liboauth の開発環境
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: pkgconfig
  30. Requires: curl-devel
  31. Requires: nss-devel
  32. %description devel
  33. Header files and libraries for building a extension library for the
  34. liboauth.
  35. %prep
  36. %setup -q
  37. %build
  38. %configure --disable-static --enable-nss
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make DESTDIR=$RPM_BUILD_ROOT install
  43. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc ChangeLog AUTHORS COPYING NEWS README
  51. %{_libdir}/*.so.*
  52. %{_mandir}/man3/oauth.3.gz
  53. %files devel
  54. %defattr(-, root, root)
  55. %{_includedir}/oauth.h
  56. %{_libdir}/*.so
  57. %{_libdir}/pkgconfig/*.pc
  58. %changelog
  59. * Thu Apr 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.1-1
  60. - new upstream release
  61. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.7-1
  62. - new upstream release
  63. * Sun Apr 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  64. - new upstream release
  65. * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.4-1
  66. - initial build for Vine Linux