[liboauth] Include spec file

Michel Alexandre Salim salimma at fedoraproject.org
Tue Sep 14 14:24:54 UTC 2010


commit 35ddd0488db86c53c6722c12348b8165a1608ac8
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Tue Sep 14 16:24:24 2010 +0200

    Include spec file

 liboauth.spec |   76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/liboauth.spec b/liboauth.spec
new file mode 100644
index 0000000..00e2ade
--- /dev/null
+++ b/liboauth.spec
@@ -0,0 +1,76 @@
+Name:           liboauth
+Version:        0.9.0
+Release:        2%{?dist}
+Summary:        OAuth library functions
+
+Group:          System Environment/Libraries
+License:        MIT
+URL:            http://liboauth.sourceforge.net/
+Source0:        http://liboauth.sourceforge.net/pool/liboauth-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  libcurl-devel nss-devel
+#Requires:       
+
+%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
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static --enable-nss
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING.MIT README 
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/oauth.pc
+%{_mandir}/man3/oauth.*
+
+
+%changelog
+* Fri Sep 10 2010 Michel Salim <salimma at fedoraproject.org> - 0.9.0-2
+- Move oauth.3 to devel subpackage
+
+* Wed Sep  8 2010 Michel Salim <salimma at fedoraproject.org> - 0.9.0-1
+- Initial package
+


More information about the scm-commits mailing list