[326] | 1 | Name: liboauth
|
---|
| 2 | Version: 1.0.0
|
---|
| 3 | Release: 1%{?dist}
|
---|
| 4 | Summary: OAuth library functions
|
---|
| 5 |
|
---|
| 6 | Group: System Environment/Libraries
|
---|
| 7 | License: MIT
|
---|
| 8 | URL: http://liboauth.sourceforge.net/
|
---|
| 9 | Source0: http://liboauth.sourceforge.net/pool/liboauth-%{version}.tar.gz
|
---|
| 10 | Patch0: liboauth-os2.patch
|
---|
| 11 |
|
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
| 13 |
|
---|
| 14 | BuildRequires: curl-devel nss-devel
|
---|
| 15 | #Requires:
|
---|
| 16 |
|
---|
| 17 | %description
|
---|
| 18 | liboauth is a collection of POSIX-c functions implementing the OAuth
|
---|
| 19 | Core RFC 5849 standard. liboauth provides functions to escape and
|
---|
| 20 | encode parameters according to OAuth specification and offers
|
---|
| 21 | high-level functionality to sign requests or verify OAuth signatures
|
---|
| 22 | as well as perform HTTP requests.
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | %package devel
|
---|
| 26 | Summary: Development files for %{name}
|
---|
| 27 | Group: Development/Libraries
|
---|
| 28 | Requires: %{name} = %{version}-%{release}
|
---|
| 29 | %if 0%{?el5}
|
---|
| 30 | Requires: pkgconfig curl-devel nss-devel
|
---|
| 31 | %endif
|
---|
| 32 |
|
---|
| 33 | %description devel
|
---|
| 34 | The %{name}-devel package contains libraries and header files for
|
---|
| 35 | developing applications that use %{name}.
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | %prep
|
---|
| 39 | %setup -q
|
---|
| 40 | %patch0 -p1 -b .os2~
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | %build
|
---|
| 44 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
---|
| 45 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
| 46 | export LIBS="-lurpo -lmmap"
|
---|
| 47 | %configure \
|
---|
| 48 | --disable-static \
|
---|
| 49 | --enable-nss \
|
---|
| 50 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
| 51 |
|
---|
| 52 | make %{?_smp_mflags}
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | %install
|
---|
| 56 | rm -rf $RPM_BUILD_ROOT
|
---|
| 57 | make install DESTDIR=$RPM_BUILD_ROOT
|
---|
| 58 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
| 59 | rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
---|
| 60 |
|
---|
| 61 | %clean
|
---|
| 62 | rm -rf $RPM_BUILD_ROOT
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | %files
|
---|
| 66 | %defattr(-,root,root,-)
|
---|
| 67 | %doc AUTHORS ChangeLog COPYING.MIT README
|
---|
| 68 | %{_libdir}/*.dll
|
---|
| 69 |
|
---|
| 70 | %files devel
|
---|
| 71 | %defattr(-,root,root,-)
|
---|
| 72 | %{_includedir}/*
|
---|
| 73 | %{_libdir}/*.lib
|
---|
| 74 | %{_libdir}/pkgconfig/oauth.pc
|
---|
| 75 | %{_mandir}/man3/oauth.*
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | %changelog
|
---|
| 79 | * Fri Dec 28 2012 yd
|
---|
| 80 | - initial build.
|
---|