This repository was archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoauth.spec
More file actions
78 lines (61 loc) · 2.01 KB
/
oauth.spec
File metadata and controls
78 lines (61 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%global _binary_filedigest_algorithm 1
%global _source_filedigest_algorithm 1
%global _binary_payload w9.gzdio
%global _source_payload w9.gzdio
Name: oauth
Summary: oauth lib
Group: Internet/Applications
License: Apache
Version: 20100601
Release: 4%{?dist}
URL: http://oauth.net/code/
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildRequires: java >= 0:1.6.0
BuildRequires: ant >= 0:1.7.0
BuildRequires: jakarta-commons-httpclient >= 3.1
%if 0%{?rhel} == 7
BuildRequires: tomcat-servlet-3.0-api
%else
BuildRequires: tomcat6-servlet-2.5-api
%endif
Requires: java >= 0:1.6.0
%define __jar_repack %{nil}
%if 0%{?rhel} == 7
%define tomcat_servlet_jar tomcat-servlet-api.jar
%else
%define tomcat_servlet_jar tomcat6-servlet-2.5-api.jar
%endif
%description
oauth
%prep
%setup -q
%build
ant -Dlibdir=/usr/share/java -Dversion=%{version} -Dtomcat-servlet-jar=%{tomcat_servlet_jar} clean package
%install
rm -rf $RPM_BUILD_ROOT
# Create the directory structure required to lay down our files
# common
install -d -m 755 $RPM_BUILD_ROOT/usr/share/java/
install -m 644 commons/dist/lib/oauth.jar $RPM_BUILD_ROOT/usr/share/java/
install -m 644 consumer/dist/lib/oauth-consumer.jar $RPM_BUILD_ROOT/usr/share/java/
install -m 644 provider/dist/lib/oauth-provider.jar $RPM_BUILD_ROOT/usr/share/java/
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/share/java/oauth.jar
/usr/share/java/oauth-consumer.jar
/usr/share/java/oauth-provider.jar
%changelog
* Tue Feb 18 2014 Chris Duryee (beav) <cduryee@redhat.com>
- use tomcat-servlet instead of tomcat6-servlet for el7 (cduryee@redhat.com)
* Wed Mar 21 2012 Chris Duryee (beav) <cduryee@redhat.com>
- remove version from jar filename (cduryee@redhat.com)
- add in missing files (cduryee@redhat.com)
* Wed Feb 29 2012 Chris Duryee (beav) <cduryee@redhat.com>
- tag for building
* Tue Feb 28 2012 Chris Duryee (beav) <cduryee@redhat.com>
- new package built with tito
* Tue Feb 28 2012 Chris Duryee (beav) <cduryee@redhat.com>
- initial commit