rpms/pyroom/F-9 pyroom.spec,1.1,1.2 pyroom,1.1,NONE
Sven Lankes
slankes at fedoraproject.org
Mon Nov 10 19:51:46 UTC 2008
Author: slankes
Update of /cvs/pkgs/rpms/pyroom/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24088
Modified Files:
pyroom.spec
Removed Files:
pyroom
Log Message:
push 0.3.1.1 for F-9 - upstream considers the previous release broken
Index: pyroom.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pyroom/F-9/pyroom.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pyroom.spec 30 Jul 2008 18:29:52 -0000 1.1
+++ pyroom.spec 10 Nov 2008 19:51:16 -0000 1.2
@@ -1,24 +1,23 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
Name: pyroom
-Version: 0.2.1
-Release: 3%{?dist}
+Version: 0.3.1.1
+Release: 4%{?dist}
Summary: PyRoom is a full screen text editor and a clone of Writeroom
Group: Applications/Editors
License: GPLv3+
URL: http://pyroom.org/
-Source0: http://edge.launchpad.net/pyroom/0.2/0.2.1/+download/pyroom-0.2.1.tar.gz
-Source1: pyroom
-Source2: pyroom.desktop
+Source0: http://edge.launchpad.net/pyroom/0.3/0.3.1.1/+download/pyroom-0.3.1.1.tar.gz
+Patch0: pyroom.desktop-patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: python
-Requires: pygtk2
-Requires: gnome-python2-gtksourceview
-Requires(post): desktop-file-utils
-Requires(postun): desktop-file-utils
-BuildRequires: gettext
-BuildRequires: desktop-file-utils
+Requires: python
+Requires: pygtk2
+Requires: gnome-python2-gtksourceview
+BuildRequires: python-devel
+BuildRequires: desktop-file-utils
%description
@@ -28,66 +27,48 @@
%prep
%setup -q
-cp %{SOURCE1} .
+%patch0 -p0
%build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-%{__mkdir_p} %{buildroot}/%{_bindir}/
-install -p pyroom %{buildroot}/%{_bindir}
-%{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/
-install -pm 644 *.py %{buildroot}/%{_datadir}/%{name}/
-%{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/themes/
-install -pm 644 themes/*.theme %{buildroot}/%{_datadir}/%{name}/themes/
-install -pm 644 interface.glade %{buildroot}/%{_datadir}/%{name}/
-
-%{__mkdir_p} %{buildroot}/%{_datadir}/applications/
-install -pm 644 %{SOURCE2} %{buildroot}/%{_datadir}/applications/
-
-chmod 755 %{buildroot}/%{_datadir}/pyroom/pyroom.py
-chmod 755 %{buildroot}/%{_datadir}/pyroom/status_label.py
-
-for lang in ar ca cy da es fi fr_FR it pt pt_BR
- do
- dir=locale/$lang/LC_MESSAGES/
- %{__mkdir_p} $RPM_BUILD_ROOT%_datadir/$dir
- install -pm 644 $dir/%name.mo $RPM_BUILD_ROOT%_datadir/$dir
-done
-
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+chmod 755 %{buildroot}/%{python_sitelib}/PyRoom/cmdline.py
desktop-file-install --vendor="" \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/pyroom.desktop
+gzip pyroom.1
+install -p -D %{name}.1.gz %{buildroot}/%{_mandir}/man1/%{name}.1.gz
-
-%find_lang %{name}
-
-
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-
-%postun
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-
-%files -f %{name}.lang
+%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README
-%{_bindir}/pyroom
-%{_datadir}/%{name}/
+%{python_sitelib}/*
+%{_bindir}/%{name}
+%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
+%{_mandir}/man1/%{name}.1.gz
+%changelog
+* Sun Nov 02 2008 Sven Lankes <sven at lank.es> - 0.3.1.1-4
+- add manpage to package
+* Sat Nov 01 2008 Sven Lankes <sven at lank.es> - 0.3.1.1-3
+- add %U to .desktop-file
+* Sat Nov 01 2008 Sven Lankes <sven at lank.es> - 0.3.1.1-2
+- add missing BR
-%changelog
+* Sat Nov 01 2008 Sven Lankes <sven at lank.es> - 0.3.1.1-1
+- new upstream Version (closes bz #464325)
+- currently doesn't include any translations
+- reworked specfile as upstream now supplies a setup.py
* Tue Jul 22 2008 Rahul Sundaram <sundaram at fedoraproject.org> - 0.2.1-3
- add desktop file. fix permissions and source url
--- pyroom DELETED ---
More information about the fedora-extras-commits
mailing list