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