rpms/PyPE/devel PyPE.desktop, NONE, 1.1 PyPE.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Sandro Mathys red at fedoraproject.org
Sun Apr 18 12:58:15 UTC 2010


Author: red

Update of /cvs/pkgs/rpms/PyPE/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv32318/devel

Modified Files:
	.cvsignore sources 
Added Files:
	PyPE.desktop PyPE.spec import.log 
Log Message:
initial import




--- NEW FILE PyPE.desktop ---
[Desktop Entry]
Name=PyPE
GenericName=Python Programmers' Editor
Exec=pype
Icon=PYTHONPATH/PyPE/icons/pype.ico
Terminal=false
Type=Application
Categories=Development;
Encoding=UTF-8


--- NEW FILE PyPE.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global majorminor 2.9

Name:           PyPE
Version:        %{majorminor}.1
Release:        3%{?dist}
Summary:        Lightweight but powerful graphical editor for developers

Group:          Development/Languages
License:        GPLv2
URL:            http://pype.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/pype/pype/%{name}%20%{majorminor}/%{name}-%{version}-src.zip
Source1:        PyPE.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
Requires:       wxPython
BuildRequires:  python-devel
BuildRequires:  wxPython-devel
BuildRequires:  desktop-file-utils

%description
PyPE (Python Programmers' Editor) was written in order to offer a
lightweight but powerful editor for those of you who think Emacs is too
much and idle is too little. Syntax highlighting is included out of the
box, as is multiple open documents via tabs.


%prep
%setup -q

# We don't need these pre-compiled files (if any)
find \( -name "*.pyc" -or -name "*.pyw" \) -exec rm -f {} \;

# Convert file to UTF-8
for file in sample_dictionary.txt plugins/parsers.py; do
  iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
  touch -r $file $file.new && \
  mv $file.new $file
done

# CRLF -> LF
for file in changelog.txt readme.txt gpl.txt lgpl.txt wxwindows.txt sample_alphabet.txt sample_dictionary.txt plugins/parsers.py pype.py; do
  sed "s|\r||g" $file > $file.new && \
  touch -r $file $file.new && \
  mv $file.new $file
done

# Remove unnecessary shebang
sed -i -e '/^#!\//, 1d' plugins/parsers.py

# Directly call python (there's nonprintable chars in front of the shebang, therefore we search for ^.*# and not ^#)
sed -i -e 's|^.*#!/usr/bin/env python|#!/usr/bin/python|' pype.py

# Make the main script executable
chmod 755 pype.py


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT

# Delete this script before it gets copied below
rm -f setup.py

mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/%{name}
cp -p  *.py stc-styles.rc.cfg MANIFEST.in PKG-INFO readme.{txt,html} $RPM_BUILD_ROOT%{python_sitelib}/%{name}
cp -pR icons macros plugins $RPM_BUILD_ROOT%{python_sitelib}/%{name}

mkdir -p $RPM_BUILD_ROOT%{_bindir}
ln -s %{python_sitelib}/%{name}/pype.py $RPM_BUILD_ROOT%{_bindir}/pype

sed -e "s;PYTHONPATH;%{python_sitelib};g" %{SOURCE1} > %{name}.desktop
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
  %if 0%{?fedora} >= 10
  --remove-key=Encoding \
  %endif
  %{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc changelog.txt readme.txt readme.html gpl.txt sample_*
%{_bindir}/pype
%{python_sitelib}/%{name}
%{_datadir}/applications/%{name}.desktop


%changelog
* Sat Apr 17 2010 Sandro Mathys <red at fedoraproject.org> - 2.9.1-3
- final review fix, Emacs should be written with a capital E

* Wed Mar 03 2010 Sandro Mathys <red at fedoraproject.org> - 2.9.1-2
- fixed the interpreter directive

* Mon Dec 28 2009 Sandro Mathys <red at fedoraproject.org> - 2.9.1-1
- new version
- now GPLv2 only due to relicensing of LGPLv2 and wxWindows licensed parts by upstream

* Sun Dec 27 2009 Sandro Mathys <red at fedoraproject.org> - 2.9-2
- no longer includes *.pyc and *.pyw
- fixes kinda wrong path in the desktop file
- small cleanup fixes to spec file

* Sat Dec 26 2009 Sandro Mathys <red at fedoraproject.org> - 2.9-1
- new version

* Wed Dec 09 2009 Sandro Mathys <red at fedoraproject.org> - 2.8.8-3
- fixed icons path and desktop file as part of the review process

* Tue Sep 22 2009 Sandro Mathys <red at fedoraproject.org> - 2.8.8-2
- fixed issues raised in the review process

* Sun Aug 16 2009 Sandro Mathys <red at fedoraproject.org> - 2.8.8-1
- initial build



--- NEW FILE import.log ---
PyPE-2_9_1-3_fc12:HEAD:PyPE-2.9.1-3.fc12.src.rpm:1271595339


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/PyPE/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	18 Apr 2010 01:49:40 -0000	1.1
+++ .cvsignore	18 Apr 2010 12:58:14 -0000	1.2
@@ -0,0 +1 @@
+PyPE-2.9.1-src.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/PyPE/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	18 Apr 2010 01:49:40 -0000	1.1
+++ sources	18 Apr 2010 12:58:14 -0000	1.2
@@ -0,0 +1 @@
+dbd964244cb89b8e15944e78be2e0d65  PyPE-2.9.1-src.zip



More information about the scm-commits mailing list