Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to python 2.7.9 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions python27.spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# To Build:
#
# sudo yum -y groupinstall "Development tools"
# sudo yum -y install rpmdevtools && rpmdev-setuptree
# sudo yum -y install tk-devel tcl-devel expat-devel db4-devel gdbm-devel sqlite-devel bzip2-devel openssl-devel ncurses-devel readline-devel
# sudo yum -y install zlib-devel libpcap-devel xz-devel tk-devel tcl-devel expat-devel db4-devel gdbm-devel sqlite-devel bzip2-devel openssl-devel ncurses-devel readline-devel
# wget https://raw.github.com/nmilford/rpm-python27/master/python27.spec -O ~/rpmbuild/SPECS/python27.spec
# wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz -O ~/rpmbuild/SOURCES/Python-2.7.6.tgz
# wget http://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz -O ~/rpmbuild/SOURCES/Python-2.7.9.tgz
# QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -bb ~/rpmbuild/SPECS/python27.spec


##########################
# User-modifiable configs
##########################
Expand All @@ -16,9 +16,9 @@

# Define Constants
%define name python27
%define version 2.7.6
%define version 2.7.9
%define libvers 2.7
%define release 1
%define release 2
%define __prefix /usr


Expand Down Expand Up @@ -54,8 +54,8 @@


# Build shared libraries or .a library?
%define config_sharedlib yes
%define config_sharedlib no
%define config_sharedlib yes


# Location of the HTML directory to place tho documentation in?
Expand Down Expand Up @@ -175,6 +175,12 @@ formats.
%endif

%changelog
* Sun Apr 05 2015 Johan Ryberg <[email protected]> [2.7.9-2]
- Fixed ldconfig to run after install

* Sun Apr 05 2015 Johan Ryberg <[email protected]> [2.7.9-1]
- Updated to 2.7.9

* Mon Apr 14 2014 Cornfeedhobo <[email protected]> [2.7.6-1]
- Updated to 2.7.6
- Fixed abi dependancy notice
Expand Down Expand Up @@ -381,6 +387,17 @@ done
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
rm -f mainpkg.files tools.files

########
# POST
########
%post
/sbin/ldconfig

########
# POSTUN
########
%postun
/sbin/ldconfig

########
# FILES
Expand All @@ -389,6 +406,7 @@ rm -f mainpkg.files tools.files
%defattr(-,root,root)
%doc Misc/README Misc/cheatsheet Misc/Porting
%doc LICENSE Misc/ACKS Misc/HISTORY Misc/NEWS
%doc %attr(0444,root,root) /usr/share/man/man1/python2.7.1.gz

%{__prefix}/%{libdirname}/python%{libvers}/lib-dynload/
%{__prefix}/%{libdirname}/python%{libvers}/lib2to3/tests/data/
Expand Down