diff --git a/README.md b/README.md index c28c147..56742ba 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # liboauth +liboauth is a collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard. liboauth provides functions to escape and encode parameters according to OAuth specification and offers high-level functionality to sign requests or verify OAuth signatures as well as perform HTTP requests. + diff --git a/liboauth.spec b/liboauth.spec new file mode 100644 index 0000000..17e4e99 --- /dev/null +++ b/liboauth.spec @@ -0,0 +1,81 @@ +Name: liboauth +Version: 1.0.2 +Release: 1mamba +Summary: A collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://liboauth.sourceforge.net/ +Source: http://sourceforge.net/projects/liboauth/files/liboauth-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcurl-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +liboauth is a collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard. liboauth provides functions to escape and encode parameters according to OAuth specification and offers high-level functionality to sign requests or verify OAuth signatures as well as perform HTTP requests. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +liboauth is a collection of POSIX-c functions implementing the OAuth Core RFC 5849 standard. liboauth provides functions to escape and encode parameters according to OAuth specification and offers high-level functionality to sign requests or verify OAuth signatures as well as perform HTTP requests. + +This package contains static libraries and header files need for development. + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/liboauth.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/oauth.h +%{_libdir}/liboauth.a +%{_libdir}/liboauth.la +%{_libdir}/liboauth.so +%{_libdir}/pkgconfig/oauth.pc +%{_mandir}/man3/oauth.3* +%doc ChangeLog README + +%changelog +* Sat Mar 22 2014 Automatic Build System 1.0.2-1mamba +- automatic update by autodist + +* Thu Mar 14 2013 Automatic Build System 1.0.1-1mamba +- automatic version update by autodist + +* Sun Nov 04 2012 Automatic Build System 1.0.0-1mamba +- automatic version update by autodist + +* Wed Aug 15 2012 Automatic Build System 0.9.7-1mamba +- automatic version update by autodist + +* Fri Jun 15 2012 Automatic Build System 0.9.6-1mamba +- automatic version update by autodist + +* Mon Oct 03 2011 Silvan Calarco 0.9.4-1mamba +- package created by autospec