rpms/PythonCAD/devel PythonCAD.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chauvet (kwizart) fedora-extras-commits at redhat.com
Mon Mar 5 02:37:56 UTC 2007


Author: kwizart

Update of /cvs/extras/rpms/PythonCAD/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15368/devel

Modified Files:
	.cvsignore sources 
Added Files:
	PythonCAD.spec 
Log Message:
auto-import PythonCAD-0.1.35-6.kwizart.fc6 on branch devel from PythonCAD-0.1.35-6.kwizart.fc6.src.rpm


--- NEW FILE PythonCAD.spec ---
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}


%define _version DS1-R35

Summary: PythonCAD scriptable CAD package
Name: PythonCAD
Version: %(echo %{_version} |sed 's|DS|0.|'|sed 's|-R|.|')
Release: 6%{?dist}
Group: Applications/Engineering
License: GPL
URL: http://www.pythoncad.org/
Source: http://www.pythoncad.org/releases/%{name}-%{_version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: python-devel


Requires: pygtk2


%description
PythonCAD is a CAD package written, surprisingly enough, in Python. 
The PythonCAD project aims to produce a scriptable, open-source, easy to use 
CAD package for Linux, the various flavors of BSD Unix, commercial Unix, and 
other platforms to which someone who is interested ports the program. Work 
began on PythonCAD in July, 2002, and the first public release was on 
December 21, 2002.


%prep
%setup -q -n %{name}-%{_version}


%build

## Build mo files
for i in $(find po -name "*.po");do
msgfmt -o $(echo $i|sed 's|.po|.mo|') $i 
done


%install
rm -rf $RPM_BUILD_ROOT

%{__python} setup.py install --root=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pythoncad
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
install -m 0755 -p gtkpycad.py $RPM_BUILD_ROOT%{_bindir}/gtkpycad
install -m 0644 -p prefs.py $RPM_BUILD_ROOT%{_sysconfdir}/pythoncad/
install -m 0644 -p gtkpycad.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
# E: PythonCAD non-executable-script - remove shebang or fix perm
# {python_sitelib}/PythonCAD/Generic/bindump.py 0644
chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/PythonCAD/Generic/bindump.py

cat > %{name}.desktop <<EOF
[Desktop Entry]
Name=PyCAD
Comment=PythonCAD
Icon=gtkpycad.png
Exec=/usr/bin/gtkpycad
Terminal=false
Type=Application
Encoding=UTF-8
Version=%{version}
Categories=Graphics;Utility;
EOF

desktop-file-install --vendor=""                 \
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications  \
  %{name}.desktop

# Manual install .mo file
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
#install -m 0644 po/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/%{name}/LC_MESSAGES
for i in $(find po -name "*.mo");do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$(echo $i|sed 's|po/%{name}.||'|sed 's|.mo||')/LC_MESSAGES
install -m 0644 $i $RPM_BUILD_ROOT%{_datadir}/locale/$(echo $i|sed 's|po/%{name}.||'|sed 's|.mo||')/LC_MESSAGES/%{name}.mo
done


%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING NEWS README TODO
%{_bindir}/gtkpycad
#%exclude %{_bindir}/gtkpycad.py?
%dir %{_sysconfdir}/pythoncad
%config(noreplace) %{_sysconfdir}/pythoncad/prefs.py*
#%exclude %{_sysconfdir}/pythoncad/prefs.py?
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/gtkpycad.png
%{python_sitelib}/PythonCAD


%changelog
* Thu Mar  1 2007 kwizart < kwizart at gmail.com > - 0.1.35-6
- Fix /etc/pythoncad ownership

* Wed Feb 21 2007 kwizart < kwizart at gmail.com > - 0.1.35-5
- Remove python-tools BR
- Build and install locale

* Tue Feb  6 2007 kwizart < kwizart at gmail.com > - 0.1.35-4
- Leave prefs.py? in /etc/pythoncad

* Mon Feb  5 2007 kwizart < kwizart at gmail.com > - 0.1.35-3
- Reviewing in Bugzilla id=225119
- Fix BR, python-devel 

* Tue Jan 30 2007 kwizart < kwizart at gmail.com > - 0.1.35-2
- FE pre-Review enhancement.

* Tue Jan 16 2007 kwizart < kwizart at gmail.com > - 0.1.35-1
- Add fedora distribution spec files rules.
- Cleaned spec file for FE submission.
* Fri Dec 01 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
- add prefix specification to install
* Sun Oct 01 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
- release 0.1.34
* Wed Feb 1 2006 Art Haas <ahaas at airmail.net>
- Update version numbers
* Sat Jan 27 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
- release 0.1.27
* Sat Jan 15 2005 D. Scott Barninger <barninger at fairfieldcomputers.com>
- setup version strings so we don't have to repackage source
* Fri Oct 15 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
- initial spec file


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/PythonCAD/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Mar 2007 02:02:06 -0000	1.1
+++ .cvsignore	5 Mar 2007 02:37:24 -0000	1.2
@@ -0,0 +1 @@
+PythonCAD-DS1-R35.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/PythonCAD/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Mar 2007 02:02:06 -0000	1.1
+++ sources	5 Mar 2007 02:37:24 -0000	1.2
@@ -0,0 +1 @@
+d548b5a769d89d126b19c2f3d08e72a8  PythonCAD-DS1-R35.tar.bz2




More information about the fedora-extras-commits mailing list