forked from bgamble/pykerberos
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Gamble
committed
Jan 31, 2013
1 parent
ef127e0
commit 376a4a8
Showing
5 changed files
with
108 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
recursive-include src *.h | ||
recursive-include pysrc * | ||
recursive-include bin * | ||
include LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
10 | ||
|
||
dir | ||
0 | ||
http://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk/redhat | ||
http://svn.calendarserver.org/repository/calendarserver | ||
add | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
e27351fd-9f3e-4f54-a53b-843176b1656c | ||
|
||
kerberos.spec | ||
file | ||
|
||
|
||
|
||
add | ||
|
||
makefile | ||
file | ||
|
||
|
||
|
||
add | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
%define modname kerberos | ||
%define version 1.1.2+DSE1 | ||
%define unmangled_version 1.1.2+DSE1 | ||
%define release 1 | ||
%{!?python: %define python python26} | ||
|
||
Summary: Kerberos high-level interface | ||
Name: %{python}-%{modname} | ||
Version: %{version} | ||
Release: %{release} | ||
Source0: %{modname}-%{unmangled_version}.tar.gz | ||
License: ASL 2.0 | ||
Group: Development/Libraries | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
Prefix: %{_prefix} | ||
Vendor: UNKNOWN <UNKNOWN> | ||
|
||
%description | ||
|
||
This Python package is a high-level wrapper for Kerberos (GSSAPI) | ||
operations. The goal is to avoid having to build a module that wraps the | ||
entire Kerberos.framework, and instead offer a limited set of functions | ||
that do what is needed for client/server Kerberos authentication based | ||
on <http://www.ietf.org/rfc/rfc4559.txt>. | ||
|
||
%prep | ||
%setup -n %{modname}-%{unmangled_version} | ||
|
||
%build | ||
env CFLAGS="$RPM_OPT_FLAGS" %{python} setup.py build | ||
|
||
%install | ||
%{python} setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files -f INSTALLED_FILES | ||
%defattr(-,root,root) | ||
%doc README.txt LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
RPMDIR := $(PWD)/redhat | ||
PYTHON := python26 | ||
SUBDIRS := BUILD RPMS SOURCES SPECS SRPMS | ||
DIRS := $(foreach subdir,$(SUBDIRS),$(RPMDIR)/$(subdir)) | ||
|
||
rpm: init | ||
python setup.py sdist -d $(RPMDIR)/SOURCES | ||
rpmbuild --define "_topdir $(RPMDIR)" --define "python $(PYTHON)" -ba $(RPMDIR)/kerberos.spec | ||
|
||
init: testdir | ||
mkdir -p $(DIRS) | ||
|
||
clean: testdir | ||
rm -rf $(DIRS) | ||
|
||
testdir: | ||
ifeq ($(wildcard setup.py),) | ||
$(error Must be run from same directory as setup.py) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters