source: spec/trunk/SPECS/liboauth.spec@ 1010

Last change on this file since 1010 was 326, checked in by Yuri Dario, 13 years ago

spec: added liboauth build.

File size: 1.9 KB
Line 
1Name: liboauth
2Version: 1.0.0
3Release: 1%{?dist}
4Summary: OAuth library functions
5
6Group: System Environment/Libraries
7License: MIT
8URL: http://liboauth.sourceforge.net/
9Source0: http://liboauth.sourceforge.net/pool/liboauth-%{version}.tar.gz
10Patch0: liboauth-os2.patch
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14BuildRequires: curl-devel nss-devel
15#Requires:
16
17%description
18liboauth is a collection of POSIX-c functions implementing the OAuth
19Core RFC 5849 standard. liboauth provides functions to escape and
20encode parameters according to OAuth specification and offers
21high-level functionality to sign requests or verify OAuth signatures
22as well as perform HTTP requests.
23
24
25%package devel
26Summary: Development files for %{name}
27Group: Development/Libraries
28Requires: %{name} = %{version}-%{release}
29%if 0%{?el5}
30Requires: pkgconfig curl-devel nss-devel
31%endif
32
33%description devel
34The %{name}-devel package contains libraries and header files for
35developing applications that use %{name}.
36
37
38%prep
39%setup -q
40%patch0 -p1 -b .os2~
41
42
43%build
44export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
45export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
46export LIBS="-lurpo -lmmap"
47%configure \
48 --disable-static \
49 --enable-nss \
50 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
51
52make %{?_smp_mflags}
53
54
55%install
56rm -rf $RPM_BUILD_ROOT
57make install DESTDIR=$RPM_BUILD_ROOT
58rm $RPM_BUILD_ROOT%{_libdir}/*.la
59rm $RPM_BUILD_ROOT%{_libdir}/*.a
60
61%clean
62rm -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.
Note: See TracBrowser for help on using the repository browser.